Package backtype.storm.generated

Examples of backtype.storm.generated.ExecutorSpecificStats


          // printing failing statistics, if there are failed tuples
          final ExecutorStats es = execSummary.get_stats();
          if (es == null)
            sb.append("No info about failed tuples\n");
          else {
            final ExecutorSpecificStats stats = es.get_specific();
            boolean isEmpty;
            Object objFailed;
            if (stats.is_set_spout()) {
              final Map<String, Map<String, Long>> failed = stats.get_spout()
                  .get_failed();
              objFailed = failed;
              isEmpty = isEmptyMapMap(failed);
            } else {
              final Map<String, Map<GlobalStreamId, Long>> failed = stats.get_bolt()
                  .get_failed();
              objFailed = failed;
              isEmpty = isEmptyMapMap(failed);
            }
            if (!isEmpty) {
View Full Code Here


                    //printing failing statistics, if there are failed tuples
                    ExecutorStats es = execSummary.get_stats();
            if(es == null){
              sb.append("No info about failed tuples\n");
            }else{
              ExecutorSpecificStats stats = es.get_specific();
              boolean isEmpty;
              Object objFailed;
              if(stats.is_set_spout()){
              Map<String, Map<String, Long>> failed = stats.get_spout().get_failed();
              objFailed = failed;
              isEmpty = isEmptyMapMap(failed);
                }else{
                Map<String, Map<GlobalStreamId, Long>> failed = stats.get_bolt().get_failed();
                  objFailed = failed;
                  isEmpty = isEmptyMapMap(failed);
                }
                if(!isEmpty){
               sb.append("ERROR: There are some failed tuples: ").append(objFailed).append("\n");
View Full Code Here

        sb.append("\n\n").append("Raw data:\n");
        while(execIter.hasNext()){
            ExecutorSummary execSummary = execIter.next();                                   
            String componentId = execSummary.get_component_id();
                   
            ExecutorSpecificStats stats = execSummary.get_stats().get_specific();
            if(stats.is_set_spout()){
                //ACKED_TUPLES
                //Map<TimeWindow, <Stream, NumTuplesAcked>>,
                //  TimeWindow takes one of the following: ":all-time", "600" (10mins), "10800" (3h), "86400" (1d)
                Map<String, Map<String, Long>> ackedMap = getNumTuplesSpout(execSummary, withAckers);
                sb.append("An executor of spout ").append(componentId).append(" has tuples acked \n").append(ackedMap).append("\n");

                //TODO: For now, for both throughput and latency, we count only on "default" stream.
                long executorAckedTuples = 0L;
                Long executorAckedTuplesObj = ackedMap.get(":all-time").get("default");
                if(executorAckedTuplesObj!=null){
                  executorAckedTuples = executorAckedTuplesObj;
                }
               
                //LATENCIES
                double executorLatency = 0;
                if(withAckers){
                    //Map<TimeWindow, <Stream, Latency>>,
                    //  TimeWindow takes one of the following: ":all-time", "600" (10mins), "10800" (3h), "86400" (1d)
                    Map<String, Map<String, Double>> completeMsAvg = getLatency(execSummary, withAckers);
                    sb.append(" and latency \n").append(completeMsAvg).append("\n");
                    executorLatency = completeMsAvg.get(":all-time").get("default");
                }
                sb.append("\n");
               
                //KEEPING BOTH
                TuplesInfo ti = new TuplesInfo(executorAckedTuples, executorLatency);
                appendLatency(spoutsInfo, componentId, ti);
            }else if(stats.is_set_bolt()){
              //ACKED_TUPLES
                //Map<TimeWindow, <Stream, NumTuplesAcked>>,
                //  TimeWindow takes one of the following: ":all-time", "600" (10mins), "10800" (3h), "86400" (1d)
                Map<String, Map<String, Long>> ackedMap = getNumTuplesBoltEmitted(execSummary, withAckers);
                sb.append("An executor of bolt ").append(componentId).append(" has emitted tuples \n").append(ackedMap).append("\n");
View Full Code Here

        sb.append("\n\n").append("BOLT LATENCIES:\n");
        while(execIter.hasNext()){
            ExecutorSummary execSummary = execIter.next();                                   
            String componentId = execSummary.get_component_id();
                   
            ExecutorSpecificStats stats = execSummary.get_stats().get_specific();
            if(stats.is_set_bolt()){
                //EXECUTED_TUPLES
                //Map<TimeWindow, <GlobalStreamId, NumTuplesExecuted>>,
                //  TimeWindow takes one of the following: ":all-time", "600" (10mins), "10800" (3h), "86400" (1d)
                //LATENCIES
                //Map<TimeWindow, <GlobalStreamId, Latency>>,
View Full Code Here

TOP

Related Classes of backtype.storm.generated.ExecutorSpecificStats

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.