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
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final Stringprivate final Stringprivate final MBeanConstructorInfo[]private final Stringprivate final MBeanOperationInfo[]private final LoggerRepositoryprivate static Loggerprivate final NotificationBroadcasterSupport(package private) static final Stringprivate final VectorFields inherited from class org.apache.log4j.jmx.AbstractDynamicMBean
server -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAppenderEvent(Category logger, Appender appender) addLoggerMBean(String name) (package private) ObjectNameaddLoggerMBean(Logger logger) voidaddNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) private voidgetAttribute(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
-
Field Details
-
ADD_APPENDER
- See Also:
-
THRESHOLD
- See Also:
-
log
-
dConstructors
-
dOperations
-
vAttributes
-
dClassName
-
dDescription
- See Also:
-
nbs
-
hierarchy
-
-
Constructor Details
-
HierarchyDynamicMBean
public HierarchyDynamicMBean()
-
-
Method Details
-
addAppenderEvent
- Specified by:
addAppenderEventin interfaceHierarchyEventListener
-
addLoggerMBean
-
addLoggerMBean
-
addNotificationListener
public void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) - Specified by:
addNotificationListenerin interfaceNotificationBroadcaster
-
buildDynamicMBeanInfo
private void buildDynamicMBeanInfo() -
getAttribute
public Object getAttribute(String attributeName) throws AttributeNotFoundException, MBeanException, ReflectionException - Specified by:
getAttributein interfaceDynamicMBean- Throws:
AttributeNotFoundExceptionMBeanExceptionReflectionException
-
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
-
postRegister
- Specified by:
postRegisterin interfaceMBeanRegistration- Overrides:
postRegisterin classAbstractDynamicMBean
-
removeAppenderEvent
- Specified by:
removeAppenderEventin interfaceHierarchyEventListener
-
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
-