Log4j 1.2.8

org.apache.log4j.jmx
Class HierarchyDynamicMBean

java.lang.Object
  extended byorg.apache.log4j.jmx.AbstractDynamicMBean
      extended byorg.apache.log4j.jmx.HierarchyDynamicMBean
All Implemented Interfaces:
HierarchyEventListener

public class HierarchyDynamicMBean
extends AbstractDynamicMBean
implements HierarchyEventListener


Constructor Summary
HierarchyDynamicMBean()
           
 
Method Summary
 void addAppenderEvent(Category logger, Appender appender)
           
 ObjectName addLoggerMBean(java.lang.String name)
           
 void addNotificationListener(NotificationListener listener, NotificationFilter filter, java.lang.Object handback)
           
 java.lang.Object getAttribute(java.lang.String attributeName)
           
protected  Logger getLogger()
           
 MBeanInfo getMBeanInfo()
           
 MBeanNotificationInfo[] getNotificationInfo()
           
 java.lang.Object invoke(java.lang.String operationName, java.lang.Object[] params, java.lang.String[] signature)
           
 void postRegister(java.lang.Boolean registrationDone)
           
 void removeAppenderEvent(Category cat, Appender appender)
           
 void removeNotificationListener(NotificationListener listener)
           
 void setAttribute(Attribute attribute)
           
 
Methods inherited from class org.apache.log4j.jmx.AbstractDynamicMBean
getAttributes, postDeregister, preDeregister, preRegister, setAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HierarchyDynamicMBean

public HierarchyDynamicMBean()
Method Detail

addLoggerMBean

public ObjectName addLoggerMBean(java.lang.String name)

addNotificationListener

public void addNotificationListener(NotificationListener listener,
                                    NotificationFilter filter,
                                    java.lang.Object handback)

getLogger

protected Logger getLogger()
Specified by:
getLogger in class AbstractDynamicMBean

getMBeanInfo

public MBeanInfo getMBeanInfo()

getNotificationInfo

public MBeanNotificationInfo[] getNotificationInfo()

invoke

public java.lang.Object invoke(java.lang.String operationName,
                               java.lang.Object[] params,
                               java.lang.String[] signature)
                        throws MBeanException,
                               ReflectionException
Throws:
MBeanException
ReflectionException

getAttribute

public java.lang.Object getAttribute(java.lang.String attributeName)
                              throws AttributeNotFoundException,
                                     MBeanException,
                                     ReflectionException
Throws:
AttributeNotFoundException
MBeanException
ReflectionException

addAppenderEvent

public void addAppenderEvent(Category logger,
                             Appender appender)
Specified by:
addAppenderEvent in interface HierarchyEventListener

removeAppenderEvent

public void removeAppenderEvent(Category cat,
                                Appender appender)
Specified by:
removeAppenderEvent in interface HierarchyEventListener

postRegister

public void postRegister(java.lang.Boolean registrationDone)
Overrides:
postRegister in class AbstractDynamicMBean

removeNotificationListener

public void removeNotificationListener(NotificationListener listener)
                                throws ListenerNotFoundException
Throws:
ListenerNotFoundException

setAttribute

public void setAttribute(Attribute attribute)
                  throws AttributeNotFoundException,
                         InvalidAttributeValueException,
                         MBeanException,
                         ReflectionException
Throws:
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException

Log4j 1.2.8

Copyright 2000-2002 Apache Software Foundation.