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.Logger
logger
-
Constructor Summary
Constructors Constructor Description KnowledgeBaseMonitoring(InternalKnowledgeBase kbase)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getAttribute(String attributeName)
AttributeList
getAttributes(String[] attributeNames)
TabularData
getGlobals()
String
getId()
MBeanInfo
getMBeanInfo()
ObjectName
getName()
String[]
getPackages()
long
getSessionCount()
Object
invoke(String operationName, Object[] params, String[] signature)
void
setAttribute(Attribute attribute)
AttributeList
setAttributes(AttributeList attributes)
void
startInternalMBeans()
void
stopInternalMBeans()
-
-
-
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:
getAttribute
in interfaceDynamicMBean
- Throws:
AttributeNotFoundException
MBeanException
ReflectionException
-
getAttributes
public AttributeList getAttributes(String[] attributeNames)
- Specified by:
getAttributes
in interfaceDynamicMBean
-
getMBeanInfo
public MBeanInfo getMBeanInfo()
- Specified by:
getMBeanInfo
in interfaceDynamicMBean
-
invoke
public Object invoke(String operationName, Object[] params, String[] signature) throws MBeanException, ReflectionException
- Specified by:
invoke
in interfaceDynamicMBean
- Throws:
MBeanException
ReflectionException
-
setAttribute
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
- Specified by:
setAttribute
in interfaceDynamicMBean
- Throws:
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException
-
setAttributes
public AttributeList setAttributes(AttributeList attributes)
- Specified by:
setAttributes
in interfaceDynamicMBean
-
-