| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: True if already listeningListener listener)Add a listener for cluster events |
| public ClusterNode | Returns: theClusterNode instance that corresponds to the current nodeRetrieves the |
| public Collection | Returns: information on all the nodes in the cluster, including ID, hostname, and IP address.Get all the nodes in the cluster |
| public ClusterScheme | Returns: a scheme name for the cluster information. CurrentlyTERRACOTTA is the only scheme supported.Get scheme name for this cluster info. |
| public List | |
| public boolean | Returns: true if cluster is online otherwise falseFind out if the current node is connected to the cluster or not |
| public void | |
| public boolean | Returns: True if not listeningListener listener)Remove a listener for cluster events |
| public ClusterNode | Returns: theClusterNode instance that corresponds to the current nodeWaits until the current node has successfully joined the cluster. |
| addTopologyListener | back to summary |
|---|---|
| public boolean addTopologyListener(ClusterTopologyListener listener) Add a listener for cluster events
| |
| getCurrentNode | back to summary |
|---|---|
| public ClusterNode getCurrentNode() Retrieves the
| |
| getNodes | back to summary |
|---|---|
| public Collection Get all the nodes in the cluster
| |
| getScheme | back to summary |
|---|---|
| public ClusterScheme getScheme() Get scheme name for this cluster info.
| |
| getTopologyListeners | back to summary |
|---|---|
| public List Get all the topology listeners
| |
| isClusterOnline | back to summary |
|---|---|
| public boolean isClusterOnline() Find out if the current node is connected to the cluster or not
| |
| removeAllListeners | back to summary |
|---|---|
| public void removeAllListeners() Removes all listeners for cluster events | |
| removeTopologyListener | back to summary |
|---|---|
| public boolean removeTopologyListener(ClusterTopologyListener listener) Remove a listener for cluster events
| |
| waitUntilNodeJoinsCluster | back to summary |
|---|---|
| public ClusterNode waitUntilNodeJoinsCluster() Waits until the current node has successfully joined the cluster.
| |