@Override public void broadcast(Sendable request) throws RemoteException { Information info = request.getInfo(); if (info != null) info.saveProperties(); request.setClient(this); STUB.broadcast(request); }
@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); }
/** * 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); }
/** * 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); }