Project

General

Profile

Statistics
| Revision:

root / src / RMI / Service.java @ 2

History | View | Annotate | Download (1.08 KB)

1
package RMI;
2

    
3
import java.io.IOException;
4
import java.rmi.Remote;
5
import java.rmi.RemoteException;
6

    
7
public interface Service extends Remote {
8
    /**
9
     *
10
     * Backup the file
11
     *
12
     * @param filepath            path of the file
13
     * @param replicationDegree replication degree desired
14
     * @throws RemoteException*/
15
    void backup(String filepath, int replicationDegree) throws IOException;
16

    
17

    
18
    /**
19
     *
20
     *  Restore a file
21
     *
22
     * @param filepath  Path of the file
23
     * @throws RemoteException
24
     *
25
     */
26
    void restore(String filepath) throws RemoteException;
27

    
28

    
29
    /**
30
     *
31
     * Delete a file
32
     *
33
     * @param filepath Path of the file
34
     * @throws RemoteException
35
     */
36
    void delete(String filepath) throws RemoteException;
37

    
38

    
39
    /**
40
     *
41
     * Specify the space used to store chunks
42
     *
43
     * @param space
44
     * @throws RemoteException
45
     */
46
    void manage(int space) throws RemoteException;
47

    
48
    /**
49
     *
50
     * Recover the state of the system
51
     *
52
     * @throws RemoteException
53
     */
54
    void state() throws RemoteException;
55
}