Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Correction and modification of save mechanisms.
[hpcvm.git] / src / and / hpcvm / SaveNeighbor.java
1 package and.hpcvm ;
2
3 import java.io.Serializable;
4 import java.rmi.RemoteException;
5
6
7 public class SaveNeighbor implements Serializable
8 {
9         private static final long serialVersionUID = 1L;
10         private ServicesClient sc ;
11         private String ip ;
12         private String name ;
13         private String wd ;
14         
15         public SaveNeighbor( ServicesClient _sc ) throws RemoteException
16         {
17                 super() ;
18                 
19                 sc = _sc ;
20                 try {
21                         ip = sc.getIPHost() ;
22                         name = sc.getName() ;
23                         wd = sc.getWorkingDirectory() ;
24                 } catch( RemoteException e ) {
25                         System.err.println( "Unable to retrieve inforation one save neighbor!" ) ;
26                         e.printStackTrace() ;
27                 }
28         }
29                 
30         protected String getIPHost() { return ip ; }
31         
32         protected String getName() { return name ; }
33         
34         protected String getWorkingDirectory() { return wd ; }
35         
36         protected ServicesClient getStub() { return sc ; }
37                 
38 }