qflib 0.98.0

de.qfs.lib.logrmi
Interface RemoteLogLevelListener

All Superinterfaces:
java.util.EventListener, java.rmi.Remote
All Known Implementing Classes:
RemoteLogLevelListenerImplBase

public interface RemoteLogLevelListener
extends java.util.EventListener, java.rmi.Remote

Remote Listener interface for changes in the log levels of an application.

Version:
$Revision: 1.1 $
Author:
Gregor Schmid

Method Summary
 void classAdded(LogLevelEvent event)
          Notify the listener that a Logger for a formerly unknown class has requested its log level, adding the class to the log level tree.
 void disconnect()
          End the connection with the RemoteLogLevelListener.
 void levelChanged(LogLevelEvent event)
          Notify the listener that a log level has been changed.
 void levelRemoved(LogLevelEvent event)
          Notify the listener that a log level has been unset.
 void setLogLevelCallback(RemoteLogLevelCallback callback)
          Sets the RemoteLogLevelCallback for the RemoteLogLevelListener.
 

Method Detail

classAdded

public void classAdded(LogLevelEvent event)
                throws java.rmi.RemoteException
Notify the listener that a Logger for a formerly unknown class has requested its log level, adding the class to the log level tree.
Parameters:
event - The LogLevelEvent holding the details.
Throws:
java.rmi.RemoteException - If something RMI specific goes wrong.

levelChanged

public void levelChanged(LogLevelEvent event)
                  throws java.rmi.RemoteException
Notify the listener that a log level has been changed.
Parameters:
event - The LogLevelEvent holding the details.
Throws:
java.rmi.RemoteException - If something RMI specific goes wrong.

levelRemoved

public void levelRemoved(LogLevelEvent event)
                  throws java.rmi.RemoteException
Notify the listener that a log level has been unset.
Parameters:
event - The LogLevelEvent holding the details.
Throws:
java.rmi.RemoteException - If something RMI specific goes wrong.

setLogLevelCallback

public void setLogLevelCallback(RemoteLogLevelCallback callback)
                         throws java.rmi.RemoteException
Sets the RemoteLogLevelCallback for the RemoteLogLevelListener.
Parameters:
callback - The LogLevelCallback to use to change the log levels.
Throws:
java.rmi.RemoteException - If something RMI specific goes wrong.

disconnect

public void disconnect()
                throws java.rmi.RemoteException
End the connection with the RemoteLogLevelListener. This should also cause the RemoteLogLevelListener to disconnect from a LogLevelCallback set with setLogLevelCallback.
Throws:
java.rmi.RemoteException - If something RMI specific goes wrong.

qflib 0.98.0