ehcache

net.sf.ehcache.cluster
Interface ClusterTopologyListener

All Known Implementing Classes:
CacheClusterStateStatisticsListener

public interface ClusterTopologyListener

A listener for cluster topology events

Since:
2.0
Author:
Geert Bevin

Method Summary
 void clusterOffline(ClusterNode node)
          This node has lost contact (possibly temporarily) with the cluster and cannot execute clustered operations
 void clusterOnline(ClusterNode node)
          This node has established contact with the cluster and can execute clustered operations.
 void clusterRejoined(ClusterNode oldNode, ClusterNode newNode)
          This node lost contact and rejoined the cluster again.
 void nodeJoined(ClusterNode node)
          A node has joined the cluster
 void nodeLeft(ClusterNode node)
          A node has left the cluster
 

Method Detail

nodeJoined

void nodeJoined(ClusterNode node)
A node has joined the cluster

Parameters:
node - The joining node

nodeLeft

void nodeLeft(ClusterNode node)
A node has left the cluster

Parameters:
node - The departing node

clusterOnline

void clusterOnline(ClusterNode node)
This node has established contact with the cluster and can execute clustered operations.

Parameters:
node - The current node

clusterOffline

void clusterOffline(ClusterNode node)
This node has lost contact (possibly temporarily) with the cluster and cannot execute clustered operations

Parameters:
node - The current node

clusterRejoined

void clusterRejoined(ClusterNode oldNode,
                     ClusterNode newNode)
This node lost contact and rejoined the cluster again.

This event is only fired in the node which rejoined and not to all the connected nodes

Parameters:
oldNode - The old node which got disconnected
newNode - The new node after rejoin

ehcache

Copyright 2001-2017, Terracotta, Inc.