345
|
1 package alice.test.codesegment.remote;
|
|
2
|
|
3 import alice.daemon.Config;
|
|
4
|
|
5 public class TestRemoteConfig extends Config {
|
|
6
|
419
|
7 public String hostname;
|
|
8 public int connectPort = 10000;
|
|
9 public String key;
|
345
|
10
|
419
|
11 public TestRemoteConfig(String[] args) {
|
|
12 super(args);
|
|
13 for (int i = 0; i< args.length; i++) {
|
|
14 if ("-h".equals(args[i])) {
|
|
15 hostname = args[++i];
|
|
16 } else if ("-cp".equals(args[i])) {
|
|
17 connectPort = Integer.parseInt(args[++i]);
|
|
18 } else if ("-key".equals(args[i])) {
|
|
19 key = args[++i];
|
|
20 }
|
|
21 }
|
|
22 }
|
345
|
23
|
|
24 }
|