org.apache.uima.ducc.cli
Class DuccManagedReservationSubmit
java.lang.Object
org.apache.uima.ducc.cli.CliBase
org.apache.uima.ducc.cli.DuccManagedReservationSubmit
- All Implemented Interfaces:
- org.apache.uima.ducc.cli.IUiOptions
public class DuccManagedReservationSubmit
- extends CliBase
Submit a DUCC Managed Reservation. A Managed Reservation is a single arbitray process running
in a non-preemptable share.
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 job 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. |
DuccManagedReservationSubmit
public DuccManagedReservationSubmit(String[] args)
throws Exception
- Parameters:
args
- List of string arguments as described in the
DUCC CLI reference.
- Throws:
Exception
DuccManagedReservationSubmit
public DuccManagedReservationSubmit(ArrayList<String> args)
throws Exception
- Parameters:
args
- Array of string arguments as described in the
DUCC CLI reference.
- Throws:
Exception
DuccManagedReservationSubmit
public DuccManagedReservationSubmit(Properties props)
throws Exception
- Parameters:
props
- Properties file of arguments, as described in the
DUCC CLI reference.
- Throws:
Exception
DuccManagedReservationSubmit
public DuccManagedReservationSubmit(String[] args,
IDuccCallback consoleCb)
throws Exception
- This form of the constructor allows the API user to capture
messages, rather than directing them to stdout.
- Parameters:
args
- Array of string arguments as described in the
DUCC CLI reference.consoleCb
- If provided, messages are directed to it instead of
stdout.
- Throws:
Exception
DuccManagedReservationSubmit
public DuccManagedReservationSubmit(ArrayList<String> args,
IDuccCallback consoleCb)
throws Exception
- This form of the constructor allows the API user to capture
messages, rather than directing them to stdout.
- Parameters:
args
- List of string arguments as described in the
DUCC CLI reference.consoleCb
- If provided, messages are directed to it instead of
stdout.
- Throws:
Exception
DuccManagedReservationSubmit
public DuccManagedReservationSubmit(Properties props,
IDuccCallback consoleCb)
throws Exception
- This form of the constructor allows the API user to capture
messages, rather than directing them to stdout.
- Parameters:
props
- Properties file contianing string arguments as described in the
DUCC CLI reference.consoleCb
- If provided, messages are directed to it instead of
stdout.
- Throws:
Exception
execute
public boolean execute()
throws Exception
- Execute collects the job 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 job; 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.