java.lang.management
public interface ClassLoadingMXBean
ManagementFactory.getClassLoadingMXBean()
.Modifier and Type | Method and Description |
---|---|
int |
getLoadedClassCount()
Returns the number of classes currently loaded by
the virtual machine.
|
long |
getTotalLoadedClassCount()
Returns the total number of classes loaded by the
virtual machine since it was started.
|
long |
getUnloadedClassCount()
Returns the number of classes that have been unloaded
by the virtual machine since it was started.
|
boolean |
isVerbose()
Returns true if the virtual machine will emit additional
information when classes are loaded and unloaded.
|
void |
setVerbose(boolean verbose)
Turns on or off the emission of additional information
when classes are loaded and unloaded.
|
int getLoadedClassCount()
long getTotalLoadedClassCount()
long getUnloadedClassCount()
boolean isVerbose()
void setVerbose(boolean verbose)
verbose
- the new setting for verbose class loading
output.SecurityException
- if a security manager exists and
denies ManagementPermission("control").