Brooklyn

Package brooklyn.util.task

 

Interface Summary
BasicTask.TaskFinalizer
CanSetName
DeferredSupplier A class that supplies objects of a single type.
ExecutionListener
TaskInternal All tasks being passed to the ExecutionManager should implement this.
TaskPreprocessor The preprocessor is an internal mechanism to decorate Tasks.
TaskScheduler The scheduler is an internal mechanism to decorate Tasks.
 


Class Summary
AbstractExecutionContext
BasicExecutionContext A means of executing tasks against an ExecutionManager with a given bucket/set of tags pre-defined (so that it can look like an java.util.concurrent.Executor and also supply java.util.concurrent.ExecutorService#submit(java.util.concurrent.Callable)
BasicExecutionManager TODO javadoc
BasicTask The basic concrete implementation of a Task to be executed.
CompoundTask A Task that is comprised of other units of work: possibly a heterogeneous mix of Task, java.lang.Runnable, java.util.concurrent.Callable and groovy.lang.Closure instances.
DynamicSequentialTask Represents a task whose run() method can create other tasks which are run sequentially, but that sequence runs in parallel to this task
DynamicSequentialTask.DstJob
DynamicTasks Contains static methods which detect and use the current TaskQueueingContext to execute tasks.
DynamicTasks.TaskQueueingResult
ExecutionUtils
ForwardingTask
ListenableForwardingFuture Wraps a Future, making it a ListenableForwardingFuture, but with the caller having the resposibility to:
  • invoke the listeners on job completion (success or error)
  • invoke the listeners on cancel
  • ParallelTask Runs Tasks in parallel.
    ScheduledTask
    SequentialTask runs tasks in order, waiting for one to finish before starting the next; return value here is TBD; (currently is all the return values of individual tasks, but we might want some pipeline support and eventually only to return final value...)
    SingleThreadedScheduler Instances of this class ensures that Tasks execute with in-order single-threaded semantics.
    StackTraceSimplifier Utility class for cleaning up stacktraces.
    TaskBuilder Convenience for creating tasks; note that DynamicSequentialTask is the default
    Tasks
     


    Brooklyn Multi-Cloud Application Management Platform
    brooklyncentral.github.com. Apache License. © 2012.