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
public class LoggerDynamicMBean extends AbstractDynamicMBean implements NotificationListener
-
-
Constructor Summary
Constructors Constructor Description LoggerDynamicMBean(Logger logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetAttribute(String attributeName)protected LoggergetLogger()MBeanInfogetMBeanInfo()voidhandleNotification(Notification notification, Object handback)Objectinvoke(String operationName, Object[] params, String[] signature)voidpostRegister(Boolean registrationDone)voidsetAttribute(Attribute attribute)-
Methods inherited from class org.apache.log4j.jmx.AbstractDynamicMBean
getAppenderName, getAttributes, postDeregister, preDeregister, preRegister, registerMBean, setAttributes
-
-
-
-
Constructor Detail
-
LoggerDynamicMBean
public LoggerDynamicMBean(Logger logger)
-
-
Method Detail
-
handleNotification
public void handleNotification(Notification notification, Object handback)
- Specified by:
handleNotificationin interfaceNotificationListener
-
getLogger
protected Logger getLogger()
- Specified by:
getLoggerin classAbstractDynamicMBean
-
getMBeanInfo
public MBeanInfo getMBeanInfo()
- Specified by:
getMBeanInfoin interfaceDynamicMBean
-
invoke
public Object invoke(String operationName, Object[] params, String[] signature) throws MBeanException, ReflectionException
- Specified by:
invokein interfaceDynamicMBean- Throws:
MBeanExceptionReflectionException
-
getAttribute
public Object getAttribute(String attributeName) throws AttributeNotFoundException, MBeanException, ReflectionException
- Specified by:
getAttributein interfaceDynamicMBean- Throws:
AttributeNotFoundExceptionMBeanExceptionReflectionException
-
setAttribute
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
- Specified by:
setAttributein interfaceDynamicMBean- Throws:
AttributeNotFoundExceptionInvalidAttributeValueExceptionMBeanExceptionReflectionException
-
postRegister
public void postRegister(Boolean registrationDone)
- Specified by:
postRegisterin interfaceMBeanRegistration- Overrides:
postRegisterin classAbstractDynamicMBean
-
-