Lemarais commented on a change in pull request #317:
URL: https://github.com/apache/incubator-nemo/pull/317#discussion_r705909154



##########
File path: 
runtime/common/src/main/java/org/apache/nemo/runtime/common/metric/TaskMetric.java
##########
@@ -106,6 +116,33 @@ private void setTaskDuration(final long taskDuration) {
     this.taskDuration = taskDuration;
   }
 
+  /**
+   * Method related to stream metric.
+   */
+  public final Map<String, List<StreamMetric>> getStreamMetric() {
+    return this.streamMetrics;
+  }
+
+  private void setStreamMetric(final Map<String, StreamMetric> 
streamMetricMap) {
+    for (String sourceVertexId : streamMetricMap.keySet()) {
+      StreamMetric streamMetric = streamMetricMap.get(sourceVertexId);
+      this.streamMetrics.putIfAbsent(sourceVertexId, new LinkedList<>());

Review comment:
       done




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to