public class TOMConfiguration extends Configuration
Modifier and Type | Field and Description |
---|---|
protected int |
f |
protected int |
inQueueSize |
protected int |
maxBatchSize |
protected int |
n |
protected int |
numberOfNonces |
protected int |
outQueueSize |
protected int |
paxosHighMark |
protected int |
replyVerificationTime |
protected int |
requestTimeout |
protected int |
revivalHighMark |
protected RSAKeyLoader |
rsaLoader |
protected boolean |
shutdownHookEnabled |
protected int |
timeoutHighMark |
protected int |
tomPeriod |
protected boolean |
useSenderThread |
autoConnectLimit, channelsBlocking, configHome, configs, DH_G, DH_P, hosts, hostsFileName, processId
Constructor and Description |
---|
TOMConfiguration(int processId)
Creates a new instance of TOMConfiguration
|
TOMConfiguration(int processId,
java.lang.String configHome)
Creates a new instance of TOMConfiguration
|
TOMConfiguration(int processId,
java.lang.String configHome,
java.lang.String hostsFileName)
Creates a new instance of TOMConfiguration
|
Modifier and Type | Method and Description |
---|---|
int |
getCheckpointPeriod()
Indicates the checkpoint period used when fetching the state from the application
|
int |
getF() |
int |
getGlobalCheckpointPeriod()
Indicates the checkpoint period used when fetching the state from the application
|
int[] |
getInitialView() |
int |
getInQueueSize() |
int |
getMaxBatchSize() |
int |
getN() |
int |
getNumberOfNIOThreads()
*
|
int |
getNumberOfNonces() |
int |
getNumRepliers() |
int |
getOutQueueSize() |
int |
getPaxosHighMark() |
int |
getReplyVerificationTime() |
int |
getRequestTimeout() |
int |
getRevivalHighMark() |
java.security.PrivateKey |
getRSAPrivateKey() |
java.security.PublicKey |
getRSAPublicKey() |
java.security.PublicKey |
getRSAPublicKey(int id) |
int |
getTimeoutHighMark() |
int |
getTTPId() |
int |
getUseControlFlow()
Indicates if a simple control flow mechanism should be used to avoid an overflow of client requests
|
int |
getUseMACs()
Indicates if MACs should be used (1) or not (0) to authenticate client-server and server-server messages
|
int |
getUseSignatures()
Indicates if signatures should be used (1) or not (0) to authenticate client requests
|
java.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() |
addHostInfo, getAutoConnectLimit, getDHG, getDHP, getHmacAlgorithm, getHmacSize, getHost, getLocalAddress, getPort, getProcessId, getProperties, getProperty, getRemoteAddress, getServerToServerPort, getServerToServerRemoteAddress, isHostSetted, setProcessId, useBlockingChannels
protected int n
protected int f
protected int requestTimeout
protected int tomPeriod
protected int paxosHighMark
protected int revivalHighMark
protected int timeoutHighMark
protected int replyVerificationTime
protected int maxBatchSize
protected int numberOfNonces
protected int inQueueSize
protected int outQueueSize
protected boolean shutdownHookEnabled
protected boolean useSenderThread
protected RSAKeyLoader rsaLoader
public TOMConfiguration(int processId)
public TOMConfiguration(int processId, java.lang.String configHome)
public TOMConfiguration(int processId, java.lang.String configHome, java.lang.String hostsFileName)
protected void init()
init
in class Configuration
public java.lang.String getViewStoreClass()
public boolean isTheTTP()
public final int[] getInitialView()
public int getTTPId()
public int getRequestTimeout()
public int getReplyVerificationTime()
public int getN()
public int getF()
public int getPaxosHighMark()
public int getRevivalHighMark()
public int getTimeoutHighMark()
public int getMaxBatchSize()
public boolean isShutdownHookEnabled()
public boolean isStateTransferEnabled()
public int getInQueueSize()
public int getOutQueueSize()
public boolean isUseSenderThread()
public int getNumberOfNIOThreads()
public int getNumberOfNonces()
public int getUseSignatures()
public int getUseMACs()
public int getCheckpointPeriod()
public boolean isToWriteCkpsToDisk()
public boolean isToWriteSyncCkp()
public boolean isToLog()
public boolean isToWriteSyncLog()
public boolean logToDisk()
public boolean isToLogParallel()
public int getGlobalCheckpointPeriod()
public int getUseControlFlow()
public java.security.PublicKey getRSAPublicKey()
public java.security.PublicKey getRSAPublicKey(int id)
public java.security.PrivateKey getRSAPrivateKey()
public boolean isBFT()
public int getNumRepliers()