Class AsyncBasicDetector<Request,​Response>

    • Constructor Detail

      • AsyncBasicDetector

        public AsyncBasicDetector​(String serviceName,
                                  int port)

        Constructor for AsyncBasicDetector.

        Type Parameters:
        Request - a Request object.
        Response - a Response object.
        Parameters:
        serviceName - a String object.
        port - a int.
      • AsyncBasicDetector

        public AsyncBasicDetector​(String serviceName,
                                  int port,
                                  int timeout,
                                  int retries)

        Constructor for AsyncBasicDetector.

        Parameters:
        serviceName - a String object.
        port - a int.
        timeout - a int.
        retries - a int.
    • Method Detail

      • expectBanner

        protected void expectBanner​(ResponseValidator<Response> bannerValidator)

        expectBanner

        Parameters:
        bannerValidator - a org.opennms.netmgt.provision.support.AsyncClientConversation.ResponseValidator object.
      • send

        protected void send​(Request request,
                            ResponseValidator<Response> responseValidator)

        send

        Parameters:
        request - a Request object.
        responseValidator - a org.opennms.netmgt.provision.support.AsyncClientConversation.ResponseValidator object.
      • setIdleTime

        public final void setIdleTime​(int idleTime)
        Set the time limit in milliseconds that the connection can wait before transitioning to the IdleStatus.BOTH_IDLE, IdleStatus.READER_IDLE, or IdleStatus.WRITER_IDLE states.
        Parameters:
        idleTime - a int.
      • getIdleTime

        public final int getIdleTime()

        getIdleTime

        Returns:
        a int.
      • startsWith

        protected ResponseValidator<Response> startsWith​(String prefix)

        startsWith

        Parameters:
        prefix - a String object.
        Returns:
        a org.opennms.netmgt.provision.support.AsyncClientConversation.ResponseValidator object.
      • find

        protected ResponseValidator<Response> find​(String regex)

        find

        Parameters:
        regex - a String object.
        Returns:
        a org.opennms.netmgt.provision.support.AsyncClientConversation.ResponseValidator object.
      • setUseSSLFilter

        public final void setUseSSLFilter​(boolean useSSLFilter)

        Setter for the field useSSLFilter.

        Parameters:
        useSSLFilter - a boolean.
      • isUseSSLFilter

        public final boolean isUseSSLFilter()

        isUseSSLFilter

        Returns:
        a boolean.