Class AbstractAsyncExecutionManager

java.lang.Object
org.jppf.execute.async.AbstractAsyncExecutionManager
All Implemented Interfaces:
AsyncExecutionManager

public abstract class AbstractAsyncExecutionManager extends Object implements AsyncExecutionManager
Instances of this class manage the execution of JPPF tasks by a node.
Author:
Laurent Cohen, Martin JANDA, Paul Woodward
  • Field Details

    • timeoutHandler

      protected final JPPFScheduleHandler timeoutHandler
      Timer managing the tasks timeout.
    • taskNotificationDispatcher

      protected final TaskExecutionDispatcher taskNotificationDispatcher
      Dispatches tasks notifications to registered listeners.
    • configChanged

      protected final AtomicBoolean configChanged
      Determines whether the number of threads or their priority has changed.
    • reconnectionNotification

      protected AtomicReference<JPPFReconnectionNotification> reconnectionNotification
      Set if the node must reconnect to the driver.
    • threadManager

      protected final ThreadManager threadManager
      The thread manager that is used for execution.
    • jobEntries

      protected final Map<String,JobProcessingEntry> jobEntries
      Mapping of jobUuid + bunldeId to the corresponding JobProcessingEntry objects.
    • jobBundleIds

      protected final CollectionMap<String,Long> jobBundleIds
      Mapping of job uuids to the ids of the bundles currently processed for this job.
    • listeners

      protected final List<ExecutionManagerListener> listeners
      List of listeners to this execution manager.
    • pendingEntries

      protected final Map<String,JobPendingEntry> pendingEntries
      Map of the bundles being read from the server and not yet submitted to this execution manager.
    • pendingBundleIds

      protected final CollectionMap<String,Long> pendingBundleIds
      Mapping of job uuids to the ids of the pending bundles for each job.
  • Constructor Details

    • AbstractAsyncExecutionManager

      public AbstractAsyncExecutionManager(TypedProperties config, JPPFProperty<Integer> nbThreadsProperty)
      Initialize this execution manager with the specified node.
      Parameters:
      config - the configuration to get the thread manager properties from.
      nbThreadsProperty - the name of the property which configures the number of threads.
  • Method Details