Search in sources :

Example 1 with MongoInternalConnectionSendAndReceiveAsync4MetricInterceptor

use of com.megaease.easeagent.plugin.mongodb.interceptor.MongoInternalConnectionSendAndReceiveAsync4MetricInterceptor in project easeagent by megaease.

the class MongoReactiveMetricTest method before.

@Before
public void before() {
    super.before();
    interceptor = new MongoInternalConnectionSendAndReceiveAsync4MetricInterceptor();
    initMetricInterceptor = new MongoReactiveInitMetricInterceptor();
    initMetricInterceptor.init(config, "", "", "");
    listener = new MongoMetricCommandListener(this.config, initMetricInterceptor.getMongoMetric());
}
Also used : MongoInternalConnectionSendAndReceiveAsync4MetricInterceptor(com.megaease.easeagent.plugin.mongodb.interceptor.MongoInternalConnectionSendAndReceiveAsync4MetricInterceptor) MongoMetricCommandListener(com.megaease.easeagent.plugin.mongodb.interceptor.listener.MongoMetricCommandListener) MongoReactiveInitMetricInterceptor(com.megaease.easeagent.plugin.mongodb.interceptor.MongoReactiveInitMetricInterceptor) Before(org.junit.Before)

Aggregations

MongoInternalConnectionSendAndReceiveAsync4MetricInterceptor (com.megaease.easeagent.plugin.mongodb.interceptor.MongoInternalConnectionSendAndReceiveAsync4MetricInterceptor)1 MongoReactiveInitMetricInterceptor (com.megaease.easeagent.plugin.mongodb.interceptor.MongoReactiveInitMetricInterceptor)1 MongoMetricCommandListener (com.megaease.easeagent.plugin.mongodb.interceptor.listener.MongoMetricCommandListener)1 Before (org.junit.Before)1