Examples of KillTransitionCallback


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

    activeMap.put(StatusType.monitor, new ReassignTransitionCallback(data,
        topologyid));
    activeMap.put(StatusType.inactivate, new InactiveTransitionCallback());
    activeMap.put(StatusType.startup, null);
    activeMap.put(StatusType.activate, null);
    activeMap.put(StatusType.kill, new KillTransitionCallback(data,
        topologyid));
    activeMap.put(StatusType.remove, null);
    activeMap.put(StatusType.rebalance, new RebalanceTransitionCallback(
        data, topologyid, currentStatus));
    activeMap.put(StatusType.do_rebalance, null);

    rtn.put(StatusType.active, activeMap);

    // current status is inactive
    Map<StatusType, Callback> inactiveMap = new HashMap<StatusType, Callback>();

    inactiveMap.put(StatusType.monitor, new ReassignTransitionCallback(
        data, topologyid, new StormStatus(StatusType.inactive)));
    inactiveMap.put(StatusType.inactivate, null);
    inactiveMap.put(StatusType.startup, null);
    inactiveMap.put(StatusType.activate, new ActiveTransitionCallback());
    inactiveMap.put(StatusType.kill, new KillTransitionCallback(data,
        topologyid));
    inactiveMap.put(StatusType.remove, null);
    inactiveMap.put(StatusType.rebalance, new RebalanceTransitionCallback(
        data, topologyid, currentStatus));
    inactiveMap.put(StatusType.do_rebalance, null);

    rtn.put(StatusType.inactive, inactiveMap);

    // current status is killed
    Map<StatusType, Callback> killedMap = new HashMap<StatusType, Callback>();

    killedMap.put(StatusType.monitor, null);
    killedMap.put(StatusType.inactivate, null);
    killedMap.put(StatusType.startup, new KillTransitionCallback(data,
        topologyid));
    killedMap.put(StatusType.activate, null);
    killedMap.put(StatusType.kill, new KillTransitionCallback(data,
        topologyid));
    killedMap.put(StatusType.remove, new RemoveTransitionCallback(data,
        topologyid));
    killedMap.put(StatusType.rebalance, null);
    killedMap.put(StatusType.do_rebalance, null);
View Full Code Here

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

    Map<StatusType, Callback> activeMap = new HashMap<StatusType, Callback>();
    activeMap.put(StatusType.monitor, new ReassignTransitionCallback(data,topologyid));
    activeMap.put(StatusType.inactive, new InactiveTransitionCallback());
    activeMap.put(StatusType.activate, null);
    activeMap.put(StatusType.rebalance, new RebalanceTransitionCallback(data,topologyid, status));
    activeMap.put(StatusType.kill, new KillTransitionCallback(data, topologyid,status));
    rtn.put(StatusType.active, activeMap);

    Map<StatusType, Callback> inactiveMap = new HashMap<StatusType, Callback>();
    inactiveMap.put(StatusType.monitor, new ReassignTransitionCallback(data,topologyid));
    inactiveMap.put(StatusType.activate, new ActiveTransitionCallback());
    inactiveMap.put(StatusType.inactivate, null);
    inactiveMap.put(StatusType.rebalance, new RebalanceTransitionCallback(data,topologyid, status));
    inactiveMap.put(StatusType.kill, new KillTransitionCallback(data, topologyid,status));

    rtn.put(StatusType.inactive, inactiveMap);

    Map<StatusType, Callback> killedMap = new HashMap<StatusType, Callback>();
    killedMap.put(StatusType.startup, new DelayRemoveTransitionCallback(data, topologyid, status));
    killedMap.put(StatusType.kill, new KillTransitionCallback(data, topologyid,status));
    killedMap.put(StatusType.remove, new RemoveTransitionCallback(data, topologyid));
    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.