org.apache.uima.ducc.cli

Class DuccServiceCancel

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


    public class DuccServiceCancel
    extends CliBase
    Cancel a DUCC service instance.
    • Field Detail

      • requestProperties

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

        long canceledPid
      • responseMessage

        String responseMessage
      • opts

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

      • DuccServiceCancel

        public DuccServiceCancel(String[] args)
                          throws Exception
        Parameters:
        args - Array of string arguments as described in the Command Line Interface section of the DuccBook
        Throws:
        Exception - if the request is invalid
      • DuccServiceCancel

        public DuccServiceCancel(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 the request is invalid
      • DuccServiceCancel

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

      • getResponseMessage

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

        public boolean execute()
                        throws Exception
        Execute collects the parameters for job 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 job cancellation.
        Throws:
        Exception - if the request is invalid
      • 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.