Interface RedundancySettings
-
public interface RedundancySettings
These are all of the redundancy settings for both master and backup. Some settings will only apply to one or the other.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
copyFrom(RedundancySettings settings)
boolean
getAutoDetectHttp()
Deprecated.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.int
getFailoverTimeout()
The time, in milliseconds, before the master is determined to be down.boolean
getGanEnableSsl()
java.lang.String
getGanHost()
int
getGanHttpConnectTimeout()
int
getGanHttpReadTimeout()
int
getGanPingMaxMissed()
The acceptable number of pings to miss before the gateway network connection is declared as faultedint
getGanPingRate()
int
getGanPingTimeout()
How long to wait in milliseconds before giving up on waiting for a ping responseint
getGanPort()
int
getGanWebsocketTimeout()
java.util.List<HttpURL>
getHttpAddresses()
Deprecated.java.lang.String
getLocalInterfaceBind()
RecoveryMode
getMasterRecoveryMode()
long
getMaxDiskMB()
The size of all config update .tsk files in the redundant_state folder ideally should not exceed this value.NodeRole
getNodeRole()
Desired role of node.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)
Deprecated.void
setAutoDetectLocalInterface(boolean value)
void
setBackupHistoryLevel(HistoryLevel value)
void
setBackupReconnectPeriod(int value)
void
setFailoverTimeout(int value)
void
setGanEnableSsl(boolean enableSsl)
void
setGanHost(java.lang.String host)
void
setGanHttpConnectTimeout(int timeoutMillis)
void
setGanHttpReadTimeout(int timeoutMillis)
void
setGanPingMaxMissed(int pingMaxMissed)
void
setGanPingRate(int pingRateMillis)
void
setGanPingTimeout(int pingTimeoutMillis)
void
setGanPort(int port)
void
setGanWebsocketTimeout(int timeoutMillis)
void
setHttpAddresses(java.util.List<HttpURL> addresses)
Deprecated.void
setLocalInterfaceBind(java.lang.String value)
void
setMasterRecoveryMode(RecoveryMode value)
void
setMaxDiskMB(long maxDiskMB)
void
setNodeRole(NodeRole value)
void
setRuntimeQueueMaxLength(int value)
void
setStandbyActivityLevel(ActivityLevel value)
void
setStartupJoinWaitTime(int value)
void
setSystemStateInformation(java.lang.String uid, long rev)
-
-
-
Method Detail
-
getNodeRole
NodeRole getNodeRole()
Desired role of node. This may be overridden by the system license.
-
setNodeRole
void setNodeRole(NodeRole value)
-
getBackupHistoryLevel
HistoryLevel getBackupHistoryLevel()
How history should be treated when backup is active.
-
setBackupHistoryLevel
void setBackupHistoryLevel(HistoryLevel value)
-
getStandbyActivityLevel
ActivityLevel getStandbyActivityLevel()
How the backup should run when not active.
-
setStandbyActivityLevel
void setStandbyActivityLevel(ActivityLevel value)
-
getMasterRecoveryMode
RecoveryMode getMasterRecoveryMode()
-
setMasterRecoveryMode
void setMasterRecoveryMode(RecoveryMode value)
-
getFailoverTimeout
int getFailoverTimeout()
The time, in milliseconds, before the master is determined to be down.
-
setFailoverTimeout
void setFailoverTimeout(int value)
-
getBackupReconnectPeriod
int getBackupReconnectPeriod()
How often, in milliseconds, the backup should try to reconnect to the master node after disconnection.
-
setBackupReconnectPeriod
void setBackupReconnectPeriod(int value)
-
getRuntimeQueueMaxLength
int getRuntimeQueueMaxLength()
-
setRuntimeQueueMaxLength
void setRuntimeQueueMaxLength(int value)
-
getStartupJoinWaitTime
int getStartupJoinWaitTime()
Returns how long, in milliseconds, we should wait after startup before determining our state. This gives the nodes a chance to connect and negotiate their roles, preventing unnecessary switching and potential dual-execution.
-
setStartupJoinWaitTime
void setStartupJoinWaitTime(int value)
-
getAutoDetectLocalInterface
boolean getAutoDetectLocalInterface()
-
setAutoDetectLocalInterface
void setAutoDetectLocalInterface(boolean value)
-
getLocalInterfaceBind
java.lang.String getLocalInterfaceBind()
-
setLocalInterfaceBind
void setLocalInterfaceBind(java.lang.String value)
-
getAutoDetectHttp
@Deprecated boolean getAutoDetectHttp()
Deprecated.
-
setAutoDetectHttp
@Deprecated void setAutoDetectHttp(boolean value)
Deprecated.
-
getHttpAddresses
@Deprecated java.util.List<HttpURL> getHttpAddresses()
Deprecated.
-
setHttpAddresses
@Deprecated void setHttpAddresses(java.util.List<HttpURL> addresses)
Deprecated.
-
getSystemStateUID
java.lang.String getSystemStateUID()
-
getSystemStateRevision
long getSystemStateRevision()
-
setSystemStateInformation
void setSystemStateInformation(java.lang.String uid, long rev)
-
copyFrom
void copyFrom(RedundancySettings settings)
-
getMaxDiskMB
long getMaxDiskMB()
The size of all config update .tsk files in the redundant_state folder ideally should not exceed this value. If they do, the master will give up on saving config updates and kick over a full gwbk to the backup instead.
-
setMaxDiskMB
void setMaxDiskMB(long maxDiskMB)
-
setGanHost
void setGanHost(java.lang.String host)
-
getGanHost
java.lang.String getGanHost()
- Returns:
- Master server address
-
setGanPort
void setGanPort(int port)
-
getGanPort
int getGanPort()
- Returns:
- Master's gateway network connection port
-
setGanEnableSsl
void setGanEnableSsl(boolean enableSsl)
-
getGanEnableSsl
boolean getGanEnableSsl()
- Returns:
- true if the outgoing connection should use SSL to connect to the master
-
setGanPingRate
void setGanPingRate(int pingRateMillis)
-
getGanPingRate
int getGanPingRate()
- Returns:
- how often to ping the master
-
setGanPingTimeout
void setGanPingTimeout(int pingTimeoutMillis)
-
getGanPingTimeout
int getGanPingTimeout()
How long to wait in milliseconds before giving up on waiting for a ping response
-
setGanPingMaxMissed
void setGanPingMaxMissed(int pingMaxMissed)
-
getGanPingMaxMissed
int getGanPingMaxMissed()
The acceptable number of pings to miss before the gateway network connection is declared as faulted
-
setGanWebsocketTimeout
void setGanWebsocketTimeout(int timeoutMillis)
-
getGanWebsocketTimeout
int getGanWebsocketTimeout()
- Returns:
- How long to wait in milliseconds for the websocket to connect
-
setGanHttpConnectTimeout
void setGanHttpConnectTimeout(int timeoutMillis)
-
getGanHttpConnectTimeout
int getGanHttpConnectTimeout()
- Returns:
- How long to wait in milliseconds for the http data channel to connect
-
setGanHttpReadTimeout
void setGanHttpReadTimeout(int timeoutMillis)
-
getGanHttpReadTimeout
int getGanHttpReadTimeout()
- Returns:
- How long to wait in milliseconds for the http data channel to receive a response to a read request
-
-