Mercurial > hg > Database > jungle-network
comparison src/alice/jungle/remote/RemoteConfig.java @ 42:4419ac56cbfd
implemented serverName filed
author | one |
---|---|
date | Thu, 11 Jul 2013 19:58:36 +0900 |
parents | 10359a815068 |
children | ab8c655ef457 |
comparison
equal
deleted
inserted
replaced
41:b8b9668da13c | 42:4419ac56cbfd |
---|---|
1 package alice.jungle.remote; | 1 package alice.jungle.remote; |
2 import alice.daemon.Config; | 2 import alice.topology.node.TopologyNodeConfig; |
3 | 3 |
4 | 4 |
5 public class RemoteConfig extends Config { | 5 public class RemoteConfig extends TopologyNodeConfig { |
6 | |
7 public String hostname; | |
8 public int connectPort = 10000; | |
9 public String key = "remote"; | |
10 | 6 |
11 public RemoteConfig(String[] args) { | 7 public RemoteConfig(String[] args) { |
12 super(args); | 8 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 } | 9 } |
23 | 10 |
24 } | 11 } |