Examples of active_storms()


Examples of com.alibaba.jstorm.cluster.StormClusterState.active_storms()

   * @throws Exception
   */
  public void cleanupDisappearedTopology() throws Exception {
    StormClusterState clusterState = nimbusData.getStormClusterState();

    List<String> active_topologys = clusterState.active_storms();
    if (active_topologys == null) {
      return;
    }

    Set<String> cleanupIds = get_cleanup_ids(clusterState, active_topologys);
View Full Code Here

Examples of com.alipay.bluewhale.core.cluster.StormClusterState.active_storms()

  TimeCacheMap<String, Long> lastneedClean=new TimeCacheMap<String, Long>(3600);
  @Override
  public void run() {
    StormClusterState clusterState = data.getStormClusterState();

    List<String> active_topologys = clusterState.active_storms();
    if (active_topologys != null){
        for (String topologyid : active_topologys) {
      StatusTransition.transition(data, topologyid, false, StatusType.monitor);
        }
    }
View Full Code Here

Examples of com.alipay.bluewhale.core.cluster.StormClusterState.active_storms()

public class Topology {
 
  public static String[] active_storms() throws Exception
  {
    StormClusterState stat=GetShards.getCluster();
    List<String> list=stat.active_storms();
    String[] rtn=new String[list.size()];
    return list.toArray(rtn);
  }
 
  public static String[] heartbeat_storms() throws Exception
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.