Interface ServiceDetector

    • Method Detail

      • init

        void init()
        Perform any necessary initialization after construction and before detecting.
      • getServiceName

        String getServiceName()
        Requires that all implementations of this API return a service name.
        Returns:
        a String object.
      • setServiceName

        void setServiceName​(String serviceName)
        Service name is mutable so that we can create new instances of each implementation and define a new service detector using the underlying protocol.
        Parameters:
        serviceName - a String object.
      • getPort

        int getPort()
        Get the port where this service will be detected.
      • setPort

        void setPort​(int port)
        Set the port where the service will be detected.
        Parameters:
        port -
      • getTimeout

        int getTimeout()
        Get the timeout for detecting the service.
      • setTimeout

        void setTimeout​(int timeout)
        Set the timeout for detecting the service.
        Parameters:
        port -
      • getIpMatch

        String getIpMatch()
        Get the IPLIKE rule for detecting the service.
      • setIpMatch

        void setIpMatch​(String ipMatch)
        Set the IPLIKE rule for detecting the service.
      • dispose

        void dispose()
        The detector should clean up after itself in this method if necessary.