org.apache.log4j.jmx
Class HierarchyDynamicMBean

java.lang.Object
  extended by org.apache.log4j.jmx.AbstractDynamicMBean
      extended by org.apache.log4j.jmx.HierarchyDynamicMBean
All Implemented Interfaces:
javax.management.DynamicMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, HierarchyEventListener

public class HierarchyDynamicMBean
extends AbstractDynamicMBean
implements HierarchyEventListener, javax.management.NotificationBroadcaster


Constructor Summary
HierarchyDynamicMBean()
           
 
Method Summary
 void addAppenderEvent(Category logger, Appender appender)
           
 javax.management.ObjectName addLoggerMBean(String name)
           
 void addNotificationListener(javax.management.NotificationListener listener, javax.management.NotificationFilter filter, Object handback)
           
 Object getAttribute(String attributeName)
           
protected  Logger getLogger()
           
 javax.management.MBeanInfo getMBeanInfo()
           
 javax.management.MBeanNotificationInfo[] getNotificationInfo()
           
 Object invoke(String operationName, Object[] params, String[] signature)
           
 void postRegister(Boolean registrationDone)
           
 void removeAppenderEvent(Category cat, Appender appender)
           
 void removeNotificationListener(javax.management.NotificationListener listener)
           
 void setAttribute(javax.management.Attribute attribute)
           
 
Methods inherited from class org.apache.log4j.jmx.AbstractDynamicMBean
getAppenderName, getAttributes, postDeregister, preDeregister, preRegister, registerMBean, 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 javax.management.ObjectName addLoggerMBean(String name)

addNotificationListener

public void addNotificationListener(javax.management.NotificationListener listener,
                                    javax.management.NotificationFilter filter,
                                    Object handback)
Specified by:
addNotificationListener in interface javax.management.NotificationBroadcaster

getLogger

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

getMBeanInfo

public javax.management.MBeanInfo getMBeanInfo()
Specified by:
getMBeanInfo in interface javax.management.DynamicMBean

getNotificationInfo

public javax.management.MBeanNotificationInfo[] getNotificationInfo()
Specified by:
getNotificationInfo in interface javax.management.NotificationBroadcaster

invoke

public Object invoke(String operationName,
                     Object[] params,
                     String[] signature)
              throws javax.management.MBeanException,
                     javax.management.ReflectionException
Specified by:
invoke in interface javax.management.DynamicMBean
Throws:
javax.management.MBeanException
javax.management.ReflectionException

getAttribute

public Object getAttribute(String attributeName)
                    throws javax.management.AttributeNotFoundException,
                           javax.management.MBeanException,
                           javax.management.ReflectionException
Specified by:
getAttribute in interface javax.management.DynamicMBean
Throws:
javax.management.AttributeNotFoundException
javax.management.MBeanException
javax.management.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(Boolean registrationDone)
Specified by:
postRegister in interface javax.management.MBeanRegistration
Overrides:
postRegister in class AbstractDynamicMBean

removeNotificationListener

public void removeNotificationListener(javax.management.NotificationListener listener)
                                throws javax.management.ListenerNotFoundException
Specified by:
removeNotificationListener in interface javax.management.NotificationBroadcaster
Throws:
javax.management.ListenerNotFoundException

setAttribute

public void setAttribute(javax.management.Attribute attribute)
                  throws javax.management.AttributeNotFoundException,
                         javax.management.InvalidAttributeValueException,
                         javax.management.MBeanException,
                         javax.management.ReflectionException
Specified by:
setAttribute in interface javax.management.DynamicMBean
Throws:
javax.management.AttributeNotFoundException
javax.management.InvalidAttributeValueException
javax.management.MBeanException
javax.management.ReflectionException


Copyright © 1999-2010 Apache Software Foundation. All Rights Reserved.