ExecutorMetricType¶
ExecutorMetricType is an abstraction of executor metric types.
Contract¶
Metric Values¶
getMetricValues(
memoryManager: MemoryManager): Array[Long]
Used when:
ExecutorMetricsutility is used for the current metric values
Metric Names¶
names: Seq[String]
Used when:
ExecutorMetricTypeutility is used for the metricToOffset and number of metrics
Implementations¶
Sealed Trait
ExecutorMetricType is a Scala sealed trait which means that all of the implementations are in the same compilation unit (a single file).
Learn more in the Scala Language Specification.
GarbageCollectionMetricsProcessTreeMetricsSingleValueExecutorMetricTypeJVMHeapMemoryJVMOffHeapMemoryMBeanExecutorMetricTypeDirectPoolMemoryMappedPoolMemoryMemoryManagerExecutorMetricTypeOffHeapExecutionMemoryOffHeapStorageMemoryOffHeapUnifiedMemoryOnHeapExecutionMemoryOnHeapStorageMemoryOnHeapUnifiedMemory
Executor Metric Getters (Ordered ExecutorMetricTypes)¶
ExecutorMetricType defines an ordered collection of ExecutorMetricTypes:
JVMHeapMemoryJVMOffHeapMemoryOnHeapExecutionMemoryOffHeapExecutionMemoryOnHeapStorageMemoryOffHeapStorageMemoryOnHeapUnifiedMemoryOffHeapUnifiedMemoryDirectPoolMemoryMappedPoolMemoryProcessTreeMetricsGarbageCollectionMetrics
This ordering allows for passing metric values as arrays (to save space) with indices being a metric of a metric type.
metricGetters is used when:
ExecutorMetricsutility is used for the current metric valuesExecutorMetricTypeutility is used to get the metricToOffset and the numMetrics