public class DuccJobCancel extends CliBase
Modifier and Type | Field and Description |
---|---|
(package private) long |
canceledPid |
(package private) org.apache.uima.ducc.transport.event.cli.JobRequestProperties |
jobRequestProperties |
(package private) org.apache.uima.ducc.cli.IUiOptions.UiOption[] |
opts |
(package private) String |
responseMessage |
cli_props, commandLine, console_attach, console_listener, consoleCb, debug, dispatcher, ducc_home, errors, friendlyId, host_address, messages, monitor_listener, returnCode, suppress_console_log, userSpecifiedProperties, waiter, warnings
Constructor and Description |
---|
DuccJobCancel(List<String> args)
Cancel a job
|
DuccJobCancel(Properties props)
Cancel a job
|
DuccJobCancel(String[] args)
Cancel a job
|
Modifier and Type | Method and Description |
---|---|
boolean |
execute()
Execute collects the parameters for job cancelation and sends them to the DUCC Orchestrator
to effect the cancelation.
|
long |
getCanceledPid()
If a specific process, rather than the entire job, is canceled.
|
String |
getResponseMessage()
Return the DUCC Orchestrator message, if any, pertaining to the cancelation.
|
static void |
main(String[] args)
Main method, as used by the executable jar or direct java invocation.
|
check_heap_size, check_service_dependencies, consoleExits, extractReply, getCallback, getDuccId, getLogDirectory, getReturnCode, getWorkingDirectory, inhibitDefaults, init, init, init, initConsoleListener, isConsoleAttached, message, monitorExits, saveSpec, setDefaults, setOptions, setProperty, setUser, startConsoleListener, startMonitor, startMonitors, stopListeners, usage, waitForCompletion
org.apache.uima.ducc.transport.event.cli.JobRequestProperties jobRequestProperties
long canceledPid
String responseMessage
org.apache.uima.ducc.cli.IUiOptions.UiOption[] opts
public DuccJobCancel(String[] args) throws Exception
args
- Array of string arguments as described in the
Command Line Interface section of the DuccBookException
- if request failspublic DuccJobCancel(List<String> args) throws Exception
args
- List of string arguments as described in the
Command Line Interface section of the DuccBookException
- if request failspublic DuccJobCancel(Properties props) throws Exception
props
- Properties file of arguments as described in the
Command Line Interface section of the DuccBookException
- if request failspublic long getCanceledPid()
public String getResponseMessage()
public boolean execute() throws Exception
public static void main(String[] args)
args
- arguments as described in the DUCC CLI reference.Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.