2362N/A * Copyright (c) 2004, 2006, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A * The class is used for implementing the "JvmRTBootClassPathTable". 0N/A * A concrete implementation of {@link SnmpTableCache}, for the 0N/A * JvmRTBootClassPathTable. 0N/A * Call <code>getTableDatas(JvmContextFactory.getUserData())</code>. 0N/A * Return a table handler containing the Thread indexes. 0N/A * Indexes are computed from the ThreadId. 0N/A // We are getting all the input args 0N/A // Time stamp for the cache 0N/A for(
int i =
0; i <
len; i++) {
0N/A * Constructor for the table. Initialize metadata for 0N/A * "JvmRTBootClassPathTableMeta". 0N/A * The reference on the MBean server is updated so the entries 0N/A * created through an SNMP SET will be AUTOMATICALLY REGISTERED 0N/A // See com.sun.jmx.snmp.agent.SnmpMibTable 0N/A // null means get the first OID. 0N/A // See com.sun.jmx.snmp.agent.SnmpMibTable 0N/A // Get the data handler. 0N/A // This should never happen. 0N/A // If we get here it's a bug. 0N/A // if next is null: we reached the end of the table. 0N/A // See com.sun.jmx.snmp.agent.SnmpMibTable 0N/A // handler should never be null. 0N/A // See com.sun.jmx.snmp.agent.SnmpMibTable 0N/A // Get the request contextual cache (userData). 0N/A // the request contextual cache. 0N/A // Revisit: Probably better programming to put all these strings 0N/A // in some interface. 0N/A (
"JvmRTBootClassPathTable.entry." +
0N/A // If the entry is in the cache, simply return it. 0N/A log.
debug(
"getEntry",
"Entry is already in the cache");
0N/A // The entry was not in the cache, make a new one. 0N/A // Get the data hanler. 0N/A // handler should never be null. 0N/A // Get the data associated with our entry. 0N/A // data may be null if the OID we were given is not valid. 0N/A // make the new entry (transient object that will be kept only 0N/A // for the duration of the request. 0N/A // Put the entry in the cache in case we need it later while processing 0N/A * Get the SnmpTableHandler that holds the jvmThreadInstanceTable data. 0N/A * First look it up in the request contextual cache, and if it is 0N/A * not found, obtain it from the weak cache. 0N/A * <br>The request contextual cache will be released at the end of the 0N/A * current requests, and is used only to process this request. 0N/A * <br>The weak cache is shared by all requests, and is only 0N/A * recomputed when it is found to be obsolete. 0N/A * <br>Note that the data put in the request contextual cache is 0N/A * never considered to be obsolete, in order to preserve data 0N/A // Look in the contextual cache. 0N/A // No handler in contextual cache, make a new one.