de.qfs.lib.logrmi
Class RemoteLogLevelListenerImplBase
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--de.qfs.lib.logrmi.RemoteLogLevelListenerImplBase
- All Implemented Interfaces:
- java.util.EventListener, java.rmi.Remote, RemoteLogLevelListener, java.io.Serializable
- public abstract class RemoteLogLevelListenerImplBase
- extends java.rmi.server.UnicastRemoteObject
- implements RemoteLogLevelListener
If a class wants to implement the RemoteLogLevelListener
interface it should do so by extending this
abstract class instead of UnicastRemoteObject
. That way it doesn't have to care about the RMI stubs,
since they are part of the de.qfs.lib.logrmi package. Otherwise it will
have to make the stubs available itself.
- Version:
- $Revision: 1.1 $
- Author:
- Gregor Schmid
- See Also:
- Serialized Form
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
RemoteLogLevelListenerImplBase
public RemoteLogLevelListenerImplBase()
throws java.rmi.RemoteException
- Create a new RemoteLogLevelListenerImplBase.
- Throws:
java.rmi.RemoteException
- If something RMI specific goes wrong.
classAdded
public abstract 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.
- Specified by:
classAdded
in interface RemoteLogLevelListener
- Parameters:
event
- The LogLevelEvent holding the details.- Throws:
java.rmi.RemoteException
- If something RMI specific goes wrong.
levelChanged
public abstract void levelChanged(LogLevelEvent event)
throws java.rmi.RemoteException
- Notify the listener that a log level has been changed.
- Specified by:
levelChanged
in interface RemoteLogLevelListener
- Parameters:
event
- The LogLevelEvent holding the details.- Throws:
java.rmi.RemoteException
- If something RMI specific goes wrong.
levelRemoved
public abstract void levelRemoved(LogLevelEvent event)
throws java.rmi.RemoteException
- Notify the listener that a log level has been unset.
- Specified by:
levelRemoved
in interface RemoteLogLevelListener
- Parameters:
event
- The LogLevelEvent holding the details.- Throws:
java.rmi.RemoteException
- If something RMI specific goes wrong.
setLogLevelCallback
public abstract void setLogLevelCallback(RemoteLogLevelCallback callback)
throws java.rmi.RemoteException
- Sets the RemoteLogLevelCallback for the RemoteLogLevelListener.
- Specified by:
setLogLevelCallback
in interface RemoteLogLevelListener
- Parameters:
callback
- The LogLevelCallback to use to change the
log levels.- Throws:
java.rmi.RemoteException
- If something RMI specific goes wrong.
disconnect
public abstract void disconnect()
throws java.rmi.RemoteException
- End the connection with the RemoteLogLevelListener.
- Specified by:
disconnect
in interface RemoteLogLevelListener
- Throws:
java.rmi.RemoteException
- If something RMI specific goes wrong.