Brooklyn

brooklyn.util.task
[Java] Interface TaskPreprocessor


@Deprecated
public interface TaskPreprocessor

The preprocessor is an internal mechanism to decorate Tasks. This can be used to enhance tasks that they acquire a synchronized block (to cause them to effectively run singly-threaded), or clear intermediate queued jobs, etc.

deprecated:
in 0.4; unused code; will be deleted


Method Summary
void injectManager(ExecutionManager m)

Called by BasicExecutionManager when preprocessor is associated with an execution manager.

void injectTag(java.lang.Object tag)

Called by BasicExecutionManager when preprocessor is associated with a tag.

void onEnd(java.util.Map flags, Task task)

Called by BasicExecutionManager when task is ended in the category, in reverse order of tags.

void onStart(java.util.Map flags, Task task)

Called by BasicExecutionManager when task is started in the category, in order of tags.

void onSubmit(java.util.Map flags, Task task)

Called by BasicExecutionManager when task is submitted in the category, in order of tags.

 

Method Detail

injectManager

public void injectManager(ExecutionManager m)
Called by BasicExecutionManager when preprocessor is associated with an execution manager.


injectTag

public void injectTag(java.lang.Object tag)
Called by BasicExecutionManager when preprocessor is associated with a tag.


onEnd

public void onEnd(java.util.Map flags, Task task)
Called by BasicExecutionManager when task is ended in the category, in reverse order of tags.


onStart

public void onStart(java.util.Map flags, Task task)
Called by BasicExecutionManager when task is started in the category, in order of tags.


onSubmit

public void onSubmit(java.util.Map flags, Task task)
Called by BasicExecutionManager when task is submitted in the category, in order of tags.


 

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