3 import java.io.Serializable;
4 import java.rmi.RemoteException;
6 public class ConnectedClient implements Serializable
8 private static final long serialVersionUID = 1L;
9 private ServicesClient stub ;
11 private Status state ;
14 private ComputingClient cl ;
16 ConnectedClient( ServicesClient _stub )
20 state = new Status() ;
21 state.setStatus( "connected" ) ;
23 ip = stub.getIPHost() ;
24 name = stub.getName() ;
25 } catch (RemoteException e) {
31 protected ServicesClient getStub() { return stub ; }
33 protected void setStub( ServicesClient _stub ) { stub = _stub ; }
35 protected int getTimeout() { return timeout ; }
37 protected void incTimeout() { timeout++ ; }
39 protected void resetTimeout() { timeout = 0 ; }
41 protected String getStatus() { return state.getStatus() ; }
43 protected void setStatus( String _state ) { state.setStatus( _state ) ; }
45 protected String getIP() { return ip ; }
47 protected String getName() { return name ; } ;
49 protected void setComputingClient( ComputingClient _cl ) { cl = _cl ; }
51 protected ComputingClient getComputingClient() { return cl ; }