ExecutorMetricType¶
ExecutorMetricType
is an abstraction of executor metric types.
Contract¶
Metric Values¶
getMetricValues(
memoryManager: MemoryManager): Array[Long]
Used when:
ExecutorMetrics
utility is used for the current metric values
Metric Names¶
names: Seq[String]
Used when:
ExecutorMetricType
utility 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.
GarbageCollectionMetrics
ProcessTreeMetrics
SingleValueExecutorMetricType
JVMHeapMemory
JVMOffHeapMemory
MBeanExecutorMetricType
DirectPoolMemory
MappedPoolMemory
MemoryManagerExecutorMetricType
OffHeapExecutionMemory
OffHeapStorageMemory
OffHeapUnifiedMemory
OnHeapExecutionMemory
OnHeapStorageMemory
OnHeapUnifiedMemory
Executor Metric Getters (Ordered ExecutorMetricTypes)¶
ExecutorMetricType
defines an ordered collection of ExecutorMetricTypes:
JVMHeapMemory
JVMOffHeapMemory
OnHeapExecutionMemory
OffHeapExecutionMemory
OnHeapStorageMemory
OffHeapStorageMemory
OnHeapUnifiedMemory
OffHeapUnifiedMemory
DirectPoolMemory
MappedPoolMemory
ProcessTreeMetrics
GarbageCollectionMetrics
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:
ExecutorMetrics
utility is used for the current metric valuesExecutorMetricType
utility is used to get the metricToOffset and the numMetrics