Class TcpHealthCheck


  • public class TcpHealthCheck
    extends HealthCheck
    Represents a healthcheck that checks a tcp port is open with a given timeout
         {
             "id": "tcpconnect",
             "type": "tcp",
             "port": 6000,
             "timeout": 15
         }
     
    • Constructor Summary

      Constructors 
      Constructor Description
      TcpHealthCheck​(java.lang.String id, java.lang.String type, java.lang.Integer port, java.lang.Integer timeout)  
    • Constructor Detail

      • TcpHealthCheck

        public TcpHealthCheck​(java.lang.String id,
                              java.lang.String type,
                              java.lang.Integer port,
                              java.lang.Integer timeout)
        Parameters:
        id - the id of the healthcheck
        type - the type of the healthcheck (tcp)
        port - the port to connect to
        timeout - the connection timeout
    • Method Detail

      • getPort

        public java.lang.Integer getPort()
      • getTimeout

        public java.lang.Integer getTimeout()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object