Examples of CQSAPIStats


Examples of com.comcast.cqs.model.CQSAPIStats

   
    if (rows != null) {
     
      for (CmbRow<String, String, String> row : rows) {
       
        CQSAPIStats stats = new CQSAPIStats();
        stats.setIpAddress(row.getKey());
       
        if (row.getColumnSlice().getColumnByName("timestamp") != null) {
          stats.setTimestamp(Long.parseLong(row.getColumnSlice().getColumnByName("timestamp").getValue()));
        }
       
        if (row.getColumnSlice().getColumnByName("jmxport") != null) {
          stats.setJmxPort(Long.parseLong(row.getColumnSlice().getColumnByName("jmxport").getValue()));
        }

        if (row.getColumnSlice().getColumnByName("dataCenter") != null) {
          stats.setDataCenter(row.getColumnSlice().getColumnByName("dataCenter").getValue());
        }
       
        if (row.getColumnSlice().getColumnByName("serviceUrl") != null) {
          stats.setServiceUrl(row.getColumnSlice().getColumnByName("serviceUrl").getValue());
        }

        if (stats.getIpAddress().contains(":")) {
          statsList.add(stats);
        }
      }
    }
    return statsList;
View Full Code Here

Examples of com.comcast.cqs.model.CQSAPIStats

   
    if (rows != null) {
     
      for (CmbRow<String, String, String> row : rows) {
       
        CQSAPIStats stats = new CQSAPIStats();
        stats.setIpAddress(row.getKey());
       
        if (row.getColumnSlice().getColumnByName("timestamp") != null) {
          stats.setTimestamp(Long.parseLong(row.getColumnSlice().getColumnByName("timestamp").getValue()));
        }
       
        if (row.getColumnSlice().getColumnByName("jmxport") != null) {
          stats.setJmxPort(Long.parseLong(row.getColumnSlice().getColumnByName("jmxport").getValue()));
        }

        if (row.getColumnSlice().getColumnByName("port") != null) {
          stats.setLongPollPort(Long.parseLong(row.getColumnSlice().getColumnByName("port").getValue()));
        }

        if (row.getColumnSlice().getColumnByName("dataCenter") != null) {
          stats.setDataCenter(row.getColumnSlice().getColumnByName("dataCenter").getValue());
        }
       
        if (row.getColumnSlice().getColumnByName("serviceUrl") != null) {
          stats.setServiceUrl(row.getColumnSlice().getColumnByName("serviceUrl").getValue());
        }
       
        if (row.getColumnSlice().getColumnByName("redisServerList") != null) {
          stats.setRedisServerList(row.getColumnSlice().getColumnByName("redisServerList").getValue());
        }

        if (stats.getIpAddress().contains(":")) {
          statsList.add(stats);
        }
      }
    }
    return statsList;
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.