public class TaskGroup extends Object implements Iterable<Task>
Task.Type - in other words,
you can't have a group with some tasks that collect metrics
and some that collect availability.
You also can't have a task group that has different kinds of tasks (that is,
they all must extend from the same Task implementation class).| Modifier and Type | Method and Description |
|---|---|
void |
addTask(Task task) |
boolean |
addTasks(Collection<Task> collection) |
String |
getId() |
Interval |
getInterval() |
Task.Kind |
getKind() |
long |
getOffsetMillis() |
Task |
getTask(int i) |
Task.Type |
getType() |
boolean |
isEmpty() |
Iterator<Task> |
iterator() |
int |
size() |
String |
toString() |
protected void |
verify(Task task) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic TaskGroup(Interval interval)
public Task.Type getType()
null if group is emptypublic Task.Kind getKind()
null if group is emptypublic void addTask(Task task)
public boolean addTasks(Collection<Task> collection)
public int size()
public boolean isEmpty()
public String getId()
public Interval getInterval()
public long getOffsetMillis()
public Task getTask(int i)
protected void verify(Task task)
Copyright © 2015 Red Hat, Inc.. All rights reserved.