Package org.apache.dubbo.metrics.event
Class RequestEvent
java.lang.Object
org.apache.dubbo.metrics.event.MetricsEvent
org.apache.dubbo.metrics.event.TimeCounterEvent
org.apache.dubbo.metrics.event.RequestEvent
Request related events
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.dubbo.metrics.event.MetricsEvent
MetricsEvent.Type -
Constructor Summary
ConstructorsConstructorDescriptionRequestEvent(org.apache.dubbo.rpc.model.ApplicationModel applicationModel, String appName, MetricsDispatcher metricsDispatcher, DefaultMetricsCollector collector, TypeWrapper TYPE_WRAPPER) -
Method Summary
Modifier and TypeMethodDescriptionvoidcustomAfterPost(Object postResult) booleanstatic RequestEventtoRequestErrorEvent(org.apache.dubbo.rpc.model.ApplicationModel applicationModel, String appName, MetricsDispatcher metricsDispatcher, org.apache.dubbo.rpc.Invocation invocation, String side, int code, boolean serviceLevel) Acts on MetricsClusterFilter to monitor exceptions that occur before request executionstatic RequestEventtoRequestEvent(org.apache.dubbo.rpc.model.ApplicationModel applicationModel, String appName, MetricsDispatcher metricsDispatcher, DefaultMetricsCollector collector, org.apache.dubbo.rpc.Invocation invocation, String side, boolean serviceLevel) Methods inherited from class org.apache.dubbo.metrics.event.TimeCounterEvent
getTimePairMethods inherited from class org.apache.dubbo.metrics.event.MetricsEvent
appName, getAttachments, getAttachmentValue, getMetricsEventMulticaster, getSource, getTypeWrapper, isAssignableFrom, isAvailable, putAttachment, putAttachments, setAvailable, toString
-
Constructor Details
-
RequestEvent
public RequestEvent(org.apache.dubbo.rpc.model.ApplicationModel applicationModel, String appName, MetricsDispatcher metricsDispatcher, DefaultMetricsCollector collector, TypeWrapper TYPE_WRAPPER)
-
-
Method Details
-
toRequestEvent
public static RequestEvent toRequestEvent(org.apache.dubbo.rpc.model.ApplicationModel applicationModel, String appName, MetricsDispatcher metricsDispatcher, DefaultMetricsCollector collector, org.apache.dubbo.rpc.Invocation invocation, String side, boolean serviceLevel) -
customAfterPost
- Overrides:
customAfterPostin classMetricsEvent
-
toRequestErrorEvent
public static RequestEvent toRequestErrorEvent(org.apache.dubbo.rpc.model.ApplicationModel applicationModel, String appName, MetricsDispatcher metricsDispatcher, org.apache.dubbo.rpc.Invocation invocation, String side, int code, boolean serviceLevel) Acts on MetricsClusterFilter to monitor exceptions that occur before request execution -
isRequestErrorEvent
public boolean isRequestErrorEvent()
-