org.jboss.monitor.services
Class JMXNotificationAppender
java.lang.Object
org.apache.log4j.AppenderSkeleton
org.jboss.monitor.services.JMXNotificationAppender
- All Implemented Interfaces:
- javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.apache.log4j.Appender, org.apache.log4j.spi.OptionHandler, JMXNotificationAppenderMBean
public class JMXNotificationAppender
- extends org.apache.log4j.AppenderSkeleton
- implements JMXNotificationAppenderMBean, javax.management.NotificationEmitter
A log4j Appender that emits the received log events as JMX Notifications
- Version:
- $Revision: 57210 $
- Author:
- Dimitris Andreadis
| Fields inherited from class org.apache.log4j.AppenderSkeleton |
closed, errorHandler, headFilter, layout, name, tailFilter, threshold |
| Methods inherited from class org.apache.log4j.AppenderSkeleton |
activateOptions, addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setErrorHandler, setLayout, setName, setThreshold |
DEFAULT_TYPE
public static final String DEFAULT_TYPE
- See Also:
- Constant Field Values
JMXNotificationAppender
public JMXNotificationAppender()
- CTOR
setObjectName
public void setObjectName(String objectNameString)
throws Exception
- Specified by:
setObjectName in interface JMXNotificationAppenderMBean
- Throws:
Exception
getObjectName
public String getObjectName()
- Specified by:
getObjectName in interface JMXNotificationAppenderMBean
setNotificationType
public void setNotificationType(String notificationType)
- Specified by:
setNotificationType in interface JMXNotificationAppenderMBean
getNotificationType
public String getNotificationType()
- Specified by:
getNotificationType in interface JMXNotificationAppenderMBean
addNotificationListener
public void addNotificationListener(javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
Object handback)
- Specified by:
addNotificationListener in interface javax.management.NotificationBroadcaster
removeNotificationListener
public void removeNotificationListener(javax.management.NotificationListener listener)
throws javax.management.ListenerNotFoundException
- Specified by:
removeNotificationListener in interface javax.management.NotificationBroadcaster
- Throws:
javax.management.ListenerNotFoundException
removeNotificationListener
public void removeNotificationListener(javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
Object handback)
throws javax.management.ListenerNotFoundException
- Specified by:
removeNotificationListener in interface javax.management.NotificationEmitter
- Throws:
javax.management.ListenerNotFoundException
getNotificationInfo
public javax.management.MBeanNotificationInfo[] getNotificationInfo()
- Specified by:
getNotificationInfo in interface javax.management.NotificationBroadcaster
close
public void close()
- Specified by:
close in interface org.apache.log4j.Appender
requiresLayout
public boolean requiresLayout()
- Specified by:
requiresLayout in interface org.apache.log4j.Appender
append
protected void append(org.apache.log4j.spi.LoggingEvent event)
- Specified by:
append in class org.apache.log4j.AppenderSkeleton
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.