Exemplo n.º 1
0
 @Override
 public void broadcast(Sendable request) throws RemoteException {
   Information info = request.getInfo();
   if (info != null) info.saveProperties();
   request.setClient(this);
   STUB.broadcast(request);
 }
Exemplo n.º 2
0
 @Override
 public void send(Sendable request, String receiver) throws RemoteException {
   Information info = request.getInfo();
   if (info != null) info.saveProperties();
   Member mem = (Member) request.getSender();
   mem.beforeSerialization();
   request.setClient(this);
   STUB.send(request, receiver);
 }
Exemplo n.º 3
0
 /**
  * disconnects of the server stub is set to null
  *
  * @throws RemoteException in case of remote access problem
  */
 @Override
 public void disconnect() throws RemoteException {
   STUB.disconnect(this);
   connectionState.setConnected(false);
 }
Exemplo n.º 4
0
 /**
  * registers this Network client on the specified server
  *
  * @throws RemoteException in case of remote access problem
  */
 @Override
 public void connect() throws RemoteException {
   STUB.connect(this);
   connectionState.setConnected(true);
 }