Examples of DoRebalanceTransitionCallback


Examples of com.alibaba.jstorm.callback.impl.DoRebalanceTransitionCallback

    rebalancingMap.put(StatusType.remove, null);
    rebalancingMap
        .put(StatusType.rebalance, new RebalanceTransitionCallback(
            data, topologyid, currentStatus));
    rebalancingMap.put(StatusType.do_rebalance,
        new DoRebalanceTransitionCallback(data, topologyid,
            new StormStatus(rebalanceOldStatus)));
    rtn.put(StatusType.rebalancing, rebalancingMap);

    /**
     * @@@ just handling 4 kind of status, maybe add later
View Full Code Here

Examples of com.alipay.bluewhale.core.callback.impl.DoRebalanceTransitionCallback

    rtn.put(StatusType.killed, killedMap);

    Map<StatusType, Callback> rebalancingMap = new HashMap<StatusType, Callback>();
    rebalancingMap.put(StatusType.startup, new DelayRebalanceTransitionCallback(data, topologyid, status));
    rebalancingMap.put(StatusType.kill, new KillTransitionCallback(data, topologyid,status));
    rebalancingMap.put(StatusType.do_rebalance, new DoRebalanceTransitionCallback(data, topologyid, status));
    rtn.put(StatusType.rebalancing, rebalancingMap);

    return rtn;

  }
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.