APIdia Launch Partner
Top Description Fields Constructors Methods
sun.management

pack-priv Class ClassLoadingImpl

extends Object
implements ClassLoadingMXBean
Class Inheritance
All Implemented Interfaces
java.lang.management.ClassLoadingMXBean, java.lang.management.PlatformManagedObject
Imports
java.lang.management.ClassLoadingMXBean, .ManagementFactory, javax.management.ObjectName

Implementation class for the class loading subsystem. Standard and committed hotspot-specific metrics if any. ManagementFactory.getClassLoadingMXBean() returns an instance of this class.

Field Summary

Modifier and TypeField and Description
private final VMManagement

Constructor Summary

AccessConstructor and Description
pack-priv
ClassLoadingImpl(VMManagement vm)

Constructor of ClassLoadingImpl class.

Method Summary

Modifier and TypeMethod and Description
public int
getLoadedClassCount()

Implements java.lang.management.ClassLoadingMXBean.getLoadedClassCount.

Returns the number of classes that are currently loaded in the Java virtual machine.

public ObjectName
getObjectName()

Implements java.lang.management.PlatformManagedObject.getObjectName.

Returns an ObjectName instance representing the object name of this platform managed object.

public long
getTotalLoadedClassCount()

Implements java.lang.management.ClassLoadingMXBean.getTotalLoadedClassCount.

Returns the total number of classes that have been loaded since the Java virtual machine has started execution.

public long
getUnloadedClassCount()

Implements java.lang.management.ClassLoadingMXBean.getUnloadedClassCount.

Returns the total number of classes unloaded since the Java virtual machine has started execution.

public boolean
isVerbose()

Implements java.lang.management.ClassLoadingMXBean.isVerbose.

Tests if the verbose output for the class loading system is enabled.

public void
setVerbose(boolean value)

Implements java.lang.management.ClassLoadingMXBean.setVerbose.

Enables or disables the verbose output for the class loading system.

pack-priv static native void
setVerboseClass(boolean value)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

jvmback to summary
private final VMManagement jvm

Constructor Detail

ClassLoadingImplback to summary
pack-priv ClassLoadingImpl(VMManagement vm)

Constructor of ClassLoadingImpl class.

Method Detail

getLoadedClassCountback to summary
public int getLoadedClassCount()

Implements java.lang.management.ClassLoadingMXBean.getLoadedClassCount.

Doc from java.lang.management.ClassLoadingMXBean.getLoadedClassCount.

Returns the number of classes that are currently loaded in the Java virtual machine.

getObjectNameback to summary
public ObjectName getObjectName()

Implements java.lang.management.PlatformManagedObject.getObjectName.

Doc from java.lang.management.PlatformManagedObject.getObjectName.

Returns an ObjectName instance representing the object name of this platform managed object.

getTotalLoadedClassCountback to summary
public long getTotalLoadedClassCount()

Implements java.lang.management.ClassLoadingMXBean.getTotalLoadedClassCount.

Doc from java.lang.management.ClassLoadingMXBean.getTotalLoadedClassCount.

Returns the total number of classes that have been loaded since the Java virtual machine has started execution.

getUnloadedClassCountback to summary
public long getUnloadedClassCount()

Implements java.lang.management.ClassLoadingMXBean.getUnloadedClassCount.

Doc from java.lang.management.ClassLoadingMXBean.getUnloadedClassCount.

Returns the total number of classes unloaded since the Java virtual machine has started execution.

isVerboseback to summary
public boolean isVerbose()

Implements java.lang.management.ClassLoadingMXBean.isVerbose.

Doc from java.lang.management.ClassLoadingMXBean.isVerbose.

Tests if the verbose output for the class loading system is enabled.

setVerboseback to summary
public void setVerbose(boolean value)

Implements java.lang.management.ClassLoadingMXBean.setVerbose.

Doc from java.lang.management.ClassLoadingMXBean.setVerbose.

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.

setVerboseClassback to summary
pack-priv static native void setVerboseClass(boolean value)