Class DatastoreContext
- java.lang.Object
-
- org.opendaylight.controller.cluster.datastore.DatastoreContext
-
- All Implemented Interfaces:
org.opendaylight.controller.cluster.access.client.ClientActorConfig
public class DatastoreContext extends Object implements org.opendaylight.controller.cluster.access.client.ClientActorConfig
Contains contextual data for a data store.- Author:
- Thomas Pantelis
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDatastoreContext.Builder
-
Field Summary
-
Method Summary
-
-
-
Field Detail
-
METRICS_DOMAIN
public static final String METRICS_DOMAIN
- See Also:
- Constant Field Values
-
DEFAULT_SHARD_TRANSACTION_IDLE_TIMEOUT
public static final scala.concurrent.duration.FiniteDuration DEFAULT_SHARD_TRANSACTION_IDLE_TIMEOUT
-
DEFAULT_OPERATION_TIMEOUT_IN_MS
public static final int DEFAULT_OPERATION_TIMEOUT_IN_MS
- See Also:
- Constant Field Values
-
DEFAULT_SHARD_TX_COMMIT_TIMEOUT_IN_SECONDS
public static final int DEFAULT_SHARD_TX_COMMIT_TIMEOUT_IN_SECONDS
- See Also:
- Constant Field Values
-
DEFAULT_JOURNAL_RECOVERY_BATCH_SIZE
public static final int DEFAULT_JOURNAL_RECOVERY_BATCH_SIZE
- See Also:
- Constant Field Values
-
DEFAULT_SNAPSHOT_BATCH_COUNT
public static final int DEFAULT_SNAPSHOT_BATCH_COUNT
- See Also:
- Constant Field Values
-
DEFAULT_RECOVERY_SNAPSHOT_INTERVAL_SECONDS
public static final int DEFAULT_RECOVERY_SNAPSHOT_INTERVAL_SECONDS
- See Also:
- Constant Field Values
-
DEFAULT_HEARTBEAT_INTERVAL_IN_MILLIS
public static final int DEFAULT_HEARTBEAT_INTERVAL_IN_MILLIS
- See Also:
- Constant Field Values
-
DEFAULT_ISOLATED_LEADER_CHECK_INTERVAL_IN_MILLIS
public static final int DEFAULT_ISOLATED_LEADER_CHECK_INTERVAL_IN_MILLIS
- See Also:
- Constant Field Values
-
DEFAULT_SHARD_TX_COMMIT_QUEUE_CAPACITY
public static final int DEFAULT_SHARD_TX_COMMIT_QUEUE_CAPACITY
- See Also:
- Constant Field Values
-
DEFAULT_SHARD_INITIALIZATION_TIMEOUT
public static final akka.util.Timeout DEFAULT_SHARD_INITIALIZATION_TIMEOUT
-
DEFAULT_SHARD_LEADER_ELECTION_TIMEOUT
public static final akka.util.Timeout DEFAULT_SHARD_LEADER_ELECTION_TIMEOUT
-
DEFAULT_INITIAL_SETTLE_TIMEOUT_MULTIPLIER
public static final int DEFAULT_INITIAL_SETTLE_TIMEOUT_MULTIPLIER
- See Also:
- Constant Field Values
-
DEFAULT_PERSISTENT
public static final boolean DEFAULT_PERSISTENT
- See Also:
- Constant Field Values
-
DEFAULT_SNAPSHOT_ON_ROOT_OVERWRITE
public static final boolean DEFAULT_SNAPSHOT_ON_ROOT_OVERWRITE
- See Also:
- Constant Field Values
-
DEFAULT_CONFIGURATION_READER
public static final org.opendaylight.controller.cluster.common.actor.FileAkkaConfigurationReader DEFAULT_CONFIGURATION_READER
-
DEFAULT_SHARD_SNAPSHOT_DATA_THRESHOLD_PERCENTAGE
public static final int DEFAULT_SHARD_SNAPSHOT_DATA_THRESHOLD_PERCENTAGE
- See Also:
- Constant Field Values
-
DEFAULT_SHARD_ELECTION_TIMEOUT_FACTOR
public static final int DEFAULT_SHARD_ELECTION_TIMEOUT_FACTOR
- See Also:
- Constant Field Values
-
DEFAULT_SHARD_CANDIDATE_ELECTION_TIMEOUT_DIVISOR
public static final int DEFAULT_SHARD_CANDIDATE_ELECTION_TIMEOUT_DIVISOR
- See Also:
- Constant Field Values
-
DEFAULT_TX_CREATION_INITIAL_RATE_LIMIT
public static final int DEFAULT_TX_CREATION_INITIAL_RATE_LIMIT
- See Also:
- Constant Field Values
-
UNKNOWN_DATA_STORE_TYPE
public static final String UNKNOWN_DATA_STORE_TYPE
- See Also:
- Constant Field Values
-
DEFAULT_SHARD_BATCHED_MODIFICATION_COUNT
public static final int DEFAULT_SHARD_BATCHED_MODIFICATION_COUNT
- See Also:
- Constant Field Values
-
DEFAULT_SHARD_COMMIT_QUEUE_EXPIRY_TIMEOUT_IN_MS
public static final long DEFAULT_SHARD_COMMIT_QUEUE_EXPIRY_TIMEOUT_IN_MS
-
DEFAULT_MAX_MESSAGE_SLICE_SIZE
public static final int DEFAULT_MAX_MESSAGE_SLICE_SIZE
- See Also:
- Constant Field Values
-
DEFAULT_INITIAL_PAYLOAD_SERIALIZED_BUFFER_CAPACITY
public static final int DEFAULT_INITIAL_PAYLOAD_SERIALIZED_BUFFER_CAPACITY
- See Also:
- Constant Field Values
-
DEFAULT_SYNC_INDEX_THRESHOLD
public static final long DEFAULT_SYNC_INDEX_THRESHOLD
- See Also:
- Constant Field Values
-
-
Method Detail
-
newBuilder
public static DatastoreContext.Builder newBuilder()
-
newBuilderFrom
public static DatastoreContext.Builder newBuilderFrom(DatastoreContext context)
-
getDataStoreProperties
public org.opendaylight.mdsal.dom.store.inmemory.InMemoryDOMDataStoreConfigProperties getDataStoreProperties()
-
getShardTransactionIdleTimeout
public scala.concurrent.duration.FiniteDuration getShardTransactionIdleTimeout()
-
getDataStoreMXBeanType
public String getDataStoreMXBeanType()
-
getOperationTimeoutInMillis
public long getOperationTimeoutInMillis()
-
getShardRaftConfig
public org.opendaylight.controller.cluster.raft.ConfigParams getShardRaftConfig()
-
getShardTransactionCommitTimeoutInSeconds
public int getShardTransactionCommitTimeoutInSeconds()
-
getShardTransactionCommitQueueCapacity
public int getShardTransactionCommitQueueCapacity()
-
getShardInitializationTimeout
public akka.util.Timeout getShardInitializationTimeout()
-
getShardLeaderElectionTimeout
public akka.util.Timeout getShardLeaderElectionTimeout()
-
getInitialSettleTimeoutMultiplier
public int getInitialSettleTimeoutMultiplier()
Return the multiplier ofgetShardLeaderElectionTimeout()which the frontend will wait for all shards on the local node to settle.- Returns:
- Non-negative multiplier. Value of
0indicates to wait indefinitely.
-
isPersistent
public boolean isPersistent()
-
isSnapshotOnRootOverwrite
public boolean isSnapshotOnRootOverwrite()
-
getConfigurationReader
public org.opendaylight.controller.cluster.common.actor.AkkaConfigurationReader getConfigurationReader()
-
getShardElectionTimeoutFactor
public long getShardElectionTimeoutFactor()
-
getDataStoreName
public String getDataStoreName()
-
getLogicalStoreType
public org.opendaylight.mdsal.common.api.LogicalDatastoreType getLogicalStoreType()
-
getStoreRoot
public org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier getStoreRoot()
-
getTransactionCreationInitialRateLimit
public long getTransactionCreationInitialRateLimit()
-
getShardManagerPersistenceId
public String getShardManagerPersistenceId()
-
getTempFileDirectory
public String getTempFileDirectory()
- Specified by:
getTempFileDirectoryin interfaceorg.opendaylight.controller.cluster.access.client.ClientActorConfig
-
getFileBackedStreamingThreshold
public int getFileBackedStreamingThreshold()
- Specified by:
getFileBackedStreamingThresholdin interfaceorg.opendaylight.controller.cluster.access.client.ClientActorConfig
-
getShardBatchedModificationCount
public int getShardBatchedModificationCount()
-
isWriteOnlyTransactionOptimizationsEnabled
public boolean isWriteOnlyTransactionOptimizationsEnabled()
-
getShardCommitQueueExpiryTimeoutInMillis
public long getShardCommitQueueExpiryTimeoutInMillis()
-
isTransactionDebugContextEnabled
public boolean isTransactionDebugContextEnabled()
-
isUseTellBasedProtocol
public boolean isUseTellBasedProtocol()
-
getMaximumMessageSliceSize
public int getMaximumMessageSliceSize()
- Specified by:
getMaximumMessageSliceSizein interfaceorg.opendaylight.controller.cluster.access.client.ClientActorConfig
-
getBackendAlivenessTimerInterval
public long getBackendAlivenessTimerInterval()
- Specified by:
getBackendAlivenessTimerIntervalin interfaceorg.opendaylight.controller.cluster.access.client.ClientActorConfig
-
getRequestTimeout
public long getRequestTimeout()
- Specified by:
getRequestTimeoutin interfaceorg.opendaylight.controller.cluster.access.client.ClientActorConfig
-
getNoProgressTimeout
public long getNoProgressTimeout()
- Specified by:
getNoProgressTimeoutin interfaceorg.opendaylight.controller.cluster.access.client.ClientActorConfig
-
getInitialPayloadSerializedBufferCapacity
public int getInitialPayloadSerializedBufferCapacity()
-
-