|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jclouds.compute.predicates.NodePredicates
public class NodePredicates
Container for node filters (predicates).
This class has static methods that create customized predicates to use with
ComputeService
.
Field Summary | |
---|---|
static com.google.common.base.Predicate<NodeMetadata> |
RUNNING
Match nodes with State == RUNNING |
static com.google.common.base.Predicate<NodeMetadata> |
TERMINATED
Match nodes with State == NODE_TERMINATED |
Constructor Summary | |
---|---|
NodePredicates()
|
Method Summary | ||
---|---|---|
static com.google.common.base.Predicate<ComputeMetadata> |
all()
return everything. |
|
static com.google.common.base.Predicate<NodeMetadata> |
inGroup(String group)
Return nodes in the specified group. |
|
static com.google.common.base.Predicate<ComputeMetadata> |
locationId(String id)
Return nodes in the specified location. |
|
static com.google.common.base.Predicate<ComputeMetadata> |
parentLocationId(String id)
Return nodes in the specified parent location. |
|
static com.google.common.base.Predicate<NodeMetadata> |
runningInGroup(String group)
Return nodes with specified group that are in the NODE_RUNNING state. |
|
static
|
withIds(String... ids)
Return nodes with the specific ids Note: returns all nodes, regardless of the state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final com.google.common.base.Predicate<NodeMetadata> RUNNING
public static final com.google.common.base.Predicate<NodeMetadata> TERMINATED
Constructor Detail |
---|
public NodePredicates()
Method Detail |
---|
public static com.google.common.base.Predicate<ComputeMetadata> locationId(String id)
id
- id of the location
public static com.google.common.base.Predicate<ComputeMetadata> parentLocationId(String id)
id
- id of the location
public static <T extends ComputeMetadata> com.google.common.base.Predicate<T> withIds(String... ids)
ids
- ids of the resources
public static com.google.common.base.Predicate<ComputeMetadata> all()
public static com.google.common.base.Predicate<NodeMetadata> inGroup(String group)
group
- group to match the items
public static com.google.common.base.Predicate<NodeMetadata> runningInGroup(String group)
group
- group to match the items
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |