view src/main/java/jp/ac/u_ryukyu/alicevnc/StartAliceVNC.java @ 56:9f1289c78b22

update maven change compressed DSM to only pixelData
author Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
date Mon, 16 Nov 2015 23:19:26 +0900
parents 57ca704f86a3
children 95beb204b60e d05de910a3f1 c94436e90e9e
line wrap: on
line source

package jp.ac.u_ryukyu.alicevnc;

import java.util.ArrayList;

import alice.daemon.AliceDaemon;
import alice.topology.node.TopologyNode;

/**
 * java -cp  AliceVNC.jar alice.topology.manager.TopologyManager
 * java -jar build/libs/AliceVNC.jar -host YuSugimoto-no-MacBook-Pro.local  -p 21000
 */
public class StartAliceVNC {
    public static void main(String args[]){
        AliceVNCConfig conf = new AliceVNCConfig(args);

        AliceDaemon aliceDaemon = new AliceDaemon(conf);

        AliceVNC cs = new AliceVNC(conf);
        if (conf.debugMode()) {
            cs.ods.put("_CLIST", new ArrayList<String>());
            cs.ods.put("host", "node0");
            cs.execute();
            return;
        }

        if (conf.getManagerHostName() ==null){
            conf.setManagerHostName("firefly.cr.ie.u-ryukyu.ac.jp");
            conf.setManagerPort(10000);
        }

        new TopologyNode(conf, cs);
    }
}