Package org.apache.log4j.jmx
Class HierarchyDynamicMBean
- java.lang.Object
-
- org.apache.log4j.jmx.AbstractDynamicMBean
-
- org.apache.log4j.jmx.HierarchyDynamicMBean
-
- All Implemented Interfaces:
DynamicMBean
,MBeanRegistration
,NotificationBroadcaster
,HierarchyEventListener
public class HierarchyDynamicMBean extends AbstractDynamicMBean implements HierarchyEventListener, NotificationBroadcaster
-
-
Constructor Summary
Constructors Constructor Description HierarchyDynamicMBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAppenderEvent(Category logger, Appender appender)
ObjectName
addLoggerMBean(String name)
void
addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
Object
getAttribute(String attributeName)
protected Logger
getLogger()
MBeanInfo
getMBeanInfo()
MBeanNotificationInfo[]
getNotificationInfo()
Object
invoke(String operationName, Object[] params, String[] signature)
void
postRegister(Boolean registrationDone)
void
removeAppenderEvent(Category cat, Appender appender)
void
removeNotificationListener(NotificationListener listener)
void
setAttribute(Attribute attribute)
-
Methods inherited from class org.apache.log4j.jmx.AbstractDynamicMBean
getAppenderName, getAttributes, postDeregister, preDeregister, preRegister, registerMBean, setAttributes
-
-
-
-
Method Detail
-
addLoggerMBean
public ObjectName addLoggerMBean(String name)
-
addNotificationListener
public void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
- Specified by:
addNotificationListener
in interfaceNotificationBroadcaster
-
getLogger
protected Logger getLogger()
- Specified by:
getLogger
in classAbstractDynamicMBean
-
getMBeanInfo
public MBeanInfo getMBeanInfo()
- Specified by:
getMBeanInfo
in interfaceDynamicMBean
-
getNotificationInfo
public MBeanNotificationInfo[] getNotificationInfo()
- Specified by:
getNotificationInfo
in interfaceNotificationBroadcaster
-
invoke
public Object invoke(String operationName, Object[] params, String[] signature) throws MBeanException, ReflectionException
- Specified by:
invoke
in interfaceDynamicMBean
- Throws:
MBeanException
ReflectionException
-
getAttribute
public Object getAttribute(String attributeName) throws AttributeNotFoundException, MBeanException, ReflectionException
- Specified by:
getAttribute
in interfaceDynamicMBean
- Throws:
AttributeNotFoundException
MBeanException
ReflectionException
-
addAppenderEvent
public void addAppenderEvent(Category logger, Appender appender)
- Specified by:
addAppenderEvent
in interfaceHierarchyEventListener
-
removeAppenderEvent
public void removeAppenderEvent(Category cat, Appender appender)
- Specified by:
removeAppenderEvent
in interfaceHierarchyEventListener
-
postRegister
public void postRegister(Boolean registrationDone)
- Specified by:
postRegister
in interfaceMBeanRegistration
- Overrides:
postRegister
in classAbstractDynamicMBean
-
removeNotificationListener
public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException
- Specified by:
removeNotificationListener
in interfaceNotificationBroadcaster
- Throws:
ListenerNotFoundException
-
setAttribute
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
- Specified by:
setAttribute
in interfaceDynamicMBean
- Throws:
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException
-
-