Motivation:
Configuring user-defined plugins is currently difficult because there is no way to configure their properties via dogma.json.
Modifications:
Added PluginConfig interface that represents a configuration of a plugin.
Added pluginConfigs to CentralDogmaConfig that accepts a list of PluginConfig.
Users can now configure each plugin using PluginConfig.
Moved mirroring plugin properties from CentralDogmaConfig to MirroringServicePluginConfig.
Compatibility was not maintained as few users are running the Central Dogma server, and they can be guided directly. Let me know if a different approach is preferred.
Result:
Users can now specify plugin configurations in the plugins property.
(Breaking changes) mirroringEnabled, numMirroringThreads, maxNumFilesPerMirror, and maxNumBytesPerMirror have been removed from CentralDogmaBuilder and CentralDogmaConfig.
These properties should now be specified in the plugins property:
Motivation: Configuring user-defined plugins is currently difficult because there is no way to configure their properties via
dogma.json
.Modifications:
PluginConfig
interface that represents a configuration of a plugin.pluginConfigs
toCentralDogmaConfig
that accepts a list ofPluginConfig
.PluginConfig
.CentralDogmaConfig
toMirroringServicePluginConfig
.Result:
plugins
property.mirroringEnabled
,numMirroringThreads
,maxNumFilesPerMirror
, andmaxNumBytesPerMirror
have been removed fromCentralDogmaBuilder
andCentralDogmaConfig
.