public class RequestEvent extends TimeCounterEvent
MetricsEvent.Type| Constructor and Description |
|---|
RequestEvent(org.apache.dubbo.rpc.model.ApplicationModel applicationModel,
String appName,
MetricsDispatcher metricsDispatcher,
DefaultMetricsCollector collector,
TypeWrapper TYPE_WRAPPER) |
| Modifier and Type | Method and Description |
|---|---|
void |
customAfterPost(Object postResult) |
boolean |
isRequestErrorEvent() |
static RequestEvent |
toRequestErrorEvent(org.apache.dubbo.rpc.model.ApplicationModel applicationModel,
String appName,
MetricsDispatcher metricsDispatcher,
org.apache.dubbo.rpc.Invocation invocation,
String side,
int code)
Acts on MetricsClusterFilter to monitor exceptions that occur before request execution
|
static RequestEvent |
toRequestEvent(org.apache.dubbo.rpc.model.ApplicationModel applicationModel,
String appName,
MetricsDispatcher metricsDispatcher,
DefaultMetricsCollector collector,
org.apache.dubbo.rpc.Invocation invocation,
String side) |
getTimePairappName, getAttachments, getAttachmentValue, getMetricsDispatcher, getSource, getTypeWrapper, isAssignableFrom, isAvailable, putAttachment, putAttachments, setAvailable, toStringpublic RequestEvent(org.apache.dubbo.rpc.model.ApplicationModel applicationModel,
String appName,
MetricsDispatcher metricsDispatcher,
DefaultMetricsCollector collector,
TypeWrapper TYPE_WRAPPER)
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)
public void customAfterPost(Object postResult)
customAfterPost in class MetricsEventpublic static RequestEvent toRequestErrorEvent(org.apache.dubbo.rpc.model.ApplicationModel applicationModel, String appName, MetricsDispatcher metricsDispatcher, org.apache.dubbo.rpc.Invocation invocation, String side, int code)
public boolean isRequestErrorEvent()
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.