net.sf.doolin.gui.bus
Class BusMonitoringLog

java.lang.Object
  extended by net.sf.doolin.bus.bean.Bean
      extended by net.sf.doolin.gui.bus.BusMonitoringLog
All Implemented Interfaces:
Serializable, IBean, BusLog

public class BusMonitoringLog
extends Bean
implements BusLog

See Also:
Serialized Form

Field Summary
static String LOGGING_LIMIT
           
 
Constructor Summary
BusMonitoringLog(BusLog defaultLog)
           
 
Method Summary
 void clear()
           
 ca.odell.glazedlists.EventList<BusMonitoringLogEntry> getEntries()
           
 int getLoggingLimit()
           
<M> void
messageAccepted(M message, Subscriber<M> subscriber)
          This method is called when a message is about to be handled by a subscriber.
 void messageNoSubscription(Object message)
          This method is called when no subscription was found to handle the message
 void messageReceived(Object message)
          This method is called when a message is received by the bus.
<M> void
messageWithError(M message, Subscriber<M> subscriber, Exception ex)
          This method is called when the processing of a message by a subscriber has resulted in an error.
 void registrationOk(Subscriber<?> subscriber)
          This method is called when a subscriber is successfully registered.
 void setLoggingLimit(int loggingLimit)
           
 void unregistration(Subscriber<?> subscriber)
          This method is called when a subscriber is unregistered.
 
Methods inherited from class net.sf.doolin.bus.bean.Bean
getBeanNotificationSupport, getParentBean, notify, setParentBean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGING_LIMIT

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

BusMonitoringLog

public BusMonitoringLog(BusLog defaultLog)
Method Detail

clear

public void clear()

getEntries

public ca.odell.glazedlists.EventList<BusMonitoringLogEntry> getEntries()

getLoggingLimit

public int getLoggingLimit()

messageAccepted

public <M> void messageAccepted(M message,
                                Subscriber<M> subscriber)
Description copied from interface: BusLog
This method is called when a message is about to be handled by a subscriber.

Specified by:
messageAccepted in interface BusLog
Type Parameters:
M - Type of the message
Parameters:
message - Received message
subscriber - Subscriber about to handle the message

messageNoSubscription

public void messageNoSubscription(Object message)
Description copied from interface: BusLog
This method is called when no subscription was found to handle the message

Specified by:
messageNoSubscription in interface BusLog
Parameters:
message - Received message

messageReceived

public void messageReceived(Object message)
Description copied from interface: BusLog
This method is called when a message is received by the bus.

Specified by:
messageReceived in interface BusLog
Parameters:
message - Received message

messageWithError

public <M> void messageWithError(M message,
                                 Subscriber<M> subscriber,
                                 Exception ex)
Description copied from interface: BusLog
This method is called when the processing of a message by a subscriber has resulted in an error.

Specified by:
messageWithError in interface BusLog
Type Parameters:
M - Type of the message
Parameters:
message - Received message
subscriber - Subscriber which handled the message
ex - Resulting error

registrationOk

public void registrationOk(Subscriber<?> subscriber)
Description copied from interface: BusLog
This method is called when a subscriber is successfully registered.

Specified by:
registrationOk in interface BusLog
Parameters:
subscriber - Registered subscriber.

setLoggingLimit

public void setLoggingLimit(int loggingLimit)

unregistration

public void unregistration(Subscriber<?> subscriber)
Description copied from interface: BusLog
This method is called when a subscriber is unregistered.

Specified by:
unregistration in interface BusLog
Parameters:
subscriber - Unregistered subscriber.


Copyright © 2011. All Rights Reserved.