Package org.apache.flink.runtime.metrics
Class ViewUpdater
- java.lang.Object
-
- org.apache.flink.runtime.metrics.ViewUpdater
-
public class ViewUpdater extends Object
The ViewUpdater is responsible for updating all metrics that implement theView
interface.
-
-
Constructor Summary
Constructors Constructor Description ViewUpdater(ScheduledExecutorService executor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
notifyOfAddedView(org.apache.flink.metrics.View view)
Notifies this ViewUpdater of a new metric that should be regularly updated.void
notifyOfRemovedView(org.apache.flink.metrics.View view)
Notifies this ViewUpdater of a metric that should no longer be regularly updated.
-
-
-
Constructor Detail
-
ViewUpdater
public ViewUpdater(ScheduledExecutorService executor)
-
-
Method Detail
-
notifyOfAddedView
public void notifyOfAddedView(org.apache.flink.metrics.View view)
Notifies this ViewUpdater of a new metric that should be regularly updated.- Parameters:
view
- metric that should be regularly updated
-
notifyOfRemovedView
public void notifyOfRemovedView(org.apache.flink.metrics.View view)
Notifies this ViewUpdater of a metric that should no longer be regularly updated.- Parameters:
view
- metric that should no longer be regularly updated
-
-