Class MetricsServiceListener
java.lang.Object
org.apache.dubbo.metrics.listener.AbstractMetricsListener<TimeCounterEvent>
org.apache.dubbo.metrics.listener.AbstractMetricsKeyListener
org.apache.dubbo.metrics.listener.MetricsServiceListener
- All Implemented Interfaces:
MetricsLifeListener<TimeCounterEvent>,MetricsListener<TimeCounterEvent>
Service-level listener type, in most cases, can use the static method
to produce an anonymous listener for general monitoring.
Similar to App-level
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AbstractMetricsKeyListeneronErrorEventBuild(MetricsKey metricsKey, MetricsPlaceValue placeType, ServiceMetricsCollector<TimeCounterEvent> collector) static AbstractMetricsKeyListeneronFinishEventBuild(MetricsKey metricsKey, MetricsPlaceValue placeType, ServiceMetricsCollector<TimeCounterEvent> collector) static AbstractMetricsKeyListeneronPostEventBuild(MetricsKey metricsKey, MetricsPlaceValue placeType, ServiceMetricsCollector<TimeCounterEvent> collector) Methods inherited from class org.apache.dubbo.metrics.listener.AbstractMetricsKeyListener
isSupport, onError, onEvent, onEvent, onFinishMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.dubbo.metrics.listener.MetricsLifeListener
onEventError, onEventFinish
-
Constructor Details
-
MetricsServiceListener
-
-
Method Details
-
onPostEventBuild
public static AbstractMetricsKeyListener onPostEventBuild(MetricsKey metricsKey, MetricsPlaceValue placeType, ServiceMetricsCollector<TimeCounterEvent> collector) -
onFinishEventBuild
public static AbstractMetricsKeyListener onFinishEventBuild(MetricsKey metricsKey, MetricsPlaceValue placeType, ServiceMetricsCollector<TimeCounterEvent> collector) -
onErrorEventBuild
public static AbstractMetricsKeyListener onErrorEventBuild(MetricsKey metricsKey, MetricsPlaceValue placeType, ServiceMetricsCollector<TimeCounterEvent> collector)
-