com.enioka.jqm.cli.CommandStartNode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jqm-cli Show documentation
Show all versions of jqm-cli Show documentation
A library containing most JQM CLI commands as well as the CLI parser
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