com.enioka.jqm.cli.CommandNewJi 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.client.api.JqmDbClientFactory;
@Parameters(commandNames = "New-Ji", commandDescription = "Create a new execution request.")
class CommandNewJi extends CommandBase
{
@Parameter(names = { "-a", "--application" }, description = "Name of job definition (application name) to use.", required = true)
private String applicationName;
@Override
public int doWork()
{
jqmlogger.info("Will enqueue application named " + applicationName + " without parameter overloads");
jqmlogger.info("Request ID is: " + JqmDbClientFactory.getClient().enqueue(applicationName, "CommandLineUser"));
return 0;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy