Mercurial > hg > Database > Alice
comparison src/main/java/alice/topology/node/TopologyNodeConfig.java @ 645:cb16036404ba
fix local topology test
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 31 Dec 2017 11:04:29 +0900 |
parents | ffaacab84d1a |
children | 3c060de44c2e |
comparison
equal
deleted
inserted
replaced
644:e0621f645e2e | 645:cb16036404ba |
---|---|
9 | 9 |
10 private String managerHostName; | 10 private String managerHostName; |
11 private int managerPort = 10000; | 11 private int managerPort = 10000; |
12 public String cookie; | 12 public String cookie; |
13 private ArrayList<Class> eventList = new ArrayList<Class>(); | 13 private ArrayList<Class> eventList = new ArrayList<Class>(); |
14 private String managerKey = "manager"; | |
15 private String localKey = "local"; | |
16 | |
17 public String getLocalKey() { | |
18 return localKey; | |
19 } | |
20 | |
21 public void setLocalKey(String local) { | |
22 this.localKey = local; | |
23 } | |
24 | |
25 public void setManagerKey(String manager) { | |
26 this.manager = manager; | |
27 } | |
28 | |
29 public String getManagerKey() { | |
30 return manager; | |
31 | |
32 } | |
33 | |
34 private String manager = "manager"; | |
14 | 35 |
15 public TopologyNodeConfig(String[] args) { | 36 public TopologyNodeConfig(String[] args) { |
16 super(args); | 37 super(args); |
17 for (int i = 0; i< args.length; i++) { | 38 for (int i = 0; i< args.length; i++) { |
18 if ("-host".equals(args[i])) { | 39 if ("-host".equals(args[i])) { |
19 setManagerHostName(args[++i]); | 40 setManagerHostName(args[++i]); |
41 } else if ("-managerKey".equals(args[i])) { | |
42 setManagerKey(args[++i]); | |
43 } else if ("-localKey".equals(args[i])) { | |
44 setLocalKey(args[++i]); | |
20 } else if ("-port".equals(args[i])) { | 45 } else if ("-port".equals(args[i])) { |
21 setManagerPort(Integer.parseInt(args[++i])); | 46 setManagerPort(Integer.parseInt(args[++i])); |
22 } else if ("-cookie".equals(args[i])) { | 47 } else if ("-cookie".equals(args[i])) { |
23 cookie = args[++i]; | 48 cookie = args[++i]; |
24 } | 49 } |