Class DetectorFutureImpl

    • Constructor Detail

      • DetectorFutureImpl

        public DetectorFutureImpl​(java.util.concurrent.CompletableFuture<org.opennms.integration.api.v1.detectors.DetectResults> future)
    • Method Detail

      • getException

        public java.lang.Throwable getException()
        Description copied from interface: DetectFuture

        getException

        Specified by:
        getException in interface DetectFuture
        Returns:
        a Throwable object.
      • setServiceDetected

        public void setServiceDetected​(boolean serviceDetected)
        Description copied from interface: DetectFuture

        setServiceDetected

        Specified by:
        setServiceDetected in interface DetectFuture
        Parameters:
        serviceDetected - a boolean.
      • setException

        public void setException​(java.lang.Throwable throwable)
        Description copied from interface: DetectFuture

        setException

        Specified by:
        setException in interface DetectFuture
        Parameters:
        throwable - a Throwable object.
      • awaitFor

        public void awaitFor()
                      throws java.lang.InterruptedException
        Description copied from interface: DetectFuture

        awaitFor

        Specified by:
        awaitFor in interface DetectFuture
        Throws:
        java.lang.InterruptedException
      • isServiceDetected

        public boolean isServiceDetected()
        Specified by:
        isServiceDetected in interface DetectResults
        Returns:
        true if the service was detected, false otherwise
      • getServiceAttributes

        public java.util.Map<java.lang.String,​java.lang.String> getServiceAttributes()
        Specified by:
        getServiceAttributes in interface DetectResults
        Returns:
        additional attributes from the detector invocation