コード例 #1
0
ファイル: Network.java プロジェクト: BrunoMatry/cloudbook
 @Override
 public void broadcast(Sendable request) throws RemoteException {
   Information info = request.getInfo();
   if (info != null) info.saveProperties();
   request.setClient(this);
   STUB.broadcast(request);
 }
コード例 #2
0
ファイル: Network.java プロジェクト: BrunoMatry/cloudbook
 @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);
 }
コード例 #3
0
ファイル: Network.java プロジェクト: BrunoMatry/cloudbook
 /**
  * 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);
 }
コード例 #4
0
ファイル: Network.java プロジェクト: BrunoMatry/cloudbook
 /**
  * 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);
 }