Package com.alibaba.jstorm.ui.model

Examples of com.alibaba.jstorm.ui.model.TopologySumm


    List<TopologySumm> tsumm = new ArrayList<TopologySumm>();
    if (ts != null) {
      for (TopologySummary t : ts) {

        TopologySumm topologySumm = new TopologySumm();
        topologySumm.setTopologyId(t.get_id());
        topologySumm.setTopologyName(t.get_name());

        topologySumm.setStatus(t.get_status());
        topologySumm.setUptime(StatBuckets.prettyUptimeStr(t
            .get_uptime_secs()));

        topologySumm.setNumWorkers(String.valueOf(t.get_num_workers()));
        topologySumm.setNumTasks(String.valueOf(t.get_num_tasks()));
       
        topologySumm.setErrorInfo(t.get_error_info());
        tsumm.add(topologySumm);
      }
    }
    return tsumm;
  }
View Full Code Here


    // TopologySumm ts = new TopologySumm(summ.get_name(), summ.get_id(),
    // summ.get_status(), StatBuckets.prettyUptimeStr(summ
    // .get_uptime_secs()), String.valueOf(workers.size()),
    // String.valueOf(taskSize), summ.get_uptime_secs());

    TopologySumm topologySumm = new TopologySumm();
    topologySumm.setTopologyId(t.get_id());
    topologySumm.setTopologyName(t.get_name());
    topologySumm.setStatus(t.get_status());
    topologySumm
        .setUptime(StatBuckets.prettyUptimeStr(t.get_uptime_secs()));

    topologySumm.setNumWorkers(String.valueOf(workers.size()));
    topologySumm.setNumTasks(String.valueOf(taskNum));

    tsumm.add(topologySumm);
    return tsumm;
  }
View Full Code Here

TOP

Related Classes of com.alibaba.jstorm.ui.model.TopologySumm

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.