CacheCluster implementation that delegates to an underlying cache cluster. The underlying CacheCluster can be changed
dynamically
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private static final Logger | |
| private volatile CacheCluster |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | addTopologyListener(ClusterTopologyListener
Listener listener)Implements net. |
| private void | |
| pack-priv void | |
| private void | |
| public ClusterNode | getCurrentNode()
Implements net. ClusterNode instance that corresponds to the current node.
|
| public Collection | |
| public ClusterScheme | getScheme()
Implements net. |
| public List | getTopologyListeners()
Implements net. |
| public boolean | isClusterOnline()
Implements net. |
| public void | removeAllListeners()
Implements net. |
| public boolean | removeTopologyListener(ClusterTopologyListener
Listener listener)Implements net. |
| public void | |
| public ClusterNode | waitUntilNodeJoinsCluster()
Implements net. |
| listeners | back to summary |
|---|---|
| private final List<ClusterTopologyListener> listeners | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| realCacheCluster | back to summary |
|---|---|
| private volatile CacheCluster realCacheCluster | |
| TerracottaCacheCluster | back to summary |
|---|---|
| public TerracottaCacheCluster() | |
| addTopologyListener | back to summary |
|---|---|
| public boolean addTopologyListener(ClusterTopologyListener listener) Implements net. Doc from net. Add a listener for cluster events
| |
| checkIfInitialized | back to summary |
|---|---|
| private void checkIfInitialized() | |
| fireNodeRejoinedEvent | back to summary |
|---|---|
| pack-priv void fireNodeRejoinedEvent(ClusterNode oldNode, ClusterNode newNode) Fire Rejoin event to all listeners. Package protected method | |
| fireRejoinEvent | back to summary |
|---|---|
| private void fireRejoinEvent(ClusterNode oldNode, ClusterNode newNode, ClusterTopologyListener listener) | |
| getCurrentNode | back to summary |
|---|---|
| public ClusterNode getCurrentNode() Implements net. Doc from net. Retrieves the
| |
| getNodes | back to summary |
|---|---|
| public Collection Implements net. Doc from net. Get all the nodes in the cluster
| |
| getScheme | back to summary |
|---|---|
| public ClusterScheme getScheme() Implements net. Doc from net. Get scheme name for this cluster info.
| |
| getTopologyListeners | back to summary |
|---|---|
| public List Implements net. Doc from net. Get all the topology listeners
| |
| isClusterOnline | back to summary |
|---|---|
| public boolean isClusterOnline() Implements net. Doc from net. Find out if the current node is connected to the cluster or not
| |
| removeAllListeners | back to summary |
|---|---|
| public void removeAllListeners() Implements net. Doc from net. Removes all listeners for cluster events
| |
| removeTopologyListener | back to summary |
|---|---|
| public boolean removeTopologyListener(ClusterTopologyListener listener) Implements net. Doc from net. Remove a listener for cluster events
| |
| setUnderlyingCacheCluster | back to summary |
|---|---|
| public void setUnderlyingCacheCluster(CacheCluster newCacheCluster) Set the underlying cache | |
| waitUntilNodeJoinsCluster | back to summary |
|---|---|
| public ClusterNode waitUntilNodeJoinsCluster() Implements net. Doc from net. Waits until the current node has successfully joined the cluster.
| |