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 :
getAverageTimeExecution | |
---|---|
getMinTimeExecution | |
getMaxTimeExecution | |
getAverageRulesExecuted | |
getMinRulesExecuted | |
getMaxRulesExecuted | |
getAverageRuleThroughout | |
getMinRuleThroughout | |
getMaxRuleThroughout | |
resetStatistics | |
isGenerateXMLHistoryContainer | |
setGenerateXMLHistoryContainer |
UML diagram