/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* 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.
*/
// java imports
//
// jmx imports
//
// jdmk imports
//
/**
* The class is used for implementing the "JvmThreadInstanceEntry" group.
*/
public class JvmThreadInstanceEntryImpl
implements JvmThreadInstanceEntryMBean, Serializable {
public final static class ThreadStateMap {
public final static class Byte0 {
}
public final static class Byte1 {
}
}
}
}
switch(state) {
case BLOCKED:
return;
case NEW:
return;
case RUNNABLE:
return;
case TERMINATED:
return;
case TIMED_WAITING:
return;
case WAITING:
return;
}
}
}
try {
"[State=" + state +
",isInNative=" + inNative +
} catch (RuntimeException r) {
"Unexpected exception: " + r);
}
return result;
}
}
/**
* Constructor for the "JvmThreadInstanceEntry" group.
*/
}
throws SnmpStatusException {
if (jvmThreadInstIndexOid == null) {
final SnmpOidRecord record =
}
return jvmThreadInstIndexOid;
}
/**
* Getter for the "JvmThreadInstLockedOwnerId" variable.
*/
if(id == -1)
return new String("0.0");
}
}
}
}
/**
* Getter for the "JvmThreadInstLockName" variable.
*/
}
/**
* Getter for the "JvmThreadInstName" variable.
*/
}
/**
* Getter for the "JvmThreadInstCpuTimeNs" variable.
*/
long l = 0;
try {
if (tmb.isThreadCpuTimeSupported()) {
//Cpu time measurement is disabled or the id is not valid.
if(l == -1) l = 0;
}
} catch (UnsatisfiedLinkError e) {
// XXX Revisit: catch TO BE EVENTUALLY REMOVED
"Operation not supported: " + e);
}
return new Long(l);
}
/**
* Getter for the "JvmThreadInstBlockTimeMs" variable.
*/
long l = 0;
if (tmb.isThreadContentionMonitoringSupported()) {
l = info.getBlockedTime();
//Monitoring is disabled
if(l == -1) l = 0;
}
return new Long(l);
}
/**
* Getter for the "JvmThreadInstBlockCount" variable.
*/
}
/**
* Getter for the "JvmThreadInstWaitTimeMs" variable.
*/
long l = 0;
if (tmb.isThreadContentionMonitoringSupported()) {
l = info.getWaitedTime();
//Monitoring is disabled
if(l == -1) l = 0;
}
return new Long(l);
}
/**
* Getter for the "JvmThreadInstWaitCount" variable.
*/
}
/**
* Getter for the "JvmThreadInstState" variable.
*/
throws SnmpStatusException {
}
/**
* Getter for the "JvmThreadInstId" variable.
*/
}
/**
* Getter for the "JvmThreadInstIndex" variable.
*/
return index;
}
/**
* Getter for the "JvmThreadInstStackTrace" variable.
*/
//We append the stack trace in a buffer
// XXX Revisit: should check isDebugOn()
StringBuffer b = new StringBuffer();
for(int i = 0; i < stackSize; i++) {
stackTrace[i].toString());
//Append \n at the end of each line except the last one
if(i < stackSize)
b.append("\n");
}
//The stack trace is truncated if its size exceeds 255.
return validPathElementTC(b.toString());
}
new MibLogger(JvmThreadInstanceEntryImpl.class);
}