public class MongoDBOperationExecutorInstrumentation extends ClassInstanceMethodsEnhancePluginDefine
com.mongodb.client.internal.OperationExecutor which is unified entrance of execute mongo command.
so we can intercept com.mongodb.client.internal.OperationExecutor#execute(...) method
to known which command will be execute.
support: 3.7.x
MongoDBOperationExecutorInterceptorCONTEXT_ATTR_NAME| Constructor and Description |
|---|
MongoDBOperationExecutorInstrumentation() |
| Modifier and Type | Method and Description |
|---|---|
protected ClassMatch |
enhanceClass() |
ConstructorInterceptPoint[] |
getConstructorsInterceptPoints() |
InstanceMethodsInterceptPoint[] |
getInstanceMethodsInterceptPoints() |
protected String[] |
witnessClasses() |
getStaticMethodsInterceptPointsenhancedefine, isBootstrapInstrumentationpublic MongoDBOperationExecutorInstrumentation()
protected String[] witnessClasses()
witnessClasses in class AbstractClassEnhancePluginDefineprotected ClassMatch enhanceClass()
enhanceClass in class AbstractClassEnhancePluginDefinepublic ConstructorInterceptPoint[] getConstructorsInterceptPoints()
getConstructorsInterceptPoints in class AbstractClassEnhancePluginDefinepublic InstanceMethodsInterceptPoint[] getInstanceMethodsInterceptPoints()
getInstanceMethodsInterceptPoints in class AbstractClassEnhancePluginDefineCopyright © 2019 The Apache Software Foundation. All rights reserved.