root / src / messages / BackupCompleteMessage.java
History | View | Annotate | Download (779 Bytes)
1 |
package messages; |
---|---|
2 |
|
3 |
import java.math.BigInteger; |
4 |
|
5 |
public class BackupCompleteMessage extends Message { |
6 |
private int repDegree; |
7 |
private BigInteger hashFile; |
8 |
private String ipAddress; |
9 |
private int port; |
10 |
|
11 |
public BackupCompleteMessage(BigInteger hashFile, int repDegree,String ipAddress,int port) { |
12 |
this.hashFile = hashFile;
|
13 |
this.repDegree = repDegree;
|
14 |
this.ipAddress = ipAddress;
|
15 |
this.port = port;
|
16 |
} |
17 |
|
18 |
@Override
|
19 |
public String toString() { |
20 |
return "BACKUP-COMPLETE" + this.hashFile + " " + this.repDegree; |
21 |
} |
22 |
|
23 |
public void handleMessage() { |
24 |
} |
25 |
|
26 |
@Override
|
27 |
public String getIpAddress() { |
28 |
return this.ipAddress; |
29 |
} |
30 |
|
31 |
@Override
|
32 |
public int getPort() { |
33 |
return this.port; |
34 |
} |
35 |
} |