Package org.drools.core.management
Class KnowledgeBaseMonitoring
- java.lang.Object
-
- org.drools.core.management.KnowledgeBaseMonitoring
-
- All Implemented Interfaces:
DynamicMBean
public class KnowledgeBaseMonitoring extends Object implements DynamicMBean
An implementation for the KnowledgeBaseMBean
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Loggerlogger
-
Constructor Summary
Constructors Constructor Description KnowledgeBaseMonitoring(InternalKnowledgeBase kbase)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetAttribute(String attributeName)AttributeListgetAttributes(String[] attributeNames)TabularDatagetGlobals()StringgetId()MBeanInfogetMBeanInfo()ObjectNamegetName()String[]getPackages()longgetSessionCount()Objectinvoke(String operationName, Object[] params, String[] signature)voidsetAttribute(Attribute attribute)AttributeListsetAttributes(AttributeList attributes)voidstartInternalMBeans()voidstopInternalMBeans()
-
-
-
Constructor Detail
-
KnowledgeBaseMonitoring
public KnowledgeBaseMonitoring(InternalKnowledgeBase kbase)
-
-
Method Detail
-
getName
public ObjectName getName()
-
getGlobals
public TabularData getGlobals() throws OpenDataException
- Throws:
OpenDataException
-
getId
public String getId()
-
getPackages
public String[] getPackages()
-
getSessionCount
public long getSessionCount()
-
startInternalMBeans
public void startInternalMBeans()
-
stopInternalMBeans
public void stopInternalMBeans()
-
getAttribute
public Object getAttribute(String attributeName) throws AttributeNotFoundException, MBeanException, ReflectionException
- Specified by:
getAttributein interfaceDynamicMBean- Throws:
AttributeNotFoundExceptionMBeanExceptionReflectionException
-
getAttributes
public AttributeList getAttributes(String[] attributeNames)
- Specified by:
getAttributesin interfaceDynamicMBean
-
getMBeanInfo
public MBeanInfo getMBeanInfo()
- Specified by:
getMBeanInfoin interfaceDynamicMBean
-
invoke
public Object invoke(String operationName, Object[] params, String[] signature) throws MBeanException, ReflectionException
- Specified by:
invokein interfaceDynamicMBean- Throws:
MBeanExceptionReflectionException
-
setAttribute
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
- Specified by:
setAttributein interfaceDynamicMBean- Throws:
AttributeNotFoundExceptionInvalidAttributeValueExceptionMBeanExceptionReflectionException
-
setAttributes
public AttributeList setAttributes(AttributeList attributes)
- Specified by:
setAttributesin interfaceDynamicMBean
-
-