Mercurial > hg > Database > Alice
view 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 |
line wrap: on
line source
package alice.test.codesegment.remote; import alice.daemon.Config; public class TestRemoteConfig extends Config { public String hostname; public int connectPort = 10000; public String key; public TestRemoteConfig(String[] args) { super(args); for (int i = 0; i< args.length; i++) { if ("-h".equals(args[i])) { hostname = args[++i]; } else if ("-cp".equals(args[i])) { connectPort = Integer.parseInt(args[++i]); } else if ("-key".equals(args[i])) { key = args[++i]; } } } }