Class RegistrySpecListener
java.lang.Object
org.apache.dubbo.metrics.registry.event.RegistrySpecListener
Different from the general-purpose listener constructor
MetricsApplicationListener ,
it provides registry custom listeners-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRgs(MetricsEvent event) Get the number of multiple registriesstatic StringgetServiceKey(MetricsEvent event) static intgetSize(MetricsEvent event) Get the exposed number of the protocolstatic AbstractMetricsKeyListeneronError(MetricsKey metricsKey, CombMetricsCollector<?> collector) static AbstractMetricsKeyListeneronErrorOfService(MetricsKey metricsKey, MetricsPlaceValue placeType, CombMetricsCollector<?> collector) static AbstractMetricsKeyListeneronFinish(MetricsKey metricsKey, CombMetricsCollector<?> collector) static AbstractMetricsKeyListeneronFinishOfNotify(MetricsKey metricsKey, MetricsPlaceValue placeType, CombMetricsCollector<?> collector) Every time an event is triggered, multiple serviceKey related to notify are incrementstatic AbstractMetricsKeyListeneronFinishOfService(MetricsKey metricsKey, MetricsPlaceValue placeType, CombMetricsCollector<?> collector) static AbstractMetricsKeyListeneronPost(MetricsKey metricsKey, CombMetricsCollector<?> collector) Perform auto-increment on the monitored key, Can use a custom listener instead of this generic operationstatic AbstractMetricsKeyListeneronPostOfDirectory(MetricsKey metricsKey, CombMetricsCollector<?> collector) Every time an event is triggered, multiple fixed key related to directory are increment, which has nothing to do with the monitored keystatic AbstractMetricsKeyListeneronPostOfService(MetricsKey metricsKey, MetricsPlaceValue placeType, CombMetricsCollector<?> collector)
-
Constructor Details
-
RegistrySpecListener
public RegistrySpecListener()
-
-
Method Details
-
onPost
public static AbstractMetricsKeyListener onPost(MetricsKey metricsKey, CombMetricsCollector<?> collector) Perform auto-increment on the monitored key, Can use a custom listener instead of this generic operation -
onFinish
public static AbstractMetricsKeyListener onFinish(MetricsKey metricsKey, CombMetricsCollector<?> collector) -
onError
public static AbstractMetricsKeyListener onError(MetricsKey metricsKey, CombMetricsCollector<?> collector) -
onPostOfService
public static AbstractMetricsKeyListener onPostOfService(MetricsKey metricsKey, MetricsPlaceValue placeType, CombMetricsCollector<?> collector) -
onFinishOfService
public static AbstractMetricsKeyListener onFinishOfService(MetricsKey metricsKey, MetricsPlaceValue placeType, CombMetricsCollector<?> collector) -
onErrorOfService
public static AbstractMetricsKeyListener onErrorOfService(MetricsKey metricsKey, MetricsPlaceValue placeType, CombMetricsCollector<?> collector) -
onFinishOfNotify
public static AbstractMetricsKeyListener onFinishOfNotify(MetricsKey metricsKey, MetricsPlaceValue placeType, CombMetricsCollector<?> collector) Every time an event is triggered, multiple serviceKey related to notify are increment -
onPostOfDirectory
public static AbstractMetricsKeyListener onPostOfDirectory(MetricsKey metricsKey, CombMetricsCollector<?> collector) Every time an event is triggered, multiple fixed key related to directory are increment, which has nothing to do with the monitored key -
getRgs
Get the number of multiple registries -
getSize
Get the exposed number of the protocol -
getServiceKey
-