-
Notifications
You must be signed in to change notification settings - Fork 0
/
PeerInfo.java
53 lines (38 loc) · 964 Bytes
/
PeerInfo.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//This class is to store the parameter in the peerinfo.cfg
public class PeerInfo {
private int peerID;
private String hostName;
private int port;
private Boolean fileStatus;
public PeerInfo() {
}
public PeerInfo(int peerID, String hn, int pt, Boolean fs) {
hostName = hn;
port = pt;
fileStatus = fs;
}
public int getPeerID() {
return peerID;
}
public void setPeerID(int peerID) {
this.peerID = peerID;
}
public String getHostName() {
return hostName;
}
public void setHostName(String hostName) {
this.hostName = hostName;
}
public int getPort() {
return port;
}
public void setPort(int port) {
this.port = port;
}
public Boolean getFileStatus() {
return fileStatus;
}
public void setFileStatus(Boolean fileStatus) {
this.fileStatus = fileStatus;
}
}