org.apache.uima.ducc.cli
Class DuccServiceSubmit

java.lang.Object
  extended by org.apache.uima.ducc.cli.CliBase
      extended by org.apache.uima.ducc.cli.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.


Nested Class Summary
 
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
 
Field Summary
 
Fields inherited from interface org.apache.uima.ducc.cli.IUiOptions
help_width
 
Constructor Summary
DuccServiceSubmit(ArrayList<String> args)
           
DuccServiceSubmit(Properties props)
           
DuccServiceSubmit(String[] args)
           
 
Method Summary
 boolean execute()
          Execute collects the service parameters, does basic error and correctness checking, and sends the job properties to the DUCC orchestrator for execution.
static void main(String[] args)
          Main method, as used by the executable jar or direct java invocation.
 
Methods inherited from class org.apache.uima.ducc.cli.CliBase
getDuccId, getReturnCode, isConsoleAttached, makeOptions, setProperty, waitForCompletion
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DuccServiceSubmit

public DuccServiceSubmit(String[] args)
                  throws Exception
Parameters:
args - Array of string arguments as described in the DUCC CLI reference.
Throws:
Exception

DuccServiceSubmit

public DuccServiceSubmit(ArrayList<String> args)
                  throws Exception
Parameters:
args - List of string arguments as described in the DUCC CLI reference.
Throws:
Exception

DuccServiceSubmit

public DuccServiceSubmit(Properties props)
                  throws Exception
Parameters:
props - Properties file of arguments, as described in the DUCC CLI reference.
Throws:
Exception
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–2014 The Apache Software Foundation. All rights reserved.