public class TaskMethodClosure extends Object implements ITaskClosureGenerator
prepareTaskMethod(),
executeTaskMethod(),
getClosure()| Constructor and Description |
|---|
TaskMethodClosure() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
executeTaskMethod()
Invokes the actual pojo task method.
|
TaskMethodClosure |
getClosure()
Returns a closure for nested (non-root, i.e.
|
long |
getDurationMs() |
long |
getDurationNs() |
String |
getMethodActualSignature() |
Object[] |
getMethodBindings() |
String |
getMethodFormalSignature() |
String |
getMethodName() |
Object |
getTargetPojoTask() |
String |
getTaskName() |
void |
prepare() |
protected void |
prepareTaskMethod()
Called before
executeTaskMethod(). |
String |
toString() |
public String getTaskName()
public String getMethodName()
public String getMethodFormalSignature()
public String getMethodActualSignature()
public Object getTargetPojoTask()
public Object[] getMethodBindings()
public long getDurationMs()
public long getDurationNs()
public void prepare()
protected void prepareTaskMethod()
executeTaskMethod(). The default implementation
does nothing, and is provided only for the benefit of subclasses to
override.protected boolean executeTaskMethod()
Called after prepareTaskMethod() by the thread that will be used
to invoke the method. This thread may or may not be the same as the one
in prepareTaskMethod. It will be different if the
orchestrator decided to run this task in a separate thread in order to
maximize parallelism.
This method can be overridden but this super method should be invoked from the overridden method to actually perform the call.
public TaskMethodClosure getClosure()
IBascomConfig.getExecutionHook(Orchestrator, String).getClosure().
Subclasses can override to provide different behavior for non-root vs.
root tasks, if desired. The difference with this method is that
subclasses can know what the parent closure is, if that matters.getClosure in interface ITaskClosureGeneratorCopyright © 2018. All rights reserved.