org.apache.uima.ducc.cli
Class DuccServiceSubmit
java.lang.Object
org.apache.uima.ducc.cli.CliBase
org.apache.uima.ducc.cli.DuccServiceSubmit
- All Implemented Interfaces:
- org.apache.uima.ducc.cli.IUiOptions
public class DuccServiceSubmit
- extends CliBase
Submit a DUCC service. This is usually called by the DUCC Service Manager but is
made public to enable developer-driven management and testing of services without
formal service registration.
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 |
Fields inherited from interface org.apache.uima.ducc.cli.IUiOptions |
help_width |
Method Summary |
boolean |
execute()
Execute collects the service parameters, does basic error and correctness checking, and sends
the job properties to the DUCC orchestrator for execution. |
static void |
main(String[] args)
Main method, as used by the executable jar or direct java invocation. |
DuccServiceSubmit
public DuccServiceSubmit(String[] args)
throws Exception
- Parameters:
args
- Array of string arguments as described in the
DUCC CLI reference.
- Throws:
Exception
DuccServiceSubmit
public DuccServiceSubmit(ArrayList<String> args)
throws Exception
- Parameters:
args
- List of string arguments as described in the
DUCC CLI reference.
- Throws:
Exception
DuccServiceSubmit
public DuccServiceSubmit(Properties props)
throws Exception
- Parameters:
props
- Properties file of arguments, as described in the
DUCC CLI reference.
- Throws:
Exception
execute
public boolean execute()
throws Exception
- Execute collects the service parameters, does basic error and correctness checking, and sends
the job properties to the DUCC orchestrator for execution.
- Specified by:
execute
in class CliBase
- Returns:
- True if the orchestrator accepts the service; false otherwise.
- Throws:
Exception
- The specific exception is a function of the implementor.
main
public static void main(String[] args)
- Main method, as used by the executable jar or direct java invocation.
- Parameters:
args
- arguments as described in the DUCC CLI reference.
Copyright © 2012–2014 The Apache Software Foundation. All rights reserved.