Package org.apache.log4j.jmx
Class LoggerDynamicMBean
java.lang.Object
org.apache.log4j.jmx.AbstractDynamicMBean
org.apache.log4j.jmx.LoggerDynamicMBean
- All Implemented Interfaces:
EventListener
,DynamicMBean
,MBeanRegistration
,NotificationListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static Logger
private final Vector
private final String
private final MBeanConstructorInfo[]
private final String
private final MBeanOperationInfo[]
private final Logger
Fields inherited from class org.apache.log4j.jmx.AbstractDynamicMBean
server
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
addAppender
(String appenderClass, String appenderName) (package private) void
private void
getAttribute
(String attributeName) protected Logger
void
handleNotification
(Notification notification, Object handback) void
postRegister
(Boolean registrationDone) (package private) void
registerAppenderMBean
(Appender appender) void
setAttribute
(Attribute attribute) Methods inherited from class org.apache.log4j.jmx.AbstractDynamicMBean
getAppenderName, getAttributes, postDeregister, preDeregister, preRegister, registerMBean, setAttributes
-
Field Details
-
cat
-
dConstructors
-
dOperations
-
dAttributes
-
dClassName
-
dDescription
- See Also:
-
logger
-
-
Constructor Details
-
LoggerDynamicMBean
-
-
Method Details
-
addAppender
-
appenderMBeanRegistration
void appenderMBeanRegistration() -
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
-
handleNotification
- Specified by:
handleNotification
in interfaceNotificationListener
-
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
-
registerAppenderMBean
-
setAttribute
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException - Specified by:
setAttribute
in interfaceDynamicMBean
- Throws:
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException
-