public class ClientIcmpPingConfig extends Object
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.Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_INTERVAL_MILLISECONDS
Default interval between icmp ping attempts see
intervalMilliseconds |
static int |
DEFAULT_MAX_ATTEMPT
Default max number of attempts
maxAttempts |
static int |
DEFAULT_TIMEOUT_MILLISECONDS
Default timeout for icmp detection in millis see
timeoutMilliseconds |
static int |
DEFAULT_TTL
Default ttl for icmp packages
ttl . |
Constructor and Description |
---|
ClientIcmpPingConfig() |
ClientIcmpPingConfig(ClientIcmpPingConfig config) |
Modifier and Type | Method and 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) |
public static final int DEFAULT_TIMEOUT_MILLISECONDS
timeoutMilliseconds
public static final int DEFAULT_INTERVAL_MILLISECONDS
intervalMilliseconds
public static final int DEFAULT_TTL
ttl
.public static final int DEFAULT_MAX_ATTEMPT
maxAttempts
public ClientIcmpPingConfig()
public ClientIcmpPingConfig(ClientIcmpPingConfig config)
public int getTimeoutMilliseconds()
public ClientIcmpPingConfig setTimeoutMilliseconds(int timeoutMilliseconds)
public int getIntervalMilliseconds()
public ClientIcmpPingConfig setIntervalMilliseconds(int intervalMilliseconds)
public boolean isEchoFailFastOnStartup()
public ClientIcmpPingConfig setEchoFailFastOnStartup(boolean echoFailFastOnStartup)
public int getTtl()
public ClientIcmpPingConfig setTtl(int ttl)
public int getMaxAttempts()
public ClientIcmpPingConfig setMaxAttempts(int maxAttempts)
public boolean isEnabled()
public ClientIcmpPingConfig setEnabled(boolean enabled)
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.