All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.enioka.jqm.cli.CommandStartNode Maven / Gradle / Ivy

The newest version!
package com.enioka.jqm.cli;

import com.beust.jcommander.Parameter;
import com.beust.jcommander.Parameters;
import com.enioka.jqm.cli.api.CommandBase;
import com.enioka.jqm.clusternode.ClusterNode;

@Parameters(commandNames = "Start-Node", commandDescription = "Start an existing node identified by name, waiting for CTRL-C to end.")
class CommandStartNode extends CommandBase
{
    @Parameter(names = { "-n", "--node-name" }, description = "Name of the node to start.", required = true)
    private String nodeName;

    static ClusterNode engineNode;

    @Override
    public int doWork()
    {
        engineNode = new ClusterNode();
        return engineNode.startAndWaitEngine(nodeName);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy