util.rmi
Class CallbackServerImpl
java.lang.Object
util.rmi.CallbackServerImpl
- All Implemented Interfaces:
- Remote, CallbackServer
public class CallbackServerImpl
- extends Object
- implements CallbackServer
Implementation of a callback client.
|
Method Summary |
private static VectorG |
createRandom(int dim)
Creates a randomized VectorG |
VectorG |
randomize(int dim)
The client calls this method, and the server returns a random number. |
long |
register(CallbackClient client)
The client is a callback client and registers here at the server. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SLEEP
private static final double SLEEP
- See Also:
- Constant Field Values
not
private CallbackClient not
sleep
private long sleep
CallbackServerImpl
public CallbackServerImpl()
randomize
public VectorG randomize(int dim)
throws RemoteException
- The client calls this method, and the server returns a random number.
- Specified by:
randomize in interface CallbackServer
- Throws:
RemoteException
register
public long register(CallbackClient client)
throws RemoteException
- The client is a callback client and registers here at the server.
The server pauses for a certain time and than calls the clients
CallbackClient.callback(vec_math.VectorG) method.
- Specified by:
register in interface CallbackServer
- Throws:
RemoteException
createRandom
private static VectorG createRandom(int dim)
- Creates a randomized VectorG