Examples of ClusterEvent


Examples of org.apache.helix.controller.stages.ClusterEvent

      NotificationContext changeContext) {
    logger.info("START: GenericClusterController.onStateChange()");
    if (changeContext == null || changeContext.getType() != Type.CALLBACK) {
      _cache.requireFullRefresh();
    }
    ClusterEvent event = new ClusterEvent("currentStateChange");
    event.addAttribute("helixmanager", changeContext.getManager());
    event.addAttribute("instanceName", instanceName);
    event.addAttribute("changeContext", changeContext);
    event.addAttribute("eventData", statesInfo);
    _eventQueue.put(event);
    logger.info("END: GenericClusterController.onStateChange()");
  }
View Full Code Here

Examples of org.apache.helix.controller.stages.ClusterEvent

    logger.info("START: GenericClusterController.onMessage()");
    if (changeContext == null || changeContext.getType() != Type.CALLBACK) {
      _cache.requireFullRefresh();
    }

    ClusterEvent event = new ClusterEvent("messageChange");
    event.addAttribute("helixmanager", changeContext.getManager());
    event.addAttribute("instanceName", instanceName);
    event.addAttribute("changeContext", changeContext);
    event.addAttribute("eventData", messages);
    _eventQueue.put(event);

    if (_clusterStatusMonitor != null && messages != null) {
      _clusterStatusMonitor.addMessageQueueSize(instanceName, messages.size());
    }
View Full Code Here

Examples of org.codehaus.activecluster.ClusterEvent

    public synchronized void shutdown(Node node) {
        Destination key = node.getDestination();
        nodes.remove(key);

        ClusterEvent event = new ClusterEvent(cluster, node, ClusterEvent.ADD_NODE);
        // lets take a copy to make contention easier
        Object[] array = listeners.toArray();
        for (int i = 0, size = array.length; i < size; i++) {
            ClusterListener listener = (ClusterListener) array[i];
            listener.onNodeRemoved(event);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.