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
Modifier and TypeMethodDescriptionvoid
copyFrom
(RedundancySettings settings) boolean
Deprecated.boolean
How history should be treated when backup is active.boolean
int
int
int
The acceptable number of pings to miss before the gateway network connection is declared as faultedint
int
How long to wait in milliseconds before giving up on waiting for a ping responseint
int
Deprecated.long
The size of all config update .tsk files in the redundant_state folder ideally should not exceed this value.Desired role of node.int
int
How the backup should run when not active.int
Returns how long, in milliseconds, we should wait after startup before determining our state.int
long
void
setAutoDetectHttp
(boolean value) Deprecated.void
setAutoDetectLocalInterface
(boolean value) void
void
setGanEnableSsl
(boolean enableSsl) void
setGanHost
(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
(List<HttpURL> addresses) Deprecated.void
setLocalInterfaceBind
(String value) void
void
setMaxDiskMB
(long maxDiskMB) void
setNodeRole
(NodeRole value) void
setReceiveThreadCount
(int threads) void
setSendThreadCount
(int threads) void
void
setStartupJoinWaitTime
(int value) void
setSyncTimeoutSecs
(int timeoutSecs) void
setSystemStateInformation
(String uid, long rev) void
setUseActiveUptimeToResolveConflict
(boolean useActiveUptime) boolean
-
Method Details
-
getNodeRole
NodeRole getNodeRole()Desired role of node. This may be overridden by the system license. -
setNodeRole
-
getBackupHistoryLevel
HistoryLevel getBackupHistoryLevel()How history should be treated when backup is active. -
setBackupHistoryLevel
-
getStandbyActivityLevel
ActivityLevel getStandbyActivityLevel()How the backup should run when not active. -
setStandbyActivityLevel
-
getMasterRecoveryMode
RecoveryMode getMasterRecoveryMode() -
setMasterRecoveryMode
-
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
String getLocalInterfaceBind() -
setLocalInterfaceBind
-
getAutoDetectHttp
Deprecated. -
setAutoDetectHttp
Deprecated. -
getHttpAddresses
Deprecated. -
setHttpAddresses
Deprecated. -
getSystemStateUID
String getSystemStateUID() -
getSystemStateRevision
long getSystemStateRevision() -
setSystemStateInformation
-
copyFrom
-
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
-
getGanHost
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
-
getSyncTimeoutSecs
int getSyncTimeoutSecs()- Returns:
- The redundancy GAN queue timeout value. Any redundancy sync request or pull operation that takes longer than this value will be killed by the queue system.
-
setSyncTimeoutSecs
void setSyncTimeoutSecs(int timeoutSecs) -
useActiveUptimeToResolveConflict
boolean useActiveUptimeToResolveConflict()- Returns:
- true if the user has enabled the setting. The setting allows data on the backup to overwrite data on the master when there is a conflict and the backup is known to be active for longer.
-
setUseActiveUptimeToResolveConflict
void setUseActiveUptimeToResolveConflict(boolean useActiveUptime) -
getSendThreadCount
int getSendThreadCount()- Returns:
- number of threads to be used for sending messages
-
setSendThreadCount
void setSendThreadCount(int threads) - Parameters:
threads
- number of threads to be used for sending messages
-
getReceiveThreadCount
int getReceiveThreadCount()- Returns:
- number of threads to be used for receiving messages
-
setReceiveThreadCount
void setReceiveThreadCount(int threads) - Parameters:
threads
- number of threads to be used for receiving messages
-