--- old/src/jdk.snmp/share/classes/sun/management/snmp/jvminstr/JvmThreadInstanceTableMetaImpl.java 2014-10-15 14:07:01.000000000 +0200
+++ /dev/null 2014-10-15 14:07:01.000000000 +0200
@@ -1,404 +0,0 @@
-/*
- * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-package sun.management.snmp.jvminstr;
-
-// java imports
-//
-import com.sun.jmx.mbeanserver.Util;
-import java.io.Serializable;
-import java.util.Vector;
-import java.util.Map;
-import java.util.TreeMap;
-import java.util.Enumeration;
-
-import java.lang.management.ThreadInfo;
-import java.lang.management.ManagementFactory;
-
-// jmx imports
-//
-import javax.management.MBeanServer;
-import javax.management.ObjectName;
-import com.sun.jmx.snmp.SnmpCounter;
-import com.sun.jmx.snmp.SnmpCounter64;
-import com.sun.jmx.snmp.SnmpGauge;
-import com.sun.jmx.snmp.SnmpInt;
-import com.sun.jmx.snmp.SnmpUnsignedInt;
-import com.sun.jmx.snmp.SnmpIpAddress;
-import com.sun.jmx.snmp.SnmpTimeticks;
-import com.sun.jmx.snmp.SnmpOpaque;
-import com.sun.jmx.snmp.SnmpString;
-import com.sun.jmx.snmp.SnmpStringFixed;
-import com.sun.jmx.snmp.SnmpOid;
-import com.sun.jmx.snmp.SnmpNull;
-import com.sun.jmx.snmp.SnmpValue;
-import com.sun.jmx.snmp.SnmpVarBind;
-import com.sun.jmx.snmp.SnmpStatusException;
-
-// jdmk imports
-//
-import com.sun.jmx.snmp.agent.SnmpIndex;
-import com.sun.jmx.snmp.agent.SnmpMib;
-import com.sun.jmx.snmp.agent.SnmpMibTable;
-import com.sun.jmx.snmp.agent.SnmpMibSubRequest;
-import com.sun.jmx.snmp.agent.SnmpStandardObjectServer;
-
-import sun.management.snmp.jvmmib.JvmThreadInstanceEntryMBean;
-import sun.management.snmp.jvmmib.JvmThreadInstanceTableMeta;
-import sun.management.snmp.util.SnmpTableCache;
-import sun.management.snmp.util.SnmpCachedData;
-import sun.management.snmp.util.SnmpTableHandler;
-import sun.management.snmp.util.MibLogger;
-import sun.management.snmp.util.JvmContextFactory;
-
-/**
- * The class is used for implementing the "JvmThreadInstanceTable" group.
- */
-public class JvmThreadInstanceTableMetaImpl
- extends JvmThreadInstanceTableMeta {
-
- static final long serialVersionUID = -8432271929226397492L;
-
- /**
- * Maximum depth of the stacktrace that might be returned through
- * SNMP.
- *
- * Since we do not export the stack trace through SNMP, we set
- * MAX_STACK_TRACE_DEPTH=0 so that ThreadMXBean.getThreadInfo(long) does
- * not compute the stack trace.
- *
- **/
- public static final int MAX_STACK_TRACE_DEPTH=0;
-
- /**
- * Translate from a long to a Oid. Arc follow the long big-endian order.
- * @param l The long to make the index from
- * @return The arc array.
- */
- static SnmpOid makeOid(long l) {
- long[] x = new long [8];
- x[0] = (l >> 56) & 0xFF;
- x[1] = (l >> 48) & 0x00FF;
- x[2] = (l >> 40) & 0x0000FF;
- x[3] = (l >> 32) & 0x000000FF;
- x[4] = (l >> 24) & 0x00000000FF;
- x[5] = (l >> 16) & 0x0000000000FF;
- x[6] = (l >> 8) & 0x000000000000FF;
- x[7] = l & 0x00000000000000FF;
- return new SnmpOid(x);
- }
-
- /**
- * Translate an Oid to a thread id. Arc follow the long big-endian order.
- * @param oid The oid to make the id from
- * @return The thread id.
- */
- static long makeId(SnmpOid oid) {
- long id = 0;
- long[] arcs = oid.longValue(false);
-
- id |= arcs[0] << 56;
- id |= arcs[1] << 48;
- id |= arcs[2] << 40;
- id |= arcs[3] << 32;
- id |= arcs[4] << 24;
- id |= arcs[5] << 16;
- id |= arcs[6] << 8;
- id |= arcs[7];
-
- return id;
- }
-
- /**
- * A concrete implementation of {@link SnmpTableCache}, for the
- * JvmThreadInstanceTable.
- **/
- private static class JvmThreadInstanceTableCache
- extends SnmpTableCache {
-
- static final long serialVersionUID = 4947330124563406878L;
- final private JvmThreadInstanceTableMetaImpl meta;
-
- /**
- * Create a weak cache for the JvmThreadInstanceTable.
- * @param validity validity of the cached data, in ms.
- **/
- JvmThreadInstanceTableCache(JvmThreadInstanceTableMetaImpl meta,
- long validity) {
- this.validity = validity;
- this.meta = meta;
- }
-
- /**
- * Call getTableDatas(JvmContextFactory.getUserData()).
- **/
- public SnmpTableHandler getTableHandler() {
- final Map