Mercurial > hg > Database > Alice
view src/main/java/alice/topology/node/TopologyNodeConfig.java @ 427:6a5925219dc6 dispose
add argument "-cookie"
author | sugi |
---|---|
date | Tue, 22 Jul 2014 12:53:55 +0900 |
parents | aefbe41fcf12 |
children | 7be9054f7465 |
line wrap: on
line source
package alice.topology.node; import alice.daemon.Config; public class TopologyNodeConfig extends Config { private String managerHostName; private int managerPort; public String cookie; public TopologyNodeConfig(String[] args) { super(args); for (int i = 0; i< args.length; i++) { if ("-host".equals(args[i])) { setManagerHostName(args[++i]); } else if ("-port".equals(args[i])) { setManagerPort(Integer.parseInt(args[++i])); } else if ("-cookie".equals(args[i])) { cookie = args[++i]; } } } public String getManagerHostName() { return managerHostName; } public void setManagerHostName(String managerHostName) { this.managerHostName = managerHostName; } public int getManagerPort() { return managerPort; } public void setManagerPort(int managerPort) { this.managerPort = managerPort; } }