Class 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 Details


      public static final int DEFAULT_TIMEOUT_MILLISECONDS
      Default timeout for icmp detection in millis see timeoutMilliseconds
      See Also:

      public static final int DEFAULT_INTERVAL_MILLISECONDS
      Default interval between icmp ping attempts see intervalMilliseconds
      See Also:

      public static final int DEFAULT_TTL
      Default ttl for icmp packages ttl.
      See Also:

      public static final int DEFAULT_MAX_ATTEMPT
      Default max number of attempts maxAttempts
      See Also:
  • Constructor Details

    • ClientIcmpPingConfig

      public ClientIcmpPingConfig()
    • ClientIcmpPingConfig

      public ClientIcmpPingConfig(ClientIcmpPingConfig config)
  • Method Details

    • getTimeoutMilliseconds

      public int getTimeoutMilliseconds()
    • setTimeoutMilliseconds

      public ClientIcmpPingConfig setTimeoutMilliseconds(int timeoutMilliseconds)
    • getIntervalMilliseconds

      public int getIntervalMilliseconds()
    • setIntervalMilliseconds

      public ClientIcmpPingConfig setIntervalMilliseconds(int intervalMilliseconds)
    • isEchoFailFastOnStartup

      public boolean isEchoFailFastOnStartup()
    • setEchoFailFastOnStartup

      public ClientIcmpPingConfig setEchoFailFastOnStartup(boolean echoFailFastOnStartup)
    • getTtl

      public int getTtl()
    • setTtl

      public ClientIcmpPingConfig setTtl(int ttl)
    • getMaxAttempts

      public int getMaxAttempts()
    • setMaxAttempts

      public ClientIcmpPingConfig setMaxAttempts(int maxAttempts)
    • isEnabled

      public boolean isEnabled()
    • setEnabled

      public ClientIcmpPingConfig setEnabled(boolean enabled)
    • equals

      public boolean equals(Object o)
      equals in class Object
    • hashCode

      public int hashCode()
      hashCode in class Object
    • toString

      public String toString()
      toString in class Object