org.apache.uima.ducc.cli

Class DuccReservationCancel

  • All Implemented Interfaces:
    org.apache.uima.ducc.cli.IUiOptions


    public class DuccReservationCancel
    extends CliBase
    Cancel a DUCC reservation
    • Field Detail

      • requestProperties

        org.apache.uima.ducc.transport.event.cli.ReservationRequestProperties requestProperties
      • canceledPid

        long canceledPid
      • responseMessage

        String responseMessage
      • opts

        org.apache.uima.ducc.cli.IUiOptions.UiOption[] opts
    • Constructor Detail

      • DuccReservationCancel

        public DuccReservationCancel(String[] args)
                              throws Exception
        Parameters:
        args - Array of string arguments as described in the
        Throws:
        Exception - if request fails
      • DuccReservationCancel

        public DuccReservationCancel(List<String> args)
                              throws Exception
        Parameters:
        args - List of string arguments as described in the Command Line Interface section of the DuccBook
        Throws:
        Exception - if request fails
      • DuccReservationCancel

        public DuccReservationCancel(Properties props)
                              throws Exception
        Parameters:
        props - Properties file of arguments, as described in the Command Line Interface section of the DuccBook
        Throws:
        Exception - if request fails
    • Method Detail

      • getResponseMessage

        public String getResponseMessage()
        Return the DUCC Orchestrator message, if any, pertaining to the cancellation.
        Returns:
        Return any message associated with the cancellation.
      • execute

        public boolean execute()
                        throws Exception
        Execute collects the parameters for reservation cancellation and sends them to the DUCC Orchestrator to effect the cancellation.
        Specified by:
        execute in class CliBase
        Returns:
        True if the orchestrator accepts the reservation cancellation.
        Throws:
        Exception - if request fails
      • 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–2019 The Apache Software Foundation. All rights reserved.