/**
* Method that handles the registration of all the
* stats for various subsystems of the JVM
*/
public void registerStats(StatsHolder rootNode) {
MonitoringLevel level = MonitoringConfigurationHandler.getLevel(MonitoredObjectType.JVM);
// check monitoring level of JVM before registering
if(level != MonitoringLevel.OFF) {
try {
registerJVMCompilationStats(rootNode);
registerJVMClassLoadingStats(rootNode);