Mercurial > hg > Database > Alice
comparison src/main/java/alice/topology/node/TopologyNodeConfig.java @ 345:8f71c3e6f11d
Change directory structure Maven standard
author | sugi |
---|---|
date | Wed, 16 Apr 2014 18:26:07 +0900 |
parents | |
children | 5ceb1c4db167 50b5aeca0cee |
comparison
equal
deleted
inserted
replaced
344:9f97ec18f8c5 | 345:8f71c3e6f11d |
---|---|
1 package alice.topology.node; | |
2 | |
3 import alice.daemon.Config; | |
4 | |
5 public class TopologyNodeConfig extends Config { | |
6 | |
7 String managerHostName; | |
8 int managerPort; | |
9 | |
10 public TopologyNodeConfig(String[] args) { | |
11 super(args); | |
12 for (int i = 0; i< args.length; i++) { | |
13 if ("-host".equals(args[i])) { | |
14 managerHostName = args[++i]; | |
15 } else if ("-port".equals(args[i])) { | |
16 managerPort = Integer.parseInt(args[++i]); | |
17 } | |
18 } | |
19 } | |
20 | |
21 } |