org.apache.uima.ducc.cli

Class DuccServiceSubmit

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


    public class DuccServiceSubmit
    extends CliBase
    Submit a DUCC service. This is usually called by the DUCC Service Manager but is made public to enable developer-driven management and testing of services without formal service registration.
    • Field Detail

      • requestProperties

        org.apache.uima.ducc.transport.event.cli.ServiceRequestProperties requestProperties
      • opts

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

      • DuccServiceSubmit

        public DuccServiceSubmit(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
      • DuccServiceSubmit

        public DuccServiceSubmit(ArrayList<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
      • DuccServiceSubmit

        public DuccServiceSubmit(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

      • execute

        public boolean execute()
                        throws Exception
        Execute collects the service 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 service; 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–2019 The Apache Software Foundation. All rights reserved.