de.qfs.apps.qflog
Class LogServerImpl
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--de.qfs.lib.logrmi.LogServerImplBase
|
+--de.qfs.apps.qflog.LogServerImpl
- public class LogServerImpl
- extends de.qfs.lib.logrmi.LogServerImplBase
An implementation of the LogServer interface.
This particular server will bring up a window for every connected
client.
- Version:
- $Revision: 1.10 $
- Author:
- Gregor Schmid
- See Also:
- Serialized Form
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Constructor Summary |
LogServerImpl()
Construct a new LogServerImpl. |
Method Summary |
void |
disconnect(int id)
Disconnect the client from the server. |
int |
getId(java.lang.String clientName)
Get an Id for a new client. |
de.qfs.lib.logrmi.RemoteLogLevelListener |
getLogLevelListener(int id)
Get a LogLevelListener for a client. |
de.qfs.lib.logrmi.LogListener |
getLogListener(int id)
Get a LogListener for a client. |
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 |
LogServerImpl
public LogServerImpl()
throws java.rmi.RemoteException
- Construct a new LogServerImpl.
- Throws:
- java.rmi.RemoteException - If something RMI specific goes wrong.
getId
public 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.
- Overrides:
- getId in class de.qfs.lib.logrmi.LogServerImplBase
- Returns:
- A unique handle identifying the client to the server.
getLogListener
public de.qfs.lib.logrmi.LogListener getLogListener(int id)
throws java.rmi.RemoteException
- Get a LogListener for a client.
- Overrides:
- getLogListener in class de.qfs.lib.logrmi.LogServerImplBase
- Parameters:
id
- The client identifier obtained with getId
.- Returns:
- The LogListener
- Throws:
- java.rmi.RemoteException - If something RMI specific goes wrong.
getLogLevelListener
public de.qfs.lib.logrmi.RemoteLogLevelListener getLogLevelListener(int id)
throws java.rmi.RemoteException
- Get a LogLevelListener for a client.
- Overrides:
- getLogLevelListener in class de.qfs.lib.logrmi.LogServerImplBase
- Parameters:
id
- The client identifier obtained with getId
.- Returns:
- The LogLevelListener
- Throws:
- java.rmi.RemoteException - If something RMI specific goes wrong.
disconnect
public void disconnect(int id)
throws java.rmi.RemoteException
- Disconnect the client from the server.
- Overrides:
- disconnect in class de.qfs.lib.logrmi.LogServerImplBase
- Parameters:
id
- The client identifier obtained with getId
.- Throws:
- java.rmi.RemoteException - If something RMI specific goes wrong.