public class DefaultConfigParamsImpl extends Object implements ConfigParams
| Modifier and Type | Field and Description |
|---|---|
static scala.concurrent.duration.FiniteDuration |
HEART_BEAT_INTERVAL
The interval at which a heart beat message will be sent to the remote
RaftActor.
|
MEGABYTE| Constructor and Description |
|---|
DefaultConfigParamsImpl() |
| Modifier and Type | Method and Description |
|---|---|
long |
getCandidateElectionTimeoutDivisor()
Returns the number by which a candidate should divide the election timeout it has calculated.
|
String |
getCustomRaftPolicyImplementationClass()
Returns the custom RaftPolicy class name.
|
long |
getElectionTimeoutFactor()
Returns the multiplication factor to be used to determine the shard election timeout.
|
scala.concurrent.duration.FiniteDuration |
getElectionTimeOutInterval()
Returns the interval after which a new election should be triggered if no leader is available.
|
int |
getElectionTimeVariance()
Returns the maximum election time variance.
|
int |
getFileBackedStreamingThreshold()
Returns the threshold in terms of number of bytes when streaming data before it should switch from storing in
memory to buffering to a file.
|
scala.concurrent.duration.FiniteDuration |
getHeartBeatInterval()
Returns the interval at which a heart beat message should be sent to remote followers.
|
long |
getIsolatedCheckIntervalInMillis()
Returns the interval in which the leader needs to check if its isolated.
|
int |
getJournalRecoveryLogBatchSize()
Returns the maximum number of journal log entries to batch on recovery before applying.
|
PeerAddressResolver |
getPeerAddressResolver()
Returns the PeerAddressResolver.
|
RaftPolicy |
getRaftPolicy()
Returns the RaftPolicy used to determine certain Raft behaviors.
|
long |
getSnapshotBatchCount()
Returns the minimum number of entries to be present in the in-memory Raft log for a snapshot to be taken.
|
int |
getSnapshotChunkSize()
Returns the maximum size (in bytes) for the snapshot chunk sent from a Leader.
|
int |
getSnapshotDataThresholdPercentage()
Returns the percentage of total memory used in the in-memory Raft log before a snapshot should be taken.
|
long |
getSyncIndexThreshold()
Returns the threshold in terms of number journal entries that we can lag behind a leader until we raise a
'not synced' transition.
|
String |
getTempFileDirectory()
Returns the directory in which to create temp files.
|
void |
setCandidateElectionTimeoutDivisor(long candidateElectionTimeoutDivisor) |
void |
setCustomRaftPolicyImplementationClass(String customRaftPolicyImplementationClass) |
void |
setElectionTimeoutFactor(long electionTimeoutFactor) |
void |
setFileBackedStreamingThreshold(int fileBackedStreamingThreshold) |
void |
setHeartBeatInterval(scala.concurrent.duration.FiniteDuration heartBeatInterval) |
void |
setIsolatedLeaderCheckInterval(scala.concurrent.duration.FiniteDuration isolatedLeaderCheckInterval) |
void |
setJournalRecoveryLogBatchSize(int journalRecoveryLogBatchSize) |
void |
setPeerAddressResolver(@NonNull PeerAddressResolver peerAddressResolver) |
void |
setSnapshotBatchCount(long snapshotBatchCount) |
void |
setSnapshotChunkSize(int snapshotChunkSize) |
void |
setSnapshotDataThresholdPercentage(int snapshotDataThresholdPercentage) |
void |
setSyncIndexThreshold(long syncIndexThreshold) |
void |
setTempFileDirectory(String tempFileDirectory) |
public static final scala.concurrent.duration.FiniteDuration HEART_BEAT_INTERVAL
Since this is set to 100 milliseconds the Election timeout should be at least 200 milliseconds
public void setHeartBeatInterval(scala.concurrent.duration.FiniteDuration heartBeatInterval)
public void setSnapshotBatchCount(long snapshotBatchCount)
public void setSnapshotDataThresholdPercentage(int snapshotDataThresholdPercentage)
public void setSnapshotChunkSize(int snapshotChunkSize)
public void setJournalRecoveryLogBatchSize(int journalRecoveryLogBatchSize)
public void setIsolatedLeaderCheckInterval(scala.concurrent.duration.FiniteDuration isolatedLeaderCheckInterval)
public void setElectionTimeoutFactor(long electionTimeoutFactor)
public void setCandidateElectionTimeoutDivisor(long candidateElectionTimeoutDivisor)
public void setTempFileDirectory(String tempFileDirectory)
public void setFileBackedStreamingThreshold(int fileBackedStreamingThreshold)
public void setCustomRaftPolicyImplementationClass(String customRaftPolicyImplementationClass)
public String getCustomRaftPolicyImplementationClass()
ConfigParamsgetCustomRaftPolicyImplementationClass in interface ConfigParamspublic long getSnapshotBatchCount()
ConfigParamsgetSnapshotBatchCount in interface ConfigParamspublic int getSnapshotDataThresholdPercentage()
ConfigParamsgetSnapshotDataThresholdPercentage in interface ConfigParamspublic scala.concurrent.duration.FiniteDuration getHeartBeatInterval()
ConfigParamsgetHeartBeatInterval in interface ConfigParamspublic scala.concurrent.duration.FiniteDuration getElectionTimeOutInterval()
ConfigParamsgetElectionTimeOutInterval in interface ConfigParamspublic long getCandidateElectionTimeoutDivisor()
ConfigParamsgetCandidateElectionTimeoutDivisor in interface ConfigParamspublic int getElectionTimeVariance()
ConfigParamsgetElectionTimeVariance in interface ConfigParamspublic int getSnapshotChunkSize()
ConfigParamsgetSnapshotChunkSize in interface ConfigParamspublic int getJournalRecoveryLogBatchSize()
ConfigParamsgetJournalRecoveryLogBatchSize in interface ConfigParamspublic long getIsolatedCheckIntervalInMillis()
ConfigParamsgetIsolatedCheckIntervalInMillis in interface ConfigParamspublic long getElectionTimeoutFactor()
ConfigParamsgetElectionTimeoutFactor in interface ConfigParamspublic RaftPolicy getRaftPolicy()
ConfigParamsgetRaftPolicy in interface ConfigParamspublic String getTempFileDirectory()
ConfigParamsgetTempFileDirectory in interface ConfigParamspublic int getFileBackedStreamingThreshold()
ConfigParamsgetFileBackedStreamingThreshold in interface ConfigParamspublic PeerAddressResolver getPeerAddressResolver()
ConfigParamsgetPeerAddressResolver in interface ConfigParamspublic void setPeerAddressResolver(@NonNull PeerAddressResolver peerAddressResolver)
public long getSyncIndexThreshold()
ConfigParamsgetSyncIndexThreshold in interface ConfigParamspublic void setSyncIndexThreshold(long syncIndexThreshold)
Copyright © 2019 OpenDaylight. All rights reserved.