public class TaskWrapperBuilder extends Object
Constructor and Description |
---|
TaskWrapperBuilder() |
Modifier and Type | Method and Description |
---|---|
static Set<String> |
getEffectiveHosts(List<TaskWrapper> tasks)
Given a collection of tasks, get the union of the hosts.
|
static List<TaskWrapper> |
getTaskList(String service,
String component,
HostsType hostsType,
List<Task> tasks,
Map<String,String> params)
Creates a collection of task wrappers based on the set of hosts they are allowed to run on
by analyzing the "hosts" attribute of any ExecuteTask objects.
|
public static List<TaskWrapper> getTaskList(String service, String component, HostsType hostsType, List<Task> tasks, Map<String,String> params)
service
- the service name for the taskscomponent
- the component name for the taskshostsType
- the collection of sets along with their statustasks
- collection of tasksparams
- additional parameterstasks
public static Set<String> getEffectiveHosts(List<TaskWrapper> tasks)
tasks
- Collection of tasksCopyright © 2022 Apache Software Foundation. All rights reserved.