Source:
private static Map<String, Object> getBoltExecutorStats(String topologyId, Map<String, Object> config, ExecutorAggregateStats executorAggregateStats) { Map<String, Object> result = new HashMap(); ExecutorSummary executorSummary = executorAggregateStats.get_exec_summary(); ExecutorInfo executorInfo = executorSummary.get_executor_info(); String executorId = prettyExecutorInfo(executorInfo); result.put("id", executorId); try { result.put("encodedId", URLEncoder.encode(executorId, StandardCharsets.UTF_8.name())); } catch (UnsupportedEncodingException e) { throw Utils.wrapInRuntime(e); } result.put("uptime", prettyUptimeSec(executorSummary.get_uptime_secs())); result.put("uptimeSeconds", executorSummary.get_uptime_secs()); String host = executorSummary.get_host(); result.put("host", host); int port = executorSummary.get_port(); result.put("port", port); ComponentAggregateStats componentAggregateStats = executorAggregateStats.get_stats(); CommonAggregateStats commonAggregateStats = componentAggregateStats.get_common_stats(); result.put("emitted", nullToZero(commonAggregateStats.get_emitted())); result.put("transferred", nullToZero(commonAggregateStats.get_transferred())); SpecificAggregateStats specificAggregateStats = componentAggregateStats.get_specific_stats(); BoltAggregateStats boltAggregateStats = specificAggregateStats.get_bolt(); result.put("capacity", StatsUtil.floatStr(nullToZero(boltAggregateStats.get_capacity()))); result.put("executeLatency", StatsUtil.floatStr(boltAggregateStats.get_execute_latency_ms())); result.put("executed", nullToZero(boltAggregateStats.get_executed())); result.put("processLatency", StatsUtil.floatStr(boltAggregateStats.get_process_latency_ms())); result.put("acked", nullToZero(commonAggregateStats.get_acked())); result.put("failed", nullToZero(commonAggregateStats.get_failed())); result.put("workerLogLink", getWorkerLogLink(host, port, config, topologyId)); return result; }

Target:
private static Map<String, Object> getBoltExecutorStats(String topologyId, Map<String, Object> config, ExecutorAggregateStats executorAggregateStats) { Map<String, Object> result = new HashMap(); ExecutorSummary executorSummary = executorAggregateStats.get_exec_summary(); ExecutorInfo executorInfo = executorSummary.get_executor_info(); String executorId = prettyExecutorInfo(executorInfo); result.put("id", executorId); result.put("encodedId", Utils.urlEncodeUtf8(executorId)); result.put("uptime", prettyUptimeSec(executorSummary.get_uptime_secs())); result.put("uptimeSeconds", executorSummary.get_uptime_secs()); String host = executorSummary.get_host(); result.put("host", host); int port = executorSummary.get_port(); result.put("port", port); ComponentAggregateStats componentAggregateStats = executorAggregateStats.get_stats(); CommonAggregateStats commonAggregateStats = componentAggregateStats.get_common_stats(); result.put("emitted", nullToZero(commonAggregateStats.get_emitted())); result.put("transferred", nullToZero(commonAggregateStats.get_transferred())); SpecificAggregateStats specificAggregateStats = componentAggregateStats.get_specific_stats(); BoltAggregateStats boltAggregateStats = specificAggregateStats.get_bolt(); result.put("capacity", StatsUtil.floatStr(nullToZero(boltAggregateStats.get_capacity()))); result.put("executeLatency", StatsUtil.floatStr(boltAggregateStats.get_execute_latency_ms())); result.put("executed", nullToZero(boltAggregateStats.get_executed())); result.put("processLatency", StatsUtil.floatStr(boltAggregateStats.get_process_latency_ms())); result.put("acked", nullToZero(commonAggregateStats.get_acked())); result.put("failed", nullToZero(commonAggregateStats.get_failed())); result.put("workerLogLink", getWorkerLogLink(host, port, config, topologyId)); return result; }