public class DuccJobSubmit extends CliBase
Modifier and Type | Field and Description |
---|---|
static org.apache.uima.ducc.cli.IUiOptions.UiOption[] |
opts |
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 |
---|
DuccJobSubmit(ArrayList<String> args)
Submit a job
|
DuccJobSubmit(ArrayList<String> args,
IDuccCallback consoleCb)
This form of the constructor allows the API user to capture
messages, rather than directing them to stdout.
|
DuccJobSubmit(Properties props)
Submit a job
|
DuccJobSubmit(Properties props,
IDuccCallback consoleCb)
This form of the constructor allows the API user to capture
messages, rather than directing them to stdout.
|
DuccJobSubmit(String[] args)
Submit a job
|
DuccJobSubmit(String[] args,
IDuccCallback consoleCb)
This form of the constructor allows the API user to capture
messages, rather than directing them to stdout.
|
Modifier and Type | Method and Description |
---|---|
protected void |
enrich_parameters_for_debug(Properties props) |
boolean |
execute()
Execute collects the job parameters, does basic error and correctness checking, and sends
the job properties to the DUCC orchestrator for execution.
|
long |
getDuccId()
This returns the unique numeric id for the requested work.
|
int |
getReturnCode()
Return appropriate rc when job has completed.
|
static void |
main(String[] args)
Main method, as used by the executable jar or direct java invocation.
|
protected void |
transform_scheduling_class(CliBase base,
Properties props) |
check_heap_size, check_service_dependencies, consoleExits, extractReply, getCallback, getLogDirectory, getWorkingDirectory, inhibitDefaults, init, init, init, initConsoleListener, isConsoleAttached, message, monitorExits, saveSpec, setDefaults, setOptions, setProperty, setUser, startConsoleListener, startMonitor, startMonitors, stopListeners, usage, waitForCompletion
public DuccJobSubmit(String[] args) throws Exception
args
- Array of string arguments as described in the
Command Line Interface section of the DuccBookException
- if request failspublic DuccJobSubmit(ArrayList<String> args) throws Exception
args
- List of string arguments as described in the
Command Line Interface section of the DuccBookException
- if request failspublic DuccJobSubmit(Properties props) throws Exception
props
- Properties file of arguments, as described in the
Command Line Interface section of the DuccBookException
- if request failspublic DuccJobSubmit(ArrayList<String> args, IDuccCallback consoleCb) throws Exception
args
- List of string arguments as described in the
DUCC CLI reference.consoleCb
- If provided, messages are directed to it instead of
stdout.Exception
- if request failspublic DuccJobSubmit(String[] args, IDuccCallback consoleCb) throws Exception
args
- Array of string arguments as described in the
DUCC CLI reference.consoleCb
- If provided, messages are directed to it instead of
stdout.Exception
- if request failspublic DuccJobSubmit(Properties props, IDuccCallback consoleCb) throws Exception
props
- Properties file containing string arguments as described in the
DUCC CLI reference.consoleCb
- If provided, messages are directed to it instead of
stdout.Exception
- if request failsprotected void transform_scheduling_class(CliBase base, Properties props) throws Exception
Exception
protected void enrich_parameters_for_debug(Properties props) throws Exception
Exception
public boolean execute() throws Exception
public int getReturnCode()
getReturnCode
in class CliBase
public long getDuccId()
CliBase
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.