org.apache.uima.ducc.cli
Class DuccReservationCancel
java.lang.Object
org.apache.uima.ducc.cli.CliBase
org.apache.uima.ducc.cli.DuccReservationCancel
- All Implemented Interfaces:
- org.apache.uima.ducc.cli.IUiOptions
public class DuccReservationCancel
- extends CliBase
Cancel a DUCC reservation
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 parameters for reservation cancelation and sends them to the DUCC Orchestrator
to effect the cancelation. |
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. |
DuccReservationCancel
public DuccReservationCancel(String[] args)
throws Exception
- Parameters:
args
- Array of string arguments as described in the
DUCC CLI reference.
- Throws:
Exception
DuccReservationCancel
public DuccReservationCancel(List<String> args)
throws Exception
- Parameters:
args
- List of string arguments as described in the
DUCC CLI reference.
- Throws:
Exception
DuccReservationCancel
public DuccReservationCancel(Properties props)
throws Exception
- Parameters:
props
- Properties file of arguments, as described in the
DUCC CLI reference.
- Throws:
Exception
getResponseMessage
public String getResponseMessage()
- Return the DUCC Orchestrator message, if any, pertaining to the cancelation.
- Returns:
- Return any message associated with the cancelation.
execute
public boolean execute()
throws Exception
- Execute collects the parameters for reservation cancelation and sends them to the DUCC Orchestrator
to effect the cancelation.
- Specified by:
execute
in class CliBase
- Returns:
- True if the orchestrator accepts the reservation cancelation.
- 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.