org.drools.management
Class KnowledgeSessionMonitoring

java.lang.Object
  extended by org.drools.management.KnowledgeSessionMonitoring
All Implemented Interfaces:
org.drools.management.KnowledgeSessionMonitoringMBean

public class KnowledgeSessionMonitoring
extends Object
implements org.drools.management.KnowledgeSessionMonitoringMBean

An MBean to monitor a given knowledge session


Nested Class Summary
static class KnowledgeSessionMonitoring.AgendaStats
           
static class KnowledgeSessionMonitoring.ProcessStats
           
 
Field Summary
 KnowledgeSessionMonitoring.AgendaStats agendaStats
           
 KnowledgeSessionMonitoring.ProcessStats processStats
           
 
Constructor Summary
KnowledgeSessionMonitoring(InternalWorkingMemory ksession)
           
 
Method Summary
 void dispose()
           
 double getAverageFiringTime()
           
 InternalRuleBase getKbase()
           
 String getKnowledgeBaseId()
           
 int getKnowledgeSessionId()
           
 InternalWorkingMemory getKsession()
           
 Date getLastReset()
           
 ObjectName getName()
           
 Map<String,String> getStatsByProcess()
           
 Map<Long,String> getStatsByProcessInstance()
           
 Map<String,String> getStatsByRule()
           
 String getStatsForProcess(String processId)
           
 String getStatsForProcessInstance(long processInstanceId)
           
 String getStatsForRule(String ruleName)
           
 long getTotalActivationsCancelled()
           
 long getTotalActivationsCreated()
           
 long getTotalActivationsFired()
           
 long getTotalFactCount()
           
 long getTotalFiringTime()
           
 long getTotalProcessInstancesCompleted()
           
 long getTotalProcessInstancesStarted()
           
 void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

agendaStats

public KnowledgeSessionMonitoring.AgendaStats agendaStats

processStats

public KnowledgeSessionMonitoring.ProcessStats processStats
Constructor Detail

KnowledgeSessionMonitoring

public KnowledgeSessionMonitoring(InternalWorkingMemory ksession)
Method Detail

dispose

public void dispose()

reset

public void reset()
Specified by:
reset in interface org.drools.management.KnowledgeSessionMonitoringMBean

getKsession

public InternalWorkingMemory getKsession()

getKbase

public InternalRuleBase getKbase()

getName

public ObjectName getName()
Specified by:
getName in interface org.drools.management.KnowledgeSessionMonitoringMBean

getKnowledgeBaseId

public String getKnowledgeBaseId()
Specified by:
getKnowledgeBaseId in interface org.drools.management.KnowledgeSessionMonitoringMBean

getKnowledgeSessionId

public int getKnowledgeSessionId()
Specified by:
getKnowledgeSessionId in interface org.drools.management.KnowledgeSessionMonitoringMBean

getTotalFactCount

public long getTotalFactCount()
Specified by:
getTotalFactCount in interface org.drools.management.KnowledgeSessionMonitoringMBean

getTotalActivationsFired

public long getTotalActivationsFired()
Specified by:
getTotalActivationsFired in interface org.drools.management.KnowledgeSessionMonitoringMBean

getTotalActivationsCancelled

public long getTotalActivationsCancelled()
Specified by:
getTotalActivationsCancelled in interface org.drools.management.KnowledgeSessionMonitoringMBean

getTotalActivationsCreated

public long getTotalActivationsCreated()
Specified by:
getTotalActivationsCreated in interface org.drools.management.KnowledgeSessionMonitoringMBean

getTotalFiringTime

public long getTotalFiringTime()
Specified by:
getTotalFiringTime in interface org.drools.management.KnowledgeSessionMonitoringMBean

getLastReset

public Date getLastReset()
Specified by:
getLastReset in interface org.drools.management.KnowledgeSessionMonitoringMBean

getAverageFiringTime

public double getAverageFiringTime()
Specified by:
getAverageFiringTime in interface org.drools.management.KnowledgeSessionMonitoringMBean

getStatsForRule

public String getStatsForRule(String ruleName)
Specified by:
getStatsForRule in interface org.drools.management.KnowledgeSessionMonitoringMBean

getStatsByRule

public Map<String,String> getStatsByRule()
Specified by:
getStatsByRule in interface org.drools.management.KnowledgeSessionMonitoringMBean

getTotalProcessInstancesStarted

public long getTotalProcessInstancesStarted()
Specified by:
getTotalProcessInstancesStarted in interface org.drools.management.KnowledgeSessionMonitoringMBean

getTotalProcessInstancesCompleted

public long getTotalProcessInstancesCompleted()
Specified by:
getTotalProcessInstancesCompleted in interface org.drools.management.KnowledgeSessionMonitoringMBean

getStatsForProcess

public String getStatsForProcess(String processId)
Specified by:
getStatsForProcess in interface org.drools.management.KnowledgeSessionMonitoringMBean

getStatsByProcess

public Map<String,String> getStatsByProcess()
Specified by:
getStatsByProcess in interface org.drools.management.KnowledgeSessionMonitoringMBean

getStatsForProcessInstance

public String getStatsForProcessInstance(long processInstanceId)
Specified by:
getStatsForProcessInstance in interface org.drools.management.KnowledgeSessionMonitoringMBean

getStatsByProcessInstance

public Map<Long,String> getStatsByProcessInstance()
Specified by:
getStatsByProcessInstance in interface org.drools.management.KnowledgeSessionMonitoringMBean


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.