Novell exteNd
Director 5.2 API

com.sssw.fw.event.api
Interface EbiLogStateChangeListener

All Superinterfaces:
EbiEventListener, EbiStateChangeListener, EventListener

public interface EbiLogStateChangeListener
extends EbiStateChangeListener

Listens on state change events and notifies interested parties of events by writing event information into the specified log. For example:

 EbiLogStateChangeListener listener = com.sssw.fw.event.factory.EboFactory.getLogStateChangeListener();
 listener.setLogLevel(com.sssw.fw.api.EbiLog.INFO_LEVEL);
 listener.setPreamble("The following event has occurred:");
 producer.addStateChangeListener(listener);
 


Method Summary
 int getLogLevel()
          Gets the log level at which the event information should be written to the log.
 String getPreamble()
          Gets any preamble message to print before the verbose description of the event.
 void setLogLevel(int level)
          Sets the log level at which the event information should be written to the log.
 void setPreamble(String preamble)
          Sets any preamble message to print before the verbose description of the event.
 
Methods implemented from interface com.sssw.fw.event.api.EbiStateChangeListener
stateChanged
 
Methods implemented from interface com.sssw.fw.event.api.EbiEventListener
getListenerDescription, getLog, setListenerDescription, setLog
 

Method Detail

setPreamble

public void setPreamble(String preamble)
Sets any preamble message to print before the verbose description of the event.
Parameters:
preamble - any preamble message

getPreamble

public String getPreamble()
Gets any preamble message to print before the verbose description of the event.
Returns:
preamble any preamble message

setLogLevel

public void setLogLevel(int level)
Sets the log level at which the event information should be written to the log.
Parameters:
level - the log level at which the event information should be written to the log

getLogLevel

public int getLogLevel()
Gets the log level at which the event information should be written to the log.
Returns:
the log level at which the event information should be written to the log

Novell exteNd
Director 5.2 API