Class: sun.management.ClassLoadingImpl
- class ClassLoadingImpl
- implements ClassLoadingMXBean
Implementation class for the class loading subsystem.
Standard and committed hotspot-specific metrics if any.
ManagementFactory.getClassLoadingMXBean() returns an instance
of this class.
Methods
-
ClassLoadingImpltop
ClassLoadingImpl(VMManagement vm)Constructor of ClassLoadingImpl class. -
getLoadedClassCounttop
public int getLoadedClassCount()Returns the number of classes that are currently loaded in the Java virtual machine.- Specified by:
- getLoadedClassCount from ClassLoadingMXBean
-
getTotalLoadedClassCounttop
public long getTotalLoadedClassCount()Returns the total number of classes that have been loaded since the Java virtual machine has started execution.- Specified by:
- getTotalLoadedClassCount from ClassLoadingMXBean
-
getUnloadedClassCounttop
public long getUnloadedClassCount()Returns the total number of classes unloaded since the Java virtual machine has started execution.- Specified by:
- getUnloadedClassCount from ClassLoadingMXBean
-
isVerbosetop
public boolean isVerbose()Tests if the verbose output for the class loading system is enabled.- Specified by:
- isVerbose from ClassLoadingMXBean
-
setVerbosetop
public void setVerbose(boolean value)Enables or disables the verbose output for the class loading system. The verbose output information and the output stream to which the verbose information is emitted are implementation dependent. Typically, a Java virtual machine implementation prints a message each time a class file is loaded.This method can be called by multiple threads concurrently. Each invocation of this method enables or disables the verbose output globally.
- Specified by:
- setVerbose from ClassLoadingMXBean
-
setVerboseClasstop
static native void setVerboseClass(boolean value)
Fields
-
jvm
final private VMManagement jvm
