public final class DataSystemConfiguration
extends java.lang.Object
Applications should use DataSystemBuilder or
DataSystemModes to create instances of this class,
rather than calling the constructor directly.
| Modifier and Type | Class and Description |
|---|---|
static class |
DataSystemConfiguration.DataStoreMode
The persistent data store mode.
|
| Constructor and Description |
|---|
DataSystemConfiguration(com.google.common.collect.ImmutableList<DataSourceBuilder<Initializer>> initializers,
com.google.common.collect.ImmutableList<DataSourceBuilder<Synchronizer>> synchronizers,
ComponentConfigurer<DataSource> fDv1FallbackSynchronizer,
ComponentConfigurer<DataStore> persistentStore,
DataSystemConfiguration.DataStoreMode persistentDataStoreMode)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
ComponentConfigurer<DataSource> |
getFDv1FallbackSynchronizer()
A synchronizer to fall back to when FDv1 fallback has been requested.
|
com.google.common.collect.ImmutableList<DataSourceBuilder<Initializer>> |
getInitializers()
A list of factories for creating initializers for initialization.
|
DataSystemConfiguration.DataStoreMode |
getPersistentDataStoreMode()
The mode of operation for the persistent data store.
|
ComponentConfigurer<DataStore> |
getPersistentStore()
An optional factory for creating a persistent data store.
|
com.google.common.collect.ImmutableList<DataSourceBuilder<Synchronizer>> |
getSynchronizers()
A list of factories for creating synchronizers for synchronization.
|
public DataSystemConfiguration(com.google.common.collect.ImmutableList<DataSourceBuilder<Initializer>> initializers, com.google.common.collect.ImmutableList<DataSourceBuilder<Synchronizer>> synchronizers, ComponentConfigurer<DataSource> fDv1FallbackSynchronizer, ComponentConfigurer<DataStore> persistentStore, DataSystemConfiguration.DataStoreMode persistentDataStoreMode)
This constructor is internal and should not be called by application code.
initializers - see getInitializers()synchronizers - see getSynchronizers()fDv1FallbackSynchronizer - see getFDv1FallbackSynchronizer()persistentStore - see getPersistentStore()persistentDataStoreMode - see getPersistentDataStoreMode()public com.google.common.collect.ImmutableList<DataSourceBuilder<Initializer>> getInitializers()
public com.google.common.collect.ImmutableList<DataSourceBuilder<Synchronizer>> getSynchronizers()
public ComponentConfigurer<DataSource> getFDv1FallbackSynchronizer()
public ComponentConfigurer<DataStore> getPersistentStore()
The persistent store itself will implement PersistentDataStore, but we expect that to be wrapped by a factory which can
operate at the DataStore level.
public DataSystemConfiguration.DataStoreMode getPersistentDataStoreMode()