-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCommonCfg.java
More file actions
21 lines (17 loc) · 814 Bytes
/
Copy pathCommonCfg.java
File metadata and controls
21 lines (17 loc) · 814 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
public class CommonCfg {
public static String fileName;
public static int numberOfPreferredNeighbors;
public static int unchokingInterval;
public static int optimisticUnchokingInterval;
public static int fileSize;
public static int pieceSize;
public static void setAll(String fileName, int numberOfPreferredNeighbors,int unchokingInterval,
int optimisticUnchokingInterval,int fileSize,int pieceSize){
CommonCfg.fileName=fileName;
CommonCfg.numberOfPreferredNeighbors=numberOfPreferredNeighbors;
CommonCfg.unchokingInterval=unchokingInterval;
CommonCfg.optimisticUnchokingInterval=optimisticUnchokingInterval;
CommonCfg.fileSize=fileSize;
CommonCfg.pieceSize=pieceSize;
}
}