Package bftsmart.reconfiguration.util
Class TOMConfiguration
- java.lang.Object
-
- bftsmart.reconfiguration.util.Configuration
-
- bftsmart.reconfiguration.util.TOMConfiguration
-
public class TOMConfiguration extends Configuration
-
-
Field Summary
Fields Modifier and Type Field Description protected int
batchTimeout
protected int
f
protected int
inQueueSize
protected int
maxBatchSize
protected int
maxBatchSizeInBytes
protected int
n
protected int
numberOfNonces
protected int
outQueueSize
protected int
paxosHighMark
protected int
replyVerificationTime
protected int
requestTimeout
protected int
revivalHighMark
protected boolean
shutdownHookEnabled
protected int
timeoutHighMark
protected int
tomPeriod
protected boolean
useSenderThread
-
Fields inherited from class bftsmart.reconfiguration.util.Configuration
autoConnectLimit, channelsBlocking, configHome, configs, DEFAULT_HASH, DEFAULT_HASH_PROVIDER, DEFAULT_KEYLOADER, DEFAULT_SECRETKEY, DEFAULT_SECRETKEY_PROVIDER, DEFAULT_SIGNATURE, DEFAULT_SIGNATURE_PROVIDER, defaultKeys, hashAlgorithm, hashAlgorithmProvider, hosts, hostsFileName, keyLoader, processId, secretKeyAlgorithm, secretKeyAlgorithmProvider, signatureAlgorithm, signatureAlgorithmProvider, useReadOnlyRequests
-
-
Constructor Summary
Constructors Constructor Description TOMConfiguration(int processId, KeyLoader loader)
Creates a new instance of TOMConfigurationTOMConfiguration(int processId, java.lang.String configHome, KeyLoader loader)
Creates a new instance of TOMConfiguration
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBatchTimeout()
java.lang.String
getBindAddress()
int
getCheckpointPeriod()
Indicates the checkpoint period used when fetching the state from the applicationint
getClientInvokeOrderedTimeout()
java.lang.String[]
getEnabledCiphers()
int
getF()
boolean
getFairBatch()
int
getGlobalCheckpointPeriod()
Indicates the checkpoint period used when fetching the state from the applicationint[]
getInitialView()
int
getInQueueSize()
int
getMaxBatchSize()
int
getMaxBatchSizeInBytes()
The maximum size a batch of messages can have in bytes.int
getMaxRequestSize()
Maximum size in bytes a request from a client may have.int
getN()
int
getNumberOfNIOThreads()
*int
getNumberOfNonces()
int
getNumNettyWorkers()
int
getNumRepliers()
int
getOutQueueSize()
int
getPaxosHighMark()
int
getReplyVerificationTime()
int
getRequestTimeout()
int
getRevivalHighMark()
boolean
getSameBatchSize()
java.lang.String
getSSLTLSKeyStore()
java.lang.String
getSSLTLSProtocolVersion()
Tulio Ribeiro ## SSL/TLS getters.int
getTimeoutHighMark()
int
getTTPId()
int
getUseControlFlow()
Indicates if a simple control flow mechanism should be used to avoid an overflow of client requestsint
getUseSignatures()
Indicates if signatures should be used (1) or not (0) to authenticate client requestsjava.lang.String
getViewStoreClass()
protected void
init()
boolean
isBFT()
boolean
isShutdownHookEnabled()
boolean
isStateTransferEnabled()
boolean
isTheTTP()
boolean
isToLog()
boolean
isToLogParallel()
boolean
isToWriteCkpsToDisk()
boolean
isToWriteSyncCkp()
boolean
isToWriteSyncLog()
boolean
isUseSenderThread()
boolean
logToDisk()
-
Methods inherited from class bftsmart.reconfiguration.util.Configuration
addHostInfo, getAutoConnectLimit, getConfigHome, getHashAlgorithm, getHashAlgorithmProvider, getHost, getLocalAddress, getPort, getPrivateKey, getProcessId, getProperties, getProperty, getPublicKey, getPublicKey, getRemoteAddress, getSecretKeyAlgorithm, getSecretKeyAlgorithmProvider, getServerToServerPort, getServerToServerRemoteAddress, getSignatureAlgorithm, getSignatureAlgorithmProvider, isHostSetted, setProcessId, useBlockingChannels, useDefaultKeys, useReadOnlyRequests
-
-
-
-
Field Detail
-
n
protected int n
-
f
protected int f
-
requestTimeout
protected int requestTimeout
-
batchTimeout
protected int batchTimeout
-
tomPeriod
protected int tomPeriod
-
paxosHighMark
protected int paxosHighMark
-
revivalHighMark
protected int revivalHighMark
-
timeoutHighMark
protected int timeoutHighMark
-
replyVerificationTime
protected int replyVerificationTime
-
maxBatchSize
protected int maxBatchSize
-
maxBatchSizeInBytes
protected int maxBatchSizeInBytes
-
numberOfNonces
protected int numberOfNonces
-
inQueueSize
protected int inQueueSize
-
outQueueSize
protected int outQueueSize
-
shutdownHookEnabled
protected boolean shutdownHookEnabled
-
useSenderThread
protected boolean useSenderThread
-
-
Method Detail
-
init
protected void init()
- Overrides:
init
in classConfiguration
-
getViewStoreClass
public java.lang.String getViewStoreClass()
-
isTheTTP
public boolean isTheTTP()
-
getInitialView
public final int[] getInitialView()
-
getTTPId
public int getTTPId()
-
getRequestTimeout
public int getRequestTimeout()
-
getBatchTimeout
public int getBatchTimeout()
-
getReplyVerificationTime
public int getReplyVerificationTime()
-
getN
public int getN()
-
getF
public int getF()
-
getPaxosHighMark
public int getPaxosHighMark()
-
getRevivalHighMark
public int getRevivalHighMark()
-
getTimeoutHighMark
public int getTimeoutHighMark()
-
getMaxBatchSize
public int getMaxBatchSize()
-
getMaxBatchSizeInBytes
public int getMaxBatchSizeInBytes()
The maximum size a batch of messages can have in bytes. This limit is useful for performance and memory limiting reasons when handling large requests.
-
isShutdownHookEnabled
public boolean isShutdownHookEnabled()
-
isStateTransferEnabled
public boolean isStateTransferEnabled()
-
getInQueueSize
public int getInQueueSize()
-
getOutQueueSize
public int getOutQueueSize()
-
isUseSenderThread
public boolean isUseSenderThread()
-
getNumberOfNIOThreads
public int getNumberOfNIOThreads()
*
-
getNumberOfNonces
public int getNumberOfNonces()
- Returns:
- the numberOfNonces
-
getUseSignatures
public int getUseSignatures()
Indicates if signatures should be used (1) or not (0) to authenticate client requests
-
getCheckpointPeriod
public int getCheckpointPeriod()
Indicates the checkpoint period used when fetching the state from the application
-
isToWriteCkpsToDisk
public boolean isToWriteCkpsToDisk()
-
isToWriteSyncCkp
public boolean isToWriteSyncCkp()
-
isToLog
public boolean isToLog()
-
isToWriteSyncLog
public boolean isToWriteSyncLog()
-
logToDisk
public boolean logToDisk()
-
isToLogParallel
public boolean isToLogParallel()
-
getGlobalCheckpointPeriod
public int getGlobalCheckpointPeriod()
Indicates the checkpoint period used when fetching the state from the application
-
getUseControlFlow
public int getUseControlFlow()
Indicates if a simple control flow mechanism should be used to avoid an overflow of client requests
-
getMaxRequestSize
public int getMaxRequestSize()
Maximum size in bytes a request from a client may have. Larger messages are discarded. This setting is useful when malicious clients are present.
-
isBFT
public boolean isBFT()
-
getNumRepliers
public int getNumRepliers()
-
getNumNettyWorkers
public int getNumNettyWorkers()
-
getSameBatchSize
public boolean getSameBatchSize()
-
getFairBatch
public boolean getFairBatch()
-
getBindAddress
public java.lang.String getBindAddress()
-
getClientInvokeOrderedTimeout
public int getClientInvokeOrderedTimeout()
-
getSSLTLSProtocolVersion
public java.lang.String getSSLTLSProtocolVersion()
Tulio Ribeiro ## SSL/TLS getters.
-
getSSLTLSKeyStore
public java.lang.String getSSLTLSKeyStore()
-
getEnabledCiphers
public java.lang.String[] getEnabledCiphers()
-
-