public class Cluster extends Object
Cluster.Instances.| Modifier and Type | Class and Description |
|---|---|
static class |
Cluster.Instance
This class represents a real node running in a cluster.
|
| Constructor and Description |
|---|
Cluster(Set<Cluster.Instance> instances) |
Cluster(Set<Cluster.Instance> instances,
Properties configuration) |
| Modifier and Type | Method and Description |
|---|---|
static Cluster |
empty() |
Properties |
getConfiguration() |
Cluster.Instance |
getInstanceMatching(com.google.common.base.Predicate<Cluster.Instance> predicate) |
Set<Cluster.Instance> |
getInstances() |
Set<Cluster.Instance> |
getInstancesMatching(com.google.common.base.Predicate<Cluster.Instance> predicate) |
void |
removeInstancesMatching(com.google.common.base.Predicate<Cluster.Instance> predicate) |
String |
toString() |
public Cluster(Set<Cluster.Instance> instances)
public Cluster(Set<Cluster.Instance> instances, Properties configuration)
public static Cluster empty()
public Set<Cluster.Instance> getInstances()
public Properties getConfiguration()
public Cluster.Instance getInstanceMatching(com.google.common.base.Predicate<Cluster.Instance> predicate)
public Set<Cluster.Instance> getInstancesMatching(com.google.common.base.Predicate<Cluster.Instance> predicate)
public void removeInstancesMatching(com.google.common.base.Predicate<Cluster.Instance> predicate)
Copyright © 2010–2016 Cloudera. All rights reserved.