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 Loggerprivate final Vectorprivate final Stringprivate final MBeanConstructorInfo[]private final Stringprivate final MBeanOperationInfo[]private final LoggerFields inherited from class AbstractDynamicMBean
server -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidaddAppender(String appenderClass, String appenderName) (package private) voidprivate voidgetAttribute(String attributeName) protected LoggervoidhandleNotification(Notification notification, Object handback) voidpostRegister(Boolean registrationDone) (package private) voidregisterAppenderMBean(Appender appender) voidsetAttribute(Attribute attribute) Methods inherited from class 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:
getAttributein interfaceDynamicMBean- Throws:
AttributeNotFoundExceptionMBeanExceptionReflectionException
-
getLogger
- Specified by:
getLoggerin classAbstractDynamicMBean
-
getMBeanInfo
- Specified by:
getMBeanInfoin interfaceDynamicMBean
-
handleNotification
- Specified by:
handleNotificationin interfaceNotificationListener
-
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
-
registerAppenderMBean
-
setAttribute
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException - Specified by:
setAttributein interfaceDynamicMBean- Throws:
AttributeNotFoundExceptionInvalidAttributeValueExceptionMBeanExceptionReflectionException
-