root / src / PeerInterface.java
History | View | Annotate | Download (402 Bytes)
1 | 3 | up20160792 | |
---|---|---|---|
2 | import java.rmi.Remote; |
||
3 | import java.rmi.RemoteException; |
||
4 | |||
5 | public interface PeerInterface extends Remote { |
||
6 | |||
7 | void backup(String path, int replications) throws RemoteException; |
||
8 | |||
9 | void restore(String path) throws RemoteException; |
||
10 | |||
11 | void state() throws RemoteException; |
||
12 | |||
13 | void reclaim(int memory) throws RemoteException; |
||
14 | |||
15 | void delete(String path) throws RemoteException; |
||
16 | |||
17 | } |