Class TaskIOMetricGroup
- java.lang.Object
-
- org.apache.flink.runtime.metrics.groups.ProxyMetricGroup<TaskMetricGroup>
-
- org.apache.flink.runtime.metrics.groups.TaskIOMetricGroup
-
- All Implemented Interfaces:
MetricGroup
public class TaskIOMetricGroup extends ProxyMetricGroup<TaskMetricGroup>
Metric group that contains shareable pre-defined IO-related metrics. The metrics registration is forwarded to the parent task metric group.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
TaskIOMetricGroup.SizeSupplier<R>
Supplier for sizes.
-
Field Summary
-
Fields inherited from class org.apache.flink.runtime.metrics.groups.ProxyMetricGroup
parentMetricGroup
-
-
Constructor Summary
Constructors Constructor Description TaskIOMetricGroup(TaskMetricGroup parent)
TaskIOMetricGroup(TaskMetricGroup parent, Clock clock)
-
Method Summary
-
Methods inherited from class org.apache.flink.runtime.metrics.groups.ProxyMetricGroup
addGroup, addGroup, addSpan, counter, counter, gauge, getAllVariables, getMetricIdentifier, getMetricIdentifier, getScopeComponents, histogram, meter
-
-
-
-
Constructor Detail
-
TaskIOMetricGroup
public TaskIOMetricGroup(TaskMetricGroup parent)
-
TaskIOMetricGroup
public TaskIOMetricGroup(TaskMetricGroup parent, Clock clock)
-
-
Method Detail
-
createSnapshot
public IOMetrics createSnapshot()
-
getNumBytesInCounter
public Counter getNumBytesInCounter()
-
getNumBytesOutCounter
public Counter getNumBytesOutCounter()
-
getNumRecordsInCounter
public Counter getNumRecordsInCounter()
-
getNumRecordsOutCounter
public Counter getNumRecordsOutCounter()
-
getNumBuffersOutCounter
public Counter getNumBuffersOutCounter()
-
getNumFiredTimers
public Counter getNumFiredTimers()
-
getNumMailsProcessedCounter
public Counter getNumMailsProcessedCounter()
-
getIdleTimeMsPerSecond
public TimerGauge getIdleTimeMsPerSecond()
-
getSoftBackPressuredTimePerSecond
public TimerGauge getSoftBackPressuredTimePerSecond()
-
getHardBackPressuredTimePerSecond
public TimerGauge getHardBackPressuredTimePerSecond()
-
getChangelogBusyTimeMsPerSecond
public TimerGauge getChangelogBusyTimeMsPerSecond()
-
getBackPressuredTimeMsPerSecond
public long getBackPressuredTimeMsPerSecond()
-
getAccumulatedBackPressuredTimeMs
public long getAccumulatedBackPressuredTimeMs()
-
markTaskStart
public void markTaskStart()
-
markTaskInitializationStarted
public void markTaskInitializationStarted()
-
getTaskInitializationDuration
@VisibleForTesting public long getTaskInitializationDuration()
Returns the duration of time required for a task's restoring/initialization, which reaches its maximum when the task begins running and remains constant throughout the task's running. Return 0 when the task is not in initialization/running status.
-
setEnableBusyTime
public void setEnableBusyTime(boolean enabled)
-
getMailboxThroughput
public Meter getMailboxThroughput()
-
getMailboxLatency
public Histogram getMailboxLatency()
-
registerBackPressureListener
public void registerBackPressureListener(TimerGauge.StartStopListener backPressureListener)
-
unregisterBackPressureListener
public void unregisterBackPressureListener(TimerGauge.StartStopListener backPressureListener)
-
reuseBytesInputCounter
public void reuseBytesInputCounter(Counter numBytesInCounter)
-
reuseBytesOutputCounter
public void reuseBytesOutputCounter(Counter numBytesOutCounter)
-
reuseRecordsInputCounter
public void reuseRecordsInputCounter(Counter numRecordsInCounter)
-
reuseRecordsOutputCounter
public void reuseRecordsOutputCounter(Counter numRecordsOutCounter)
-
registerResultPartitionBytesCounter
public void registerResultPartitionBytesCounter(IntermediateResultPartitionID resultPartitionId, ResultPartitionBytesCounter resultPartitionBytesCounter)
-
registerMailboxSizeSupplier
public void registerMailboxSizeSupplier(TaskIOMetricGroup.SizeSupplier<Integer> supplier)
-
-