|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.uima.ducc.cli.CliBase
org.apache.uima.ducc.cli.DuccJobSubmit
public class DuccJobSubmit
Submit a DUCC job
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.uima.ducc.cli.IUiOptions |
---|
org.apache.uima.ducc.cli.IUiOptions.ClasspathOrderParms, org.apache.uima.ducc.cli.IUiOptions.UiOption |
Field Summary | |
---|---|
static org.apache.uima.ducc.cli.IUiOptions.UiOption[] |
opts
|
Fields inherited from interface org.apache.uima.ducc.cli.IUiOptions |
---|
help_width |
Constructor Summary | |
---|---|
DuccJobSubmit(ArrayList<String> args)
|
|
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)
|
|
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)
|
|
DuccJobSubmit(String[] args,
IDuccCallback consoleCb)
This form of the constructor allows the API user to capture messages, rather than directing them to stdout. |
Method Summary | |
---|---|
boolean |
execute()
Execute collects the job parameters, does basic error and correctness checking, and sends the job properties to the DUCC orchestrator for execution. |
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. |
Methods inherited from class org.apache.uima.ducc.cli.CliBase |
---|
getDuccId, isConsoleAttached, makeOptions, setProperty, waitForCompletion |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static org.apache.uima.ducc.cli.IUiOptions.UiOption[] opts
Constructor Detail |
---|
public DuccJobSubmit(String[] args) throws Exception
args
- Array of string arguments as described in the
DUCC CLI reference.
Exception
public DuccJobSubmit(ArrayList<String> args) throws Exception
args
- List of string arguments as described in the
DUCC CLI reference.
Exception
public DuccJobSubmit(Properties props) throws Exception
props
- Properties file of arguments, as described in the
DUCC CLI reference.
Exception
public 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
public 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
public DuccJobSubmit(Properties props, IDuccCallback consoleCb) throws Exception
props
- Properties file contianing string arguments as described in the
DUCC CLI reference.consoleCb
- If provided, messages are directed to it instead of
stdout.
Exception
Method Detail |
---|
public boolean execute() throws Exception
execute
in class CliBase
Exception
- The specific exception is a function of the implementor.public int getReturnCode()
getReturnCode
in class CliBase
public static void main(String[] args)
args
- arguments as described in the DUCC CLI reference.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |