Class BaseExecutor

    • Constructor Detail

      • BaseExecutor

        public BaseExecutor()
    • Method Detail

      • getAllJobStatuses

        public java.util.List<IJobStatus> getAllJobStatuses()
        Description copied from interface: IExecutor
        Returns a list of all active, queued or recently finished job statuses
        Specified by:
        getAllJobStatuses in interface IExecutor
        Returns:
        list of statuses
      • getJob

        public IJob getJob​(IJobStatus jobStatus)
        Description copied from interface: IExecutor
        Gets the job from a job status
        Specified by:
        getJob in interface IExecutor
        Parameters:
        jobStatus - job status instance
        Returns:
        corresponding job
      • getJobStatus

        public IJobStatus getJobStatus​(IJob job)
        Description copied from interface: IExecutor
        Gets the job status for a specific job
        Specified by:
        getJobStatus in interface IExecutor
        Parameters:
        job - job to get status of
        Returns:
        status
      • getWaitingJobs

        public java.util.List<IJob> getWaitingJobs()
        Description copied from interface: IExecutor
        Returns a list of queued jobs
        Specified by:
        getWaitingJobs in interface IExecutor
        Returns:
        list of jobs
      • invokeWork

        public void invokeWork​(java.util.concurrent.ForkJoinTask topAction,
                               Priority priority)
        Description copied from interface: IPriorityWorkSchedulerWrapper
        Blocking execution of the work, returns when work is complete
        Specified by:
        invokeWork in interface IPriorityWorkSchedulerWrapper
        Parameters:
        topAction - top level recursive action to fork
        priority - work priority level
      • shutdown

        public void shutdown()
        Description copied from interface: IExecutor
        shutsdown the executor
        Specified by:
        shutdown in interface IExecutor
      • submitJob

        public boolean submitJob​(IJob job)
        Description copied from interface: IExecutor
        submits a job to this executor
        Specified by:
        submitJob in interface IExecutor
        Parameters:
        job - job to submit
        Returns:
        was successful?
      • dismissJob

        public boolean dismissJob​(IJobStatus jobStatus)
        Description copied from interface: IExecutor
        removes a finished job from the list of statuses
        Specified by:
        dismissJob in interface IExecutor
        Parameters:
        jobStatus - status of finished job to remove from list
        Returns:
        successful
      • dismissJob

        public boolean dismissJob​(IJob job)
        Description copied from interface: IExecutor
        removes a finished job from the list of statuses
        Specified by:
        dismissJob in interface IExecutor
        Parameters:
        job - job instance of finished job to remove from list
        Returns:
        successful
      • cancelJob

        public boolean cancelJob​(IJobStatus jobStatus)
        Description copied from interface: IExecutor
        Cancels the execution of a job
        Specified by:
        cancelJob in interface IExecutor
        Parameters:
        jobStatus - job status of job to cancel
        Returns:
        successful
      • cancelJob

        public boolean cancelJob​(IJob job)
        Description copied from interface: IExecutor
        Cancels the execution of a job
        Specified by:
        cancelJob in interface IExecutor
        Parameters:
        job - job instance to cancel
        Returns:
        successful