public void startInternalMBeans() {
for ( EntryPointNode epn : kbase.getRete().getEntryPointNodes().values() ) {
for ( ObjectTypeNode otn : epn.getObjectTypeNodes().values() ) {
ObjectTypeNodeMonitor otnm = new ObjectTypeNodeMonitor( otn );
try {
final StandardMBean adapter = new StandardMBean(otnm, ObjectTypeNodeMonitorMBean.class);
ObjectName name = DroolsManagementAgent.createObjectName( this.name.getCanonicalName() + ",group=EntryPoints,EntryPoint=" + otnm.getNameSufix() + ",ObjectType=" + ((ClassObjectType) otn.getObjectType()).getClassName() );
DroolsManagementAgent.getInstance().registerMBean( kbase,
adapter,
name );
} catch ( NotCompliantMBeanException e ) {
logger.error( "Unable to register ObjectTypeNodeMonitor mbean for OTN "+otn.getObjectType()+" into the platform MBean Server", e);
}
}
}
final KieBaseConfigurationMonitor kbcm = new KieBaseConfigurationMonitor( kbase.getConfiguration() );
try {
final StandardMBean adapter = new StandardMBean(kbcm, KieBaseConfigurationMonitorMBean.class);
ObjectName name = DroolsManagementAgent.createObjectName( this.name.getCanonicalName() + ",group=Configuration" );
DroolsManagementAgent.getInstance().registerMBean( kbase,
adapter,
name );
} catch ( NotCompliantMBeanException e ) {