org.jboss.monitor.services
Class JMXNotificationAppender

java.lang.Object
  extended by org.apache.log4j.AppenderSkeleton
      extended by 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

Field Summary
static String DEFAULT_TYPE
           
 
Fields inherited from class org.apache.log4j.AppenderSkeleton
closed, errorHandler, headFilter, layout, name, tailFilter, threshold
 
Fields inherited from interface org.jboss.monitor.services.JMXNotificationAppenderMBean
OBJECT_NAME
 
Constructor Summary
JMXNotificationAppender()
          CTOR
 
Method Summary
 void addNotificationListener(javax.management.NotificationListener listener, javax.management.NotificationFilter filter, Object handback)
           
protected  void append(org.apache.log4j.spi.LoggingEvent event)
           
 void close()
           
 javax.management.MBeanNotificationInfo[] getNotificationInfo()
           
 String getNotificationType()
           
 String getObjectName()
           
 void removeNotificationListener(javax.management.NotificationListener listener)
           
 void removeNotificationListener(javax.management.NotificationListener listener, javax.management.NotificationFilter filter, Object handback)
           
 boolean requiresLayout()
           
 void setNotificationType(String notificationType)
           
 void setObjectName(String objectNameString)
           
 
Methods inherited from class org.apache.log4j.AppenderSkeleton
activateOptions, addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setErrorHandler, setLayout, setName, setThreshold
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_TYPE

public static final String DEFAULT_TYPE
See Also:
Constant Field Values
Constructor Detail

JMXNotificationAppender

public JMXNotificationAppender()
CTOR

Method Detail

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.