Search in sources :

Example 1 with GenericKieSessionMonitoringMXBean

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());
}
Also used : GenericKieSessionMonitoringMXBean(org.kie.api.management.GenericKieSessionMonitoringMXBean) KieSessionMonitoringMXBean(org.kie.api.management.KieSessionMonitoringMXBean) StatelessKieSessionMonitoringMXBean(org.kie.api.management.StatelessKieSessionMonitoringMXBean) StatelessKieSessionMonitoringMXBean(org.kie.api.management.StatelessKieSessionMonitoringMXBean)

Aggregations

GenericKieSessionMonitoringMXBean (org.kie.api.management.GenericKieSessionMonitoringMXBean)1 KieSessionMonitoringMXBean (org.kie.api.management.KieSessionMonitoringMXBean)1 StatelessKieSessionMonitoringMXBean (org.kie.api.management.StatelessKieSessionMonitoringMXBean)1