org.jboss.monitor.services
Class JMXNotificationAppender
java.lang.Object
org.apache.log4j.AppenderSkeleton
org.jboss.monitor.services.JMXNotificationAppender
- All Implemented Interfaces:
- NotificationBroadcaster, NotificationEmitter, org.apache.log4j.Appender, org.apache.log4j.spi.OptionHandler, JMXNotificationAppenderMBean
public class JMXNotificationAppender
- extends org.apache.log4j.AppenderSkeleton
- implements JMXNotificationAppenderMBean, NotificationEmitter
A log4j Appender that emits the received log events as JMX Notifications
- Version:
- $Revision: 81038 $
- 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(NotificationListener listener,
NotificationFilter filter,
Object handback)
- Specified by:
addNotificationListener
in interface NotificationBroadcaster
removeNotificationListener
public void removeNotificationListener(NotificationListener listener)
throws ListenerNotFoundException
- Specified by:
removeNotificationListener
in interface NotificationBroadcaster
- Throws:
ListenerNotFoundException
removeNotificationListener
public void removeNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
throws ListenerNotFoundException
- Specified by:
removeNotificationListener
in interface NotificationEmitter
- Throws:
ListenerNotFoundException
getNotificationInfo
public MBeanNotificationInfo[] getNotificationInfo()
- Specified by:
getNotificationInfo
in interface 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 © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.