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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAppenderEvent(Category logger, Appender appender) addLoggerMBean(String name) voidaddNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) getAttribute(String attributeName) protected LoggervoidpostRegister(Boolean registrationDone) voidremoveAppenderEvent(Category cat, Appender appender) voidvoidsetAttribute(Attribute attribute) Methods inherited from class org.apache.log4j.jmx.AbstractDynamicMBean
getAppenderName, getAttributes, postDeregister, preDeregister, preRegister, registerMBean, setAttributes
-
Constructor Details
-
HierarchyDynamicMBean
public HierarchyDynamicMBean()
-
-
Method Details
-
addLoggerMBean
-
addNotificationListener
public void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) - Specified by:
addNotificationListenerin interfaceNotificationBroadcaster
-
getLogger
- Specified by:
getLoggerin classAbstractDynamicMBean
-
getMBeanInfo
- Specified by:
getMBeanInfoin interfaceDynamicMBean
-
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
- Specified by:
addAppenderEventin interfaceHierarchyEventListener
-
removeAppenderEvent
- Specified by:
removeAppenderEventin interfaceHierarchyEventListener
-
postRegister
- 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
-