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 voidaddAppenderEvent(Category logger, Appender appender)ObjectNameaddLoggerMBean(String name)voidaddNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)ObjectgetAttribute(String attributeName)protected LoggergetLogger()MBeanInfogetMBeanInfo()MBeanNotificationInfo[]getNotificationInfo()Objectinvoke(String operationName, Object[] params, String[] signature)voidpostRegister(Boolean registrationDone)voidremoveAppenderEvent(Category cat, Appender appender)voidremoveNotificationListener(NotificationListener listener)voidsetAttribute(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:
addNotificationListenerin interfaceNotificationBroadcaster
-
getLogger
protected Logger getLogger()
- Specified by:
getLoggerin classAbstractDynamicMBean
-
getMBeanInfo
public MBeanInfo getMBeanInfo()
- Specified by:
getMBeanInfoin interfaceDynamicMBean
-
getNotificationInfo
public MBeanNotificationInfo[] getNotificationInfo()
- Specified by:
getNotificationInfoin interfaceNotificationBroadcaster
-
invoke
public Object invoke(String operationName, Object[] params, String[] signature) throws MBeanException, ReflectionException
- Specified by:
invokein interfaceDynamicMBean- Throws:
MBeanExceptionReflectionException
-
getAttribute
public Object getAttribute(String attributeName) throws AttributeNotFoundException, MBeanException, ReflectionException
- Specified by:
getAttributein interfaceDynamicMBean- Throws:
AttributeNotFoundExceptionMBeanExceptionReflectionException
-
addAppenderEvent
public void addAppenderEvent(Category logger, Appender appender)
- Specified by:
addAppenderEventin interfaceHierarchyEventListener
-
removeAppenderEvent
public void removeAppenderEvent(Category cat, Appender appender)
- Specified by:
removeAppenderEventin interfaceHierarchyEventListener
-
postRegister
public void postRegister(Boolean registrationDone)
- Specified by:
postRegisterin interfaceMBeanRegistration- Overrides:
postRegisterin classAbstractDynamicMBean
-
removeNotificationListener
public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException
- Specified by:
removeNotificationListenerin interfaceNotificationBroadcaster- Throws:
ListenerNotFoundException
-
setAttribute
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
- Specified by:
setAttributein interfaceDynamicMBean- Throws:
AttributeNotFoundExceptionInvalidAttributeValueExceptionMBeanExceptionReflectionException
-
-