public class HierarchyDynamicMBean extends AbstractDynamicMBean implements HierarchyEventListener, NotificationBroadcaster
Modifier and Type | Field and Description |
---|---|
(package private) static String |
ADD_APPENDER |
private String |
dClassName |
private MBeanConstructorInfo[] |
dConstructors |
private String |
dDescription |
private MBeanOperationInfo[] |
dOperations |
private LoggerRepository |
hierarchy |
private static Logger |
log |
private NotificationBroadcasterSupport |
nbs |
(package private) static String |
THRESHOLD |
private Vector |
vAttributes |
server
Constructor and Description |
---|
HierarchyDynamicMBean() |
Modifier and Type | Method and Description |
---|---|
void |
addAppenderEvent(Category logger,
Appender appender) |
(package private) ObjectName |
addLoggerMBean(Logger logger) |
ObjectName |
addLoggerMBean(String name) |
void |
addNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback) |
private void |
buildDynamicMBeanInfo() |
Object |
getAttribute(String attributeName) |
protected Logger |
getLogger() |
MBeanInfo |
getMBeanInfo() |
MBeanNotificationInfo[] |
getNotificationInfo() |
Object |
invoke(String operationName,
Object[] params,
String[] signature) |
void |
postRegister(Boolean registrationDone) |
void |
removeAppenderEvent(Category cat,
Appender appender) |
void |
removeNotificationListener(NotificationListener listener) |
void |
setAttribute(Attribute attribute) |
getAppenderName, getAttributes, postDeregister, preDeregister, preRegister, registerMBean, setAttributes
static final String ADD_APPENDER
static final String THRESHOLD
private MBeanConstructorInfo[] dConstructors
private MBeanOperationInfo[] dOperations
private Vector vAttributes
private String dClassName
private String dDescription
private NotificationBroadcasterSupport nbs
private LoggerRepository hierarchy
public HierarchyDynamicMBean()
private void buildDynamicMBeanInfo()
public ObjectName addLoggerMBean(String name)
ObjectName addLoggerMBean(Logger logger)
public void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
addNotificationListener
in interface NotificationBroadcaster
protected Logger getLogger()
getLogger
in class AbstractDynamicMBean
public MBeanInfo getMBeanInfo()
getMBeanInfo
in interface DynamicMBean
public MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo
in interface NotificationBroadcaster
public Object invoke(String operationName, Object[] params, String[] signature) throws MBeanException, ReflectionException
invoke
in interface DynamicMBean
MBeanException
ReflectionException
public Object getAttribute(String attributeName) throws AttributeNotFoundException, MBeanException, ReflectionException
getAttribute
in interface DynamicMBean
AttributeNotFoundException
MBeanException
ReflectionException
public void addAppenderEvent(Category logger, Appender appender)
addAppenderEvent
in interface HierarchyEventListener
public void removeAppenderEvent(Category cat, Appender appender)
removeAppenderEvent
in interface HierarchyEventListener
public void postRegister(Boolean registrationDone)
postRegister
in interface MBeanRegistration
postRegister
in class AbstractDynamicMBean
public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException
removeNotificationListener
in interface NotificationBroadcaster
ListenerNotFoundException
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
setAttribute
in interface DynamicMBean
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses