public final class JMXSupport extends Object implements Callbacks.ClassLoadedMonitor
Pulling the functionality into the core of the VM will hopefully allow us to support multiple class libraries without having to duplicate a lot of code. TODO: we need to add OpenJDK support before we actually know whether that is true.
Modifier and Type | Field and Description |
---|---|
static JMXSupport |
CLASS_LOADING_JMX_SUPPORT |
private int |
classLoadedCount
the count of loaded classes
|
Modifier | Constructor and Description |
---|---|
private |
JMXSupport() |
Modifier and Type | Method and Description |
---|---|
static int |
getLoadedClassCount() |
static long |
getUnloadedClassCount() |
private static void |
increaseClassLoadedCount() |
static boolean |
isVerbose() |
void |
notifyClassLoaded(RVMClass klass)
Notify the monitor that a class has been loaded.
|
void |
setClassLoadedCountForBootimage(int bootimageTypeCount)
Sets the count of loaded classes when writing the bootimage.
|
static void |
setVerbose(boolean verbose) |
public static final JMXSupport CLASS_LOADING_JMX_SUPPORT
private int classLoadedCount
private JMXSupport()
public void notifyClassLoaded(RVMClass klass)
Callbacks.ClassLoadedMonitor
notifyClassLoaded
in interface Callbacks.ClassLoadedMonitor
klass
- the class that was loadedprivate static void increaseClassLoadedCount()
public static int getLoadedClassCount()
public static long getUnloadedClassCount()
public static boolean isVerbose()
public static void setVerbose(boolean verbose)
public void setClassLoadedCountForBootimage(int bootimageTypeCount)
bootimageTypeCount
- the number of types contained in the bootimage