Package com.hazelcast.client.config
Class ClientIcmpPingConfig
java.lang.Object
com.hazelcast.client.config.ClientIcmpPingConfig
public class ClientIcmpPingConfig extends Object
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
Fields Modifier and Type Field Description static int
DEFAULT_INTERVAL_MILLISECONDS
Default interval between icmp ping attempts seeintervalMilliseconds
static int
DEFAULT_MAX_ATTEMPT
Default max number of attemptsmaxAttempts
static int
DEFAULT_TIMEOUT_MILLISECONDS
Default timeout for icmp detection in millis seetimeoutMilliseconds
static int
DEFAULT_TTL
Default ttl for icmp packagesttl
. -
Constructor Summary
Constructors Constructor Description ClientIcmpPingConfig()
ClientIcmpPingConfig(ClientIcmpPingConfig config)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getIntervalMilliseconds()
int
getMaxAttempts()
int
getTimeoutMilliseconds()
int
getTtl()
int
hashCode()
boolean
isEchoFailFastOnStartup()
boolean
isEnabled()
ClientIcmpPingConfig
setEchoFailFastOnStartup(boolean echoFailFastOnStartup)
ClientIcmpPingConfig
setEnabled(boolean enabled)
ClientIcmpPingConfig
setIntervalMilliseconds(int intervalMilliseconds)
ClientIcmpPingConfig
setMaxAttempts(int maxAttempts)
ClientIcmpPingConfig
setTimeoutMilliseconds(int timeoutMilliseconds)
ClientIcmpPingConfig
setTtl(int ttl)
String
toString()
-
Field Details
-
DEFAULT_TIMEOUT_MILLISECONDS
public static final int DEFAULT_TIMEOUT_MILLISECONDSDefault timeout for icmp detection in millis seetimeoutMilliseconds
- See Also:
- Constant Field Values
-
DEFAULT_INTERVAL_MILLISECONDS
public static final int DEFAULT_INTERVAL_MILLISECONDSDefault interval between icmp ping attempts seeintervalMilliseconds
- See Also:
- Constant Field Values
-
DEFAULT_TTL
public static final int DEFAULT_TTLDefault ttl for icmp packagesttl
.- See Also:
- Constant Field Values
-
DEFAULT_MAX_ATTEMPT
public static final int DEFAULT_MAX_ATTEMPTDefault max number of attemptsmaxAttempts
- See Also:
- Constant Field Values
-
-
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
-