public interface RedundancySettings
Modifier and Type | Method and Description |
---|---|
void |
copyFrom(RedundancySettings settings) |
boolean |
enforceConnectionWhitelist()
If TRUE, only connections from addresses present in the connection whitelist will be accepted by the master.
|
boolean |
getAutoDetectHttp() |
boolean |
getAutoDetectLocalInterface() |
HistoryLevel |
getBackupHistoryLevel()
How history should be treated when backup is active.
|
int |
getBackupReconnectPeriod()
How often, in milliseconds, the backup should try to reconnect to the master node after disconnection.
|
java.util.List<java.lang.String> |
getConnectionWhitelist()
If enforceConnectionWhitelist() returns true, only incoming connections from an address in the set here will
be accepted by the master.
|
int |
getFailoverTimeout()
The time, in milliseconds, before the master is determined to be down.
|
java.util.List<HttpURL> |
getHttpAddresses() |
java.lang.String |
getLocalInterfaceBind() |
java.lang.String |
getMasterAddress()
The address of the master - only used by the backup.
|
int |
getMasterPort()
The port that the master node will run on.
|
RecoveryMode |
getMasterRecoveryMode() |
NodeRole |
getNodeRole()
Desired role of node.
|
int |
getPingRateMS()
The rate, in milliseconds, in which the backup will send messages to the master.
|
int |
getRuntimeQueueMaxLength() |
ActivityLevel |
getStandbyActivityLevel()
How the backup should run when not active.
|
int |
getStartupJoinWaitTime()
Returns how long, in milliseconds, we should wait after startup before determining our state.
|
long |
getSystemStateRevision() |
java.lang.String |
getSystemStateUID() |
void |
setAutoDetectHttp(boolean value) |
void |
setAutoDetectLocalInterface(boolean value) |
void |
setBackupHistoryLevel(HistoryLevel value) |
void |
setBackupReconnectPeriod(int value) |
void |
setConnectionWhitelist(java.util.List<java.lang.String> values) |
void |
setEnforceConnectionWhitelist(boolean value) |
void |
setFailoverTimeout(int value) |
void |
setHttpAddresses(java.util.List<HttpURL> addresses) |
void |
setLocalInterfaceBind(java.lang.String value) |
void |
setMasterAddress(java.lang.String value) |
void |
setMasterPort(int value) |
void |
setMasterRecoveryMode(RecoveryMode value) |
void |
setNodeRole(NodeRole value) |
void |
setPingRateMS(int value) |
void |
setRuntimeQueueMaxLength(int value) |
void |
setStandbyActivityLevel(ActivityLevel value) |
void |
setStartupJoinWaitTime(int value) |
void |
setSystemStateInformation(java.lang.String uid,
long rev) |
NodeRole getNodeRole()
void setNodeRole(NodeRole value)
HistoryLevel getBackupHistoryLevel()
void setBackupHistoryLevel(HistoryLevel value)
ActivityLevel getStandbyActivityLevel()
void setStandbyActivityLevel(ActivityLevel value)
RecoveryMode getMasterRecoveryMode()
void setMasterRecoveryMode(RecoveryMode value)
int getPingRateMS()
void setPingRateMS(int value)
int getFailoverTimeout()
void setFailoverTimeout(int value)
int getBackupReconnectPeriod()
void setBackupReconnectPeriod(int value)
int getRuntimeQueueMaxLength()
void setRuntimeQueueMaxLength(int value)
int getStartupJoinWaitTime()
void setStartupJoinWaitTime(int value)
int getMasterPort()
void setMasterPort(int value)
boolean getAutoDetectLocalInterface()
void setAutoDetectLocalInterface(boolean value)
java.lang.String getLocalInterfaceBind()
void setLocalInterfaceBind(java.lang.String value)
java.lang.String getMasterAddress()
void setMasterAddress(java.lang.String value)
boolean getAutoDetectHttp()
void setAutoDetectHttp(boolean value)
java.util.List<HttpURL> getHttpAddresses()
void setHttpAddresses(java.util.List<HttpURL> addresses)
boolean enforceConnectionWhitelist()
void setEnforceConnectionWhitelist(boolean value)
java.util.List<java.lang.String> getConnectionWhitelist()
void setConnectionWhitelist(java.util.List<java.lang.String> values)
java.lang.String getSystemStateUID()
long getSystemStateRevision()
void setSystemStateInformation(java.lang.String uid, long rev)
void copyFrom(RedundancySettings settings)