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 boolean getFail()
41 protected void setFail( boolean _b )
49 protected ServicesClient getStub() { return stub ; }
51 protected void setStub( ServicesClient _stub ) { stub = _stub ; }
53 protected int getTimeout() { return timeout ; }
55 protected void incTimeout() { timeout++ ; }
57 protected void resetTimeout() { timeout = 0 ; }
59 protected String getStatus() { return state.getStatus() ; }
61 protected void setStatus( String _state ) { state.setStatus( _state ) ; }
63 protected String getIP() { return ip ; }
65 protected String getName() { return name ; } ;
67 protected void setComputingClient( ComputingClient _cl ) { cl = _cl ; }
69 protected ComputingClient getComputingClient() { return cl ; }