Class AbstractExecutableService

    • Constructor Detail

      • AbstractExecutableService

        public AbstractExecutableService()
    • Method Detail

      • listRecentExecutions

        public List<ExecTO> listRecentExecutions​(int max)
        Description copied from interface: ExecutableService
        Returns the list of recently completed executions, ordered by end date descendent.
        Specified by:
        listRecentExecutions in interface ExecutableService
        Parameters:
        max - the maximum number of executions to return
        Returns:
        list of recently completed executions, ordered by end date descendent
      • deleteExecution

        public void deleteExecution​(String executionKey)
        Description copied from interface: ExecutableService
        Deletes the executable execution matching the provided key.
        Specified by:
        deleteExecution in interface ExecutableService
        Parameters:
        executionKey - key of executable execution to be deleted
      • deleteExecutions

        public javax.ws.rs.core.Response deleteExecutions​(ExecQuery query)
        Description copied from interface: ExecutableService
        Deletes the executions matching the given query.
        Specified by:
        deleteExecutions in interface ExecutableService
        Parameters:
        query - query conditions
        Returns:
        batch results as Response entity
      • execute

        public ExecTO execute​(ExecSpecs execSpecs)
        Description copied from interface: ExecutableService
        Executes the executable matching the given specs.
        Specified by:
        execute in interface ExecutableService
        Parameters:
        execSpecs - conditions to exec
        Returns:
        execution report for the executable matching the given specs
      • getJob

        public JobTO getJob​(String key)
        Description copied from interface: ExecutableService
        Returns job (running or scheduled) for the executable matching the given key.
        Specified by:
        getJob in interface ExecutableService
        Parameters:
        key - executable key
        Returns:
        job (running or scheduled) for the given key
      • actionJob

        public void actionJob​(String key,
                              JobAction action)
        Description copied from interface: ExecutableService
        Executes an action on an existing executable's job.
        Specified by:
        actionJob in interface ExecutableService
        Parameters:
        key - executable key
        action - action to execute