public class TaskWrapper extends Object
Constructor and Description |
---|
TaskWrapper(String s,
String c,
Set<String> hosts,
Map<String,String> params,
List<Task> tasks) |
TaskWrapper(String s,
String c,
Set<String> hosts,
Map<String,String> params,
Task... tasks) |
TaskWrapper(String s,
String c,
Set<String> hosts,
Task task) |
Modifier and Type | Method and Description |
---|---|
String |
getComponent() |
Set<String> |
getHosts() |
Map<String,String> |
getParams() |
String |
getService() |
List<Task> |
getTasks() |
Set<String> |
getTimeoutKeys() |
boolean |
isAnyTaskSequential() |
String |
toString() |
public TaskWrapper(String s, String c, Set<String> hosts, Task task)
s
- the service name for the taskc
- the component name for the taskhosts
- the set of hosts that the task is fortask
- a single taskpublic TaskWrapper(String s, String c, Set<String> hosts, Map<String,String> params, Task... tasks)
s
- the service name for the tasksc
- the component name for the taskshosts
- the set of hosts that the tasks are forparams
- additional command parameterstasks
- an array of tasks as a convenienceCopyright © 2022 Apache Software Foundation. All rights reserved.