com.ibm.lang.management
Class ClassLoadingMXBeanImpl
- java.lang.Object
com.ibm.lang.management.DynamicMXBeanImpl
com.ibm.lang.management.ClassLoadingMXBeanImpl
All implemented interfaces:
java.lang.management.ClassLoadingMXBean, javax.management.DynamicMBean
- public final class ClassLoadingMXBeanImpl
- extends DynamicMXBeanImpl
- implements java.lang.management.ClassLoadingMXBean
ClassLoadingMXBean
.
There is only ever one instance of this class in a virtual machine.
Since:
1.5
Field Summary
Fields inherited from class com.ibm.lang.management.DynamicMXBeanImpl |
---|
info |
Method Summary
Modifier and Type | Method and Description |
---|---|
|
getLoadedClassCount()
|
|
getTotalLoadedClassCount()
|
|
getUnloadedClassCount()
|
|
isVerbose()
|
|
setVerbose(boolean value)
|
Methods inherited from class com.ibm.lang.management.DynamicMXBeanImpl |
---|
getAttribute, getAttributes, getMBeanInfo, getPresentAttribute, getPresentOperation, initMBeanInfo, invoke, setAttribute, setAttributes, setMBeanInfo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail
getLoadedClassCount
- public int getLoadedClassCount( )
Returns the number of classes currently loaded by the virtual machine.
Specified by:
getLoadedClassCount
in interface java.lang.management.ClassLoadingMXBean
Returns:
the number of loaded classes
getTotalLoadedClassCount
- public long getTotalLoadedClassCount( )
Description copied from interface: java.lang.management.ClassLoadingMXBean
Returns a figure for the total number of classes that have been
loaded by the virtual machine during its lifetime.
Specified by:
getTotalLoadedClassCount
in interface java.lang.management.ClassLoadingMXBean
Returns:
the total number of classes that have been loaded
getUnloadedClassCount
- public long getUnloadedClassCount( )
Description copied from interface: java.lang.management.ClassLoadingMXBean
Returns a figure for the total number of classes that have
been unloaded by the virtual machine over its lifetime.
Specified by:
getUnloadedClassCount
in interface java.lang.management.ClassLoadingMXBean
Returns:
the total number of unloaded classes
isVerbose
- public boolean isVerbose()
Description copied from interface: java.lang.management.ClassLoadingMXBean
Returns a boolean indication of whether the virtual
machine's class loading system is producing verbose output.
Specified by:
isVerbose
in interface java.lang.management.ClassLoadingMXBean
Returns:
true if running in verbose mode
setVerbose
- public void setVerbose(boolean value)
Description copied from interface: java.lang.management.ClassLoadingMXBean
Updates the virtual machine's class loading system to
operate in verbose or non-verbose mode.
Specified by:
setVerbose
in interface java.lang.management.ClassLoadingMXBean
Parameters:
value
- true to put the class loading system into verbose
mode, false to take the class loading system out of verbose mode.
Description copied from interface:
java.lang.management.ClassLoadingMXBean