Brooklyn

brooklyn.management
[Java] Interface HasTaskChildren


@Beta // in 0.6.0
public interface HasTaskChildren {
public interface HasTaskChildren

Interface marks tasks which have explicit children, typically where the task defines the ordering of running those children tasks

The Task#getSubmittedByTask()#getSubmittedByTask() on the child will typically return the parent, but note there are other means of submitting tasks (e.g. background, in the same ExecutionContext), where the submitter has no API reference to the submitted tasks.

In general the children mechanism is preferred as it is easier to navigate (otherwise you have to scan the ExecutionContext to find tasks submitted by a task).


Method Summary
java.lang.Iterable getChildren()

 

Method Detail

getChildren

public java.lang.Iterable getChildren()


 

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