Class SyncTask

  • All Implemented Interfaces:
    Task

    public class SyncTask
    extends AbstractTask
    SyncTask
    Version:
    $Id: $
    Author:
    brozow
    • Constructor Detail

      • SyncTask

        public SyncTask​(TaskCoordinator coordinator,
                        ContainerTask<?> parent,
                        java.lang.Runnable action,
                        java.lang.String preferredExecutor)

        Constructor for SyncTask.

        Parameters:
        coordinator - a TaskCoordinator object.
        parent - a ContainerTask object.
        action - a Runnable object.
        preferredExecutor - a String object.
    • Method Detail

      • doSubmit

        protected void doSubmit()
        This method submits a task to be executed and is called when all dependencies are completed for that task This method should place a runnable on an executor or submit the task in some other way so that it will run as soon as possible. Tasks that have no processing to be done may override completeSubmit to notify the Task coordinator that the task is done.
        Overrides:
        doSubmit in class AbstractTask
      • getPreferredExecutor

        public java.lang.String getPreferredExecutor()

        getPreferredExecutor

        Returns:
        a String object.
      • setPreferredExecutor

        public void setPreferredExecutor​(java.lang.String preferredExecutor)

        setPreferredExecutor

        Parameters:
        preferredExecutor - a String object.
      • toString

        public java.lang.String toString()

        toString

        Overrides:
        toString in class AbstractTask
        Returns:
        a String object.