Mercurial > hg > Database > Alice
comparison src/main/java/alice/test/codesegment/remote/TestRemoteConfig.java @ 419:aefbe41fcf12 dispose
change tab to space
author | sugi |
---|---|
date | Tue, 15 Jul 2014 16:00:22 +0900 |
parents | 8f71c3e6f11d |
children | 1a860019b2fe 4835788cbb7e |
comparison
equal
deleted
inserted
replaced
418:a269a019f5f8 | 419:aefbe41fcf12 |
---|---|
2 | 2 |
3 import alice.daemon.Config; | 3 import alice.daemon.Config; |
4 | 4 |
5 public class TestRemoteConfig extends Config { | 5 public class TestRemoteConfig extends Config { |
6 | 6 |
7 public String hostname; | 7 public String hostname; |
8 public int connectPort = 10000; | 8 public int connectPort = 10000; |
9 public String key; | 9 public String key; |
10 | 10 |
11 public TestRemoteConfig(String[] args) { | 11 public TestRemoteConfig(String[] args) { |
12 super(args); | 12 super(args); |
13 for (int i = 0; i< args.length; i++) { | 13 for (int i = 0; i< args.length; i++) { |
14 if ("-h".equals(args[i])) { | 14 if ("-h".equals(args[i])) { |
15 hostname = args[++i]; | 15 hostname = args[++i]; |
16 } else if ("-cp".equals(args[i])) { | 16 } else if ("-cp".equals(args[i])) { |
17 connectPort = Integer.parseInt(args[++i]); | 17 connectPort = Integer.parseInt(args[++i]); |
18 } else if ("-key".equals(args[i])) { | 18 } else if ("-key".equals(args[i])) { |
19 key = args[++i]; | 19 key = args[++i]; |
20 } | 20 } |
21 } | 21 } |
22 } | 22 } |
23 | 23 |
24 } | 24 } |