public class HierarchyDynamicMBean extends AbstractDynamicMBean implements HierarchyEventListener, NotificationBroadcaster
| Constructor and Description |
|---|
HierarchyDynamicMBean() |
| Modifier and Type | Method and 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) |
getAppenderName, getAttributes, postDeregister, preDeregister, preRegister, registerMBean, setAttributespublic void addAppenderEvent(Category logger, Appender appender)
addAppenderEvent in interface HierarchyEventListenerpublic ObjectName addLoggerMBean(String name)
public void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
addNotificationListener in interface NotificationBroadcasterpublic Object getAttribute(String attributeName) throws AttributeNotFoundException, MBeanException, ReflectionException
getAttribute in interface DynamicMBeanAttributeNotFoundExceptionMBeanExceptionReflectionExceptionprotected Logger getLogger()
getLogger in class AbstractDynamicMBeanpublic MBeanInfo getMBeanInfo()
getMBeanInfo in interface DynamicMBeanpublic MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo in interface NotificationBroadcasterpublic Object invoke(String operationName, Object[] params, String[] signature) throws MBeanException, ReflectionException
invoke in interface DynamicMBeanMBeanExceptionReflectionExceptionpublic void postRegister(Boolean registrationDone)
postRegister in interface MBeanRegistrationpostRegister in class AbstractDynamicMBeanpublic void removeAppenderEvent(Category cat, Appender appender)
removeAppenderEvent in interface HierarchyEventListenerpublic void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException
removeNotificationListener in interface NotificationBroadcasterListenerNotFoundExceptionpublic void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
setAttribute in interface DynamicMBeanAttributeNotFoundExceptionInvalidAttributeValueExceptionMBeanExceptionReflectionExceptionCopyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.