public class DatabaseConfigRegistry extends ConfigRegistry
ConfigRegistry using a JDBC database as a persistent store for the
configuration information. Note: config objects should only be created during server
startup because they will result in synchronous requests to load up the initial configuration
data from the database. This ensures that systems initialized after the config registry can
safely make use of configuration information.ConfigRegistry.Serializer| Constructor and Description |
|---|
DatabaseConfigRegistry(PersistenceContext ctx,
Invoker invoker)
Creates a configuration registry and prepares it for operation.
|
DatabaseConfigRegistry(PersistenceContext ctx,
Invoker invoker,
boolean transitioning)
Creates a configuration registry and prepares it for operation.
|
DatabaseConfigRegistry(PersistenceContext ctx,
Invoker invoker,
String node)
Creates a configuration registry and prepares it for operation.
|
DatabaseConfigRegistry(PersistenceContext ctx,
Invoker invoker,
String node,
boolean transitioning)
Creates a configuration registry and prepares it for operation.
|
getKeys, getObject, registerObject, setSerializer@Inject public DatabaseConfigRegistry(PersistenceContext ctx, Invoker invoker)
ctx - will provide access to our database.invoker - this will be used to perform all database activity (except first time
initialization) so as to avoid blocking the distributed object thread.public DatabaseConfigRegistry(PersistenceContext ctx, Invoker invoker, boolean transitioning)
ctx - will provide access to our database.invoker - this will be used to perform all database activity (except first time
initialization) so as to avoid blocking the distributed object thread.transitioning - if the values in the database need to be transitioned to a new formatpublic DatabaseConfigRegistry(PersistenceContext ctx, Invoker invoker, String node)
ctx - will provide access to our database.invoker - this will be used to perform all database activity (except first time
initialization) so as to avoid blocking the distributed object thread.node - if this config registry is accessed by multiple servers which wish to maintain
separate configs, then specify a node for each serverpublic DatabaseConfigRegistry(PersistenceContext ctx, Invoker invoker, String node, boolean transitioning)
ctx - will provide access to our database.invoker - this will be used to perform all database activity (except first time
initialization) so as to avoid blocking the distributed object thread.node - if this config registry is accessed by multiple servers which wish to maintain
separate configs, then specify a node for each servertransitioning - if the values in the database need to be transitioned to a new formatCopyright © 2015. All rights reserved.