org.apache.uima.ducc.cli

Class DuccManagedReservationSubmit

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


    public class DuccManagedReservationSubmit
    extends CliBase
    Submit a DUCC Managed Reservation. A Managed Reservation is a single arbitray process running in a non-preemptable share.
    • Constructor Detail

      • DuccManagedReservationSubmit

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

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

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

        public DuccManagedReservationSubmit(String[] args,
                                            IDuccCallback consoleCb)
                                     throws Exception
        This form of the constructor allows the API user to capture messages, rather than directing them to stdout.
        Parameters:
        args - Array of string arguments as described in the Command Line Interface section of the DuccBook
        consoleCb - If provided, messages are directed to it instead of stdout.
        Throws:
        Exception - if request fails
      • DuccManagedReservationSubmit

        public DuccManagedReservationSubmit(ArrayList<String> args,
                                            IDuccCallback consoleCb)
                                     throws Exception
        This form of the constructor allows the API user to capture messages, rather than directing them to stdout.
        Parameters:
        args - List of string arguments as described in the Command Line Interface section of the DuccBook
        consoleCb - If provided, messages are directed to it instead of stdout.
        Throws:
        Exception - if request fails
      • DuccManagedReservationSubmit

        public DuccManagedReservationSubmit(Properties props,
                                            IDuccCallback consoleCb)
                                     throws Exception
        This form of the constructor allows the API user to capture messages, rather than directing them to stdout.
        Parameters:
        props - Properties file contianing string arguments as described in the Command Line Interface section of the DuccBook
        consoleCb - If provided, messages are directed to it instead of stdout.
        Throws:
        Exception - if request fails
    • Method Detail

      • execute

        public boolean execute()
                        throws Exception
        Execute collects the job 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 job; false otherwise.
        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.