コード例 #1
0
  protected boolean memberJoined(Address joinAddress, ClusterNode clusterNode) {

    _liveInstances.put(joinAddress, clusterNode);

    Address previousAddress =
        _clusterNodeAddresses.put(clusterNode.getClusterNodeId(), joinAddress);

    if (previousAddress != null) {
      return false;
    }

    ClusterEvent clusterEvent = ClusterEvent.join(clusterNode);

    fireClusterEvent(clusterEvent);

    return true;
  }
コード例 #2
0
 protected void processClusterEvent() {
   _replicasClusterListener.processClusterEvent(ClusterEvent.join());
 }