de.qfs.lib.logrmi
Class LogListenerImplBase
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--de.qfs.lib.logrmi.LogListenerImplBase
- All Implemented Interfaces:
- LogListener, java.rmi.Remote, java.io.Serializable
- public abstract class LogListenerImplBase
- extends java.rmi.server.UnicastRemoteObject
- implements LogListener
If a class wants to implement the LogListener 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 |
|
Method Summary |
abstract void |
disconnect()
End the connection with the LogListener. |
abstract void |
log(LogEntry entry)
Accept a log message. |
abstract void |
log(LogEntry[] entries)
Accept many log messages. |
| 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 |
LogListenerImplBase
public LogListenerImplBase()
throws java.rmi.RemoteException
- Create a new LogListenerImplBase.
- Throws:
java.rmi.RemoteException - If something RMI specific goes wrong.
log
public abstract void log(LogEntry entry)
throws java.rmi.RemoteException
- Accept a log message.
- Specified by:
log in interface LogListener
- Parameters:
entry - The LogEntry that holds the message details.- Throws:
java.rmi.RemoteException - If something RMI specific goes wrong.
log
public abstract void log(LogEntry[] entries)
throws java.rmi.RemoteException
- Accept many log messages.
- Specified by:
log in interface LogListener
- Parameters:
entries - A LogEntry array that holds the message details.- Throws:
java.rmi.RemoteException - If something RMI specific goes wrong.
disconnect
public abstract void disconnect()
throws java.rmi.RemoteException
- End the connection with the LogListener.
- Specified by:
disconnect in interface LogListener
- Throws:
java.rmi.RemoteException - If something RMI specific goes wrong.