Package com.alibaba.jstorm.callback.impl

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


    Map<StatusType, Map<StatusType, Callback>> rtn = new HashMap<StatusType, Map<StatusType, Callback>>();

    // current status is active
    Map<StatusType, Callback> activeMap = new HashMap<StatusType, Callback>();
    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,
View Full Code Here

TOP

Related Classes of com.alibaba.jstorm.callback.impl.ReassignTransitionCallback

Copyright © 2018 www.massapicom. 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.