Package com.hazelcast.client.config
Class ClientIcmpPingConfig
java.lang.Object
com.hazelcast.client.config.ClientIcmpPingConfig
Configuration for icmp ping failure detector of clients.
ICMP ping is used to detect if machine that a remote hazelcast member runs on alive or not
ICMP Ping detector will attempt
maxAttempts
times, one every intervalMilliseconds
.
and will wait up-to timeoutMilliseconds
. for each to complete.
In each attempt icmp will go through maximum ttl
hops.
If, after maxAttempts
. are made , there was no successful ping, the member will get suspected.-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Default interval between icmp ping attempts seeintervalMilliseconds
static final int
Default max number of attemptsmaxAttempts
static final int
Default timeout for icmp detection in millis seetimeoutMilliseconds
static final int
Default ttl for icmp packagesttl
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
int
int
int
getTtl()
int
hashCode()
boolean
boolean
setEchoFailFastOnStartup
(boolean echoFailFastOnStartup) setEnabled
(boolean enabled) setIntervalMilliseconds
(int intervalMilliseconds) setMaxAttempts
(int maxAttempts) setTimeoutMilliseconds
(int timeoutMilliseconds) setTtl
(int ttl) toString()
-
Field Details
-
DEFAULT_TIMEOUT_MILLISECONDS
public static final int DEFAULT_TIMEOUT_MILLISECONDSDefault timeout for icmp detection in millis seetimeoutMilliseconds
- See Also:
-
DEFAULT_INTERVAL_MILLISECONDS
public static final int DEFAULT_INTERVAL_MILLISECONDSDefault interval between icmp ping attempts seeintervalMilliseconds
- See Also:
-
DEFAULT_TTL
public static final int DEFAULT_TTLDefault ttl for icmp packagesttl
.- See Also:
-
DEFAULT_MAX_ATTEMPT
public static final int DEFAULT_MAX_ATTEMPTDefault max number of attemptsmaxAttempts
- See Also:
-
-
Constructor Details
-
ClientIcmpPingConfig
public ClientIcmpPingConfig() -
ClientIcmpPingConfig
-
-
Method Details
-
getTimeoutMilliseconds
public int getTimeoutMilliseconds() -
setTimeoutMilliseconds
-
getIntervalMilliseconds
public int getIntervalMilliseconds() -
setIntervalMilliseconds
-
isEchoFailFastOnStartup
public boolean isEchoFailFastOnStartup() -
setEchoFailFastOnStartup
-
getTtl
public int getTtl() -
setTtl
-
getMaxAttempts
public int getMaxAttempts() -
setMaxAttempts
-
isEnabled
public boolean isEnabled() -
setEnabled
-
equals
-
hashCode
public int hashCode() -
toString
-