view src/main/java/alice/test/codesegment/remote/TestRemoteConfig.java @ 625:4835788cbb7e dispose

fix TestRemote default arguments
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 22 Aug 2017 15:58:18 +0900
parents aefbe41fcf12
children
line wrap: on
line source

package alice.test.codesegment.remote;

import alice.daemon.Config;

public class TestRemoteConfig extends Config {

    public String hostname = "127.0.0.1";
    public int connectPort = 10000;
    public String key = "remote";

    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];
            }
        }
    }

}