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,