Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

In the java world, it is very common to use JMX as supervision and monitoring technology.

As JMX is a standard and is supported by most supervision tools, the chtijbug library implements two mbeans.

Rule Base Mbean

Our current implementation is minimal. It allows to get a list of the used ressources by their names, to query if the knowledge base is loaded allows to rebuild the knowledge base. This is very useful if you want to reload rules from a Guvnor repository.

A lot of improvements are needed :

Error rendering macro 'jira' : Unable to locate Jira server for this macro. It may be due to Application Link configuration.

The name of this mbean is

org.chtijbug.drools.runtime:type=RuleBaseSupervision

 

State-full Session MBEAN

This mbeans gives information on all sessions attached to the RuleBase.

the name if the mbean is

org.chtijbug.drools.runtime:type=StateFullSessionSupervision

Some enhancements are needed for that part : Unable to locate Jira server for this macro. It may be due to Application Link configuration.

 

getAverageTimeExecutionAverage fireAllRules time execution
getMinTimeExecutionMinimum fireAllRules time execution
getMaxTimeExecutionMaximum fireAllRules time execution
getAverageRulesExecutedAverage number of rules fired during a fireAllRules
getMinRulesExecutedminumum number of rules fired during a fireAllRules
getMaxRulesExecutedMaximum number of rules fired during a fireAllRules
getAverageRuleThroughoutAverage number of rules executed per second during a fireAllRules
getMinRuleThroughoutminimum number of rules executed per second during a fireAllRules
getMaxRuleThroughoutMaximum number of rules executed per second during a fireAllRules
resetStatisticsReset all previous statistic
isGenerateXMLHistoryContainer

if true, then the HistoryContainer of the session is sent in the JMX event

generated for each fireAllRules Commands

Is set to false by default

setGenerateXMLHistoryContainerSet/unset the generation of the HistoryContainer

 

UML diagram

 

 

 

  • No labels