org.apache.uima.ducc.cli

Class DuccJobCancel

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


    public class DuccJobCancel
    extends CliBase
    Cancel a DUCC job
    • Field Detail

      • jobRequestProperties

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

        long canceledPid
      • responseMessage

        String responseMessage
      • opts

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

      • DuccJobCancel

        public DuccJobCancel(String[] args)
                      throws Exception
        Cancel a job
        Parameters:
        args - Array of string arguments as described in the Command Line Interface section of the DuccBook
        Throws:
        Exception - if request fails
      • DuccJobCancel

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

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

      • getCanceledPid

        public long getCanceledPid()
        If a specific process, rather than the entire job, is canceled. this returns the canceled DUCC id of the process, as confirmation.
        Returns:
        The DUCC numeric id of the canceled process.
      • 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 job 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 job 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–2019 The Apache Software Foundation. All rights reserved.