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 String
private final String
private final MBeanConstructorInfo[]
private final String
private final MBeanOperationInfo[]
private final LoggerRepository
private static Logger
private final NotificationBroadcasterSupport
(package private) static final String
private final Vector
Fields inherited from class org.apache.log4j.jmx.AbstractDynamicMBean
server
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAppenderEvent
(Category logger, Appender appender) addLoggerMBean
(String name) (package private) ObjectName
addLoggerMBean
(Logger logger) void
addNotificationListener
(NotificationListener listener, NotificationFilter filter, Object handback) private void
getAttribute
(String attributeName) protected Logger
void
postRegister
(Boolean registrationDone) void
removeAppenderEvent
(Category cat, Appender appender) void
void
setAttribute
(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:
addAppenderEvent
in interfaceHierarchyEventListener
-
addLoggerMBean
-
addLoggerMBean
-
addNotificationListener
public void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) - Specified by:
addNotificationListener
in interfaceNotificationBroadcaster
-
buildDynamicMBeanInfo
private void buildDynamicMBeanInfo() -
getAttribute
public Object getAttribute(String attributeName) throws AttributeNotFoundException, MBeanException, ReflectionException - Specified by:
getAttribute
in interfaceDynamicMBean
- Throws:
AttributeNotFoundException
MBeanException
ReflectionException
-
getLogger
- Specified by:
getLogger
in classAbstractDynamicMBean
-
getMBeanInfo
- Specified by:
getMBeanInfo
in interfaceDynamicMBean
-
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
-
postRegister
- Specified by:
postRegister
in interfaceMBeanRegistration
- Overrides:
postRegister
in classAbstractDynamicMBean
-
removeAppenderEvent
- Specified by:
removeAppenderEvent
in interfaceHierarchyEventListener
-
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
-