Package org.apache.nemo.runtime.executor
Class MetricManagerWorker
- java.lang.Object
-
- org.apache.nemo.runtime.executor.MetricManagerWorker
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,MetricMessageSender
public final class MetricManagerWorker extends java.lang.Object implements MetricMessageSender
Metric sender that periodically flushes the collected metrics to Driver.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Flush the metric queue and close the metric dispatch.void
flush()
Flush all metric inside of the queue.void
send(java.lang.String metricType, java.lang.String metricId, java.lang.String metricField, byte[] metricValue)
Send metric to master.
-
-
-
Method Detail
-
flush
public void flush()
Description copied from interface:MetricMessageSender
Flush all metric inside of the queue.- Specified by:
flush
in interfaceMetricMessageSender
-
send
public void send(java.lang.String metricType, java.lang.String metricId, java.lang.String metricField, byte[] metricValue)
Description copied from interface:MetricMessageSender
Send metric to master.- Specified by:
send
in interfaceMetricMessageSender
- Parameters:
metricType
- type of the metricmetricId
- id of the metricmetricField
- field of the metricmetricValue
- value of the metric which is serialized
-
close
public void close()
Description copied from interface:MetricMessageSender
Flush the metric queue and close the metric dispatch.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfaceMetricMessageSender
-
-