Replies: 2 comments 21 replies
-
|
I can get your idea. Basically, I think it should be good. But there are questions. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Yes , |
Beta Was this translation helpful? Give feedback.
21 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi , team
Currently , if we want to add a dynamic config for OAP , we need to create class which extends
ConfigChangeWatcher, and add it to ModuleConfig as field , just like:And we have to set
cacheWriteLatencyThresholdsAndWatcheron module prepare stage , register this watcher throughregisterConfigChangeWatcheron module start stage .This is initial idea about simplifying watcher in module config .
Declare interface in
library-module, this interface is responsible for transforming property value to an object :ModuleConfigurationProcessorshould be defined inModuleDefineas field , and would be invoked in methodModuleDefine#copyPropertiesProvide a annotation , such as
WatcherBinderinconfiguration-apimodule . The annotation could marked on field which type isConfigChangeWatchersubclassProvide a implementation of
ModuleConfigurationProcessorinconfiguration-apimodule and set the processor to everyModuleDefinewhen config module start ,In the end ,
ModuleConfigurationProcessorcould transform propertyValue to a Watcher object according annotationWatcherBindermarked on the targetField , also collect these watchers for registeringBeta Was this translation helpful? Give feedback.
All reactions