mx4j.log

Class LoggerBroadcaster

public class LoggerBroadcaster extends NotificationBroadcasterSupport implements MBeanRegistration, LoggerBroadcasterMBean

This broadcaster MBean allows to redirect MX4J internal logging to registered JMX listeners.

Simply register this MBean in the MBeanServer, register one or more listener (eventually with filters on the notification type), then call (directly or through MBeanServer) one of the start operations. From this moment, MX4J internal logging is redirected to this MBean, and from here to all registered listeners, basing on their filters.

Version: $Revision: 1.7 $

Nested Class Summary
static classLoggerBroadcaster.LoggerNotifier
Method Summary
protected LoggercreateLoggerPrototype()
MBeanNotificationInfo[]getNotificationInfo()
voidpostDeregister()
voidpostRegister(Boolean registrationDone)
voidpreDeregister()
ObjectNamepreRegister(MBeanServer server, ObjectName name)
voidremoveNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
voidsendNotification(Notification n)
voidstart()
voidstart(String category)
voidstop()
voidstop(String category)

Method Detail

createLoggerPrototype

protected Logger createLoggerPrototype()

getNotificationInfo

public MBeanNotificationInfo[] getNotificationInfo()

postDeregister

public void postDeregister()

postRegister

public void postRegister(Boolean registrationDone)

preDeregister

public void preDeregister()

preRegister

public ObjectName preRegister(MBeanServer server, ObjectName name)

removeNotificationListener

public void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)

sendNotification

public void sendNotification(Notification n)

start

public void start()

start

public void start(String category)

stop

public void stop()

stop

public void stop(String category)
Copyright © 2001-2005 The MX4J Contributors. All Rights Reserved.