qflib 0.98.0

de.qfs.lib.logrmi
Class LogClientImplBase

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--de.qfs.lib.logrmi.LogClientImplBase
All Implemented Interfaces:
LogClient, java.rmi.Remote, java.io.Serializable
Direct Known Subclasses:
RemoteLogFilter, RemoteLogWriter

public abstract class LogClientImplBase
extends java.rmi.server.UnicastRemoteObject
implements LogClient

If a class wants to implement the LogClient 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
 
Fields inherited from interface de.qfs.lib.logrmi.LogClient
REGISTRY_BASE_NAME
 
Constructor Summary
LogClientImplBase()
          Create a new LogClientImplBase.
 
Method Summary
abstract  void connect(LogServer server)
          Tell the LogClient that it should disengage from the registry and connect itself to a LogServer.
 
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
 

Constructor Detail

LogClientImplBase

public LogClientImplBase()
                  throws java.rmi.RemoteException
Create a new LogClientImplBase.
Throws:
java.rmi.RemoteException - If something RMI specific goes wrong.
Method Detail

connect

public abstract void connect(LogServer server)
                      throws java.rmi.RemoteException
Tell the LogClient that it should disengage from the registry and connect itself to a LogServer.
Specified by:
connect in interface LogClient
Parameters:
server - The LogServer to connect to.
Throws:
java.rmi.RemoteException - If something RMI specific goes wrong.

qflib 0.98.0