root / src / peer / RMIStub.java @ 1
History | View | Annotate | Download (1.02 KB)
1 |
package peer; |
---|---|
2 |
|
3 |
import java.rmi.Remote; |
4 |
import java.rmi.RemoteException; |
5 |
|
6 |
|
7 |
/**
|
8 |
*
|
9 |
*/
|
10 |
public interface RMIStub extends Remote { |
11 |
|
12 |
/**
|
13 |
* Interface method to call the Backup Protocol class
|
14 |
* @param file file
|
15 |
* @param replicationDeg replication degree
|
16 |
* @throws RemoteException exception
|
17 |
*/
|
18 |
void backupProtocol(String file, int replicationDeg) throws RemoteException; |
19 |
|
20 |
/**
|
21 |
* Interface method to call the Restore Protocol class
|
22 |
* @param file file
|
23 |
* @throws RemoteException exception
|
24 |
*/
|
25 |
void restoreProtocol(String file) throws RemoteException; |
26 |
|
27 |
/**
|
28 |
* Interface method to call the Delete Protocol class
|
29 |
* @param file file
|
30 |
* @throws RemoteException exception
|
31 |
*/
|
32 |
void deleteProtocol(String file) throws RemoteException; |
33 |
|
34 |
/**
|
35 |
* Interface method to call the Reclaim Protocol class
|
36 |
* @param reservedSpace reserved space
|
37 |
* @throws RemoteException exception
|
38 |
*/
|
39 |
void reclaimProtocol(int reservedSpace) throws RemoteException; |
40 |
} |