org.apache.hadoop.metrics2.MetricsSourceDispatcherEventMetricsImpl, DispatcherEventMetricsNoOpspublic interface DispatcherEventMetrics
extends org.apache.hadoop.metrics2.MetricsSource
Dispatcher
can be used to publish Event related metrics| Modifier and Type | Method | Description |
|---|---|---|
void |
addEvent(java.lang.Object type) |
Call if Event added for dispatching
|
void |
init(java.lang.Class<? extends java.lang.Enum> typeClass) |
Class of the event type what can be handled by the DispatcherEventMetrics
|
void |
removeEvent(java.lang.Object type) |
Call if Event handled
|
void |
updateRate(java.lang.Object type,
long millisecond) |
Call with how much time was required to handle the event
|
void init(java.lang.Class<? extends java.lang.Enum> typeClass)
typeClass - the event typevoid addEvent(java.lang.Object type)
type - type of the eventvoid removeEvent(java.lang.Object type)
type - type of the eventvoid updateRate(java.lang.Object type,
long millisecond)
type - type of the eventmillisecond - time intervalCopyright © 2008–2025 Apache Software Foundation. All rights reserved.