The standalone ecChronos can be configured through the file conf/ecc.yml
.
In order to use custom connection providers in the standalone version of ecChronos there are a few things that needs to be considered.
- There must be a default constructor that takes
Config
andSupplier
as an argument. - The native connection provider must use
DataCenterAwarePolicy
which is located in theconnection
module.
The provided configuration argument is read from the file ecc.yml
so that custom connection providers could use the same configuration file if needed.
Examples of implementations can be found in:
- DefaultNativeConnectionProvider
- Which uses LocalNativeConnectionProvider
- DefaultJmxConnectionProvider
- Which uses LocalJmxConnectionProvider
- NoopStatementDecorator
In order to use the custom connection providers simply drop in the jar file in the lib
directory of ecChronos and specify the full class name of the respective connection providers.