de.qfs.lib.logrmi
Class LogServerImplBase
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--de.qfs.lib.logrmi.LogServerImplBase
- All Implemented Interfaces:
- LogServer, java.rmi.Remote, java.io.Serializable
- public abstract class LogServerImplBase
- extends java.rmi.server.UnicastRemoteObject
- implements LogServer
If a class wants to implement the LogServer 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 |
LogServerImplBase
public LogServerImplBase()
throws java.rmi.RemoteException
- Create a new LogServerImplBase.
- Throws:
java.rmi.RemoteException - If something RMI specific goes wrong.
getId
public abstract int getId(java.lang.String clientName)
throws java.rmi.RemoteException
- Get an Id for a new client. Different clients may connect under the same
name, so this identification mechanism is required to differentiate
between them.
- Specified by:
getId in interface LogServer
- Returns:
- A unique handle identifying the client to the server.
getLogListener
public abstract LogListener getLogListener(int id)
throws java.rmi.RemoteException
- Get a LogListener for a client.
- Specified by:
getLogListener in interface LogServer
- Parameters:
id - The client identifier obtained with getId.- Returns:
- The LogListener
- Throws:
java.rmi.RemoteException - If something RMI specific goes wrong.
getLogLevelListener
public abstract RemoteLogLevelListener getLogLevelListener(int id)
throws java.rmi.RemoteException
- Get a LogLevelListener for a client.
- Specified by:
getLogLevelListener in interface LogServer
- Parameters:
id - The client identifier obtained with getId.- Returns:
- The LogLevelListener
- Throws:
java.rmi.RemoteException - If something RMI specific goes wrong.
disconnect
public abstract void disconnect(int id)
throws java.rmi.RemoteException
- Disconnect the client from the server.
- Specified by:
disconnect in interface LogServer
- Parameters:
id - The client identifier obtained with getId.- Throws:
java.rmi.RemoteException - If something RMI specific goes wrong.