public class GridNodePredicate extends Object implements IgnitePredicate<ClusterNode>, Iterable<UUID>
| Constructor and Description |
|---|
GridNodePredicate(ClusterNode... nodes)
Creates node predicate that evaluates to
true for all
provided nodes. |
GridNodePredicate(Collection<UUID> ids)
Creates node predicate that evaluates to
true for all
provided node IDs. |
GridNodePredicate(Set<UUID> ids)
Creates node predicate that evaluates to
true for all
provided node IDs. |
GridNodePredicate(UUID... ids)
Creates node predicate that evaluates to
true for all
provided node IDs. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
apply(ClusterNode n)
Predicate body.
|
boolean |
equals(Object o) |
int |
hashCode() |
Iterator<UUID> |
iterator() |
Set<UUID> |
nodeIds()
Gets set of node IDs this predicate is based on.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic GridNodePredicate(Set<UUID> ids)
true for all
provided node IDs. Implementation will not make a defensive copy.ids - Optional node IDs. If none provided - predicate will always return false.public GridNodePredicate(@Nullable
Collection<UUID> ids)
true for all
provided node IDs. Implementation will make a defensive copy.ids - Optional node IDs. If none provided - predicate will always return false.public GridNodePredicate(@Nullable
UUID... ids)
true for all
provided node IDs. Implementation will make a defensive copy.ids - Optional node IDs. If none provided - predicate will always return false.public GridNodePredicate(@Nullable
ClusterNode... nodes)
true for all
provided nodes. Implementation will make a defensive copy.nodes - Optional grid nodes. If none provided - predicate
will always return false.public Set<UUID> nodeIds()
public boolean apply(ClusterNode n)
apply in interface IgnitePredicate<ClusterNode>n - Predicate parameter.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.4.0 Release Date : March 5 2018