brooklyn.util.task.CompoundTask Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of brooklyn-core Show documentation
Show all versions of brooklyn-core Show documentation
Entity implementation classes, events, and other core elements
package brooklyn.util.task;
import groovy.lang.Closure;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import brooklyn.management.Task;
import brooklyn.util.collections.MutableMap;
/**
* A {@link Task} that is comprised of other units of work: possibly a heterogeneous mix of {@link Task},
* {@link Runnable}, {@link Callable} and {@link Closure} instances.
*
* This class holds the collection of child tasks, but subclasses have the responsibility of executing them in a
* sensible manner by implementing the abstract {@link #runJobs} method.
*/
public abstract class CompoundTask extends BasicTask> {
private static final Logger log = LoggerFactory.getLogger(CompoundTask.class);
protected final List> children;
protected final List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy