view src/main/java/alice/test/codesegment/remote/TestRemoteConfig.java @ 655:1c93e82e05c6 default tip

fix timestamp
author suruga
date Sat, 17 Feb 2018 00:33:00 +0900
parents 4835788cbb7e
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];
            }
        }
    }

}