public class NodePredicates extends Object
ComputeService.| Modifier and Type | Field and Description | 
|---|---|
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 and Description | 
|---|
NodePredicates()  | 
| Modifier and Type | Method and Description | 
|---|---|
static com.google.common.base.Predicate<ComputeMetadata> | 
all()
return everything. 
 | 
static com.google.common.base.Predicate<NodeMetadata> | 
hasGroup()
Return nodes who have a value for  
NodeMetadata.getGroup() | 
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 <T extends ComputeMetadata>  | 
withIds(String... ids)
Return nodes with the specific ids Note: returns all nodes, regardless of the state. 
 | 
public static final com.google.common.base.Predicate<NodeMetadata> RUNNING
public static final com.google.common.base.Predicate<NodeMetadata> TERMINATED
public static com.google.common.base.Predicate<ComputeMetadata> locationId(String id)
id - id of the locationpublic static com.google.common.base.Predicate<ComputeMetadata> parentLocationId(String id)
id - id of the locationpublic static <T extends ComputeMetadata> com.google.common.base.Predicate<T> withIds(String... ids)
ids - ids of the resourcespublic static com.google.common.base.Predicate<ComputeMetadata> all()
public static com.google.common.base.Predicate<NodeMetadata> inGroup(String group)
group - group to match the itemspublic static com.google.common.base.Predicate<NodeMetadata> hasGroup()
NodeMetadata.getGroup()public static com.google.common.base.Predicate<NodeMetadata> runningInGroup(String group)
group - group to match the itemsCopyright © 2009-2013 jclouds. All Rights Reserved.