use of org.kie.api.management.GenericKieSessionMonitoringMXBean in project drools by kiegroup.
the class MBeansMonitoringTest method print.
private void print(GenericKieSessionMonitoringMXBean mb) {
LOG.debug("total match created : {}", mb.getTotalMatchesCreated());
LOG.debug("total match cancelled: {}", mb.getTotalMatchesCancelled());
LOG.debug("total match fired : {}", mb.getTotalMatchesFired());
if (mb instanceof StatelessKieSessionMonitoringMXBean) {
StatelessKieSessionMonitoringMXBean c = (StatelessKieSessionMonitoringMXBean) mb;
LOG.debug("inserted and deleted : +{} -{}", c.getTotalObjectsInserted(), c.getTotalObjectsDeleted());
} else if (mb instanceof KieSessionMonitoringMXBean) {
KieSessionMonitoringMXBean c = (KieSessionMonitoringMXBean) mb;
LOG.debug("total tact count : {}", c.getTotalFactCount());
}
LOG.debug("{} ms .", mb.getTotalFiringTime());
}
Aggregations