-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRebalanceFile.java
More file actions
40 lines (31 loc) · 972 Bytes
/
RebalanceFile.java
File metadata and controls
40 lines (31 loc) · 972 Bytes
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
import java.util.HashSet;
public class RebalanceFile {
private String fileName;
private int sourcePort;
private HashSet<Integer> destinationPorts = new HashSet<>();
public RebalanceFile(String fileName, int sourcePort) {
this.fileName = fileName;
this.sourcePort = sourcePort;
}
public String getFileName() {
return fileName;
}
public void setFileName(String fileName) {
this.fileName = fileName;
}
public int getSourcePort() {
return sourcePort;
}
public void setSourcePort(int sourcePort) {
this.sourcePort = sourcePort;
}
public HashSet<Integer> getDestinationPorts() {
return destinationPorts;
}
public void setDestinationPorts(HashSet<Integer> destinationPorts) {
this.destinationPorts = destinationPorts;
}
public void addDestinationPort(int destinationPort) {
this.destinationPorts.add(destinationPort);
}
}