Class ServiceDetectorImpl

    • Constructor Summary

      Constructors 
      Constructor Description
      ServiceDetectorImpl​(org.opennms.integration.api.v1.detectors.ServiceDetector detector)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      DetectFuture detect​(DetectRequest request)
      detect
      void dispose()
      The detector should clean up after itself in this method if necessary.
      java.lang.String getIpMatch()
      Not supported on ServiceDetector throws UnsupportedOperationException
      int getPort()
      Not supported on ServiceDetector throws UnsupportedOperationException
      java.lang.String getServiceName()
      Requires that all implementations of this API return a service name.
      int getTimeout()
      Not supported on ServiceDetector throws UnsupportedOperationException
      void init()
      Perform any necessary initialization after construction and before detecting.
      void setIpMatch​(java.lang.String ipMatch)
      Not supported on ServiceDetector throws UnsupportedOperationException
      void setPort​(int port)
      Not supported on ServiceDetector throws UnsupportedOperationException
      void setServiceName​(java.lang.String serviceName)
      Not supported on ServiceDetector throws UnsupportedOperationException
      void setTimeout​(int timeout)
      Not supported on ServiceDetector throws UnsupportedOperationException
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ServiceDetectorImpl

        public ServiceDetectorImpl​(org.opennms.integration.api.v1.detectors.ServiceDetector detector)
    • Method Detail

      • init

        public void init()
        Description copied from interface: ServiceDetector
        Perform any necessary initialization after construction and before detecting.
        Specified by:
        init in interface ServiceDetector
      • getServiceName

        public java.lang.String getServiceName()
        Description copied from interface: ServiceDetector
        Requires that all implementations of this API return a service name.
        Specified by:
        getServiceName in interface ServiceDetector
        Returns:
        a String object.
      • setServiceName

        public void setServiceName​(java.lang.String serviceName)
        Not supported on ServiceDetector throws UnsupportedOperationException
        Specified by:
        setServiceName in interface ServiceDetector
        Parameters:
        serviceName - a String object.
      • getPort

        public int getPort()
        Not supported on ServiceDetector throws UnsupportedOperationException
        Specified by:
        getPort in interface ServiceDetector
      • setPort

        public void setPort​(int port)
        Not supported on ServiceDetector throws UnsupportedOperationException
        Specified by:
        setPort in interface ServiceDetector
      • getTimeout

        public int getTimeout()
        Not supported on ServiceDetector throws UnsupportedOperationException
        Specified by:
        getTimeout in interface ServiceDetector
      • setTimeout

        public void setTimeout​(int timeout)
        Not supported on ServiceDetector throws UnsupportedOperationException
        Specified by:
        setTimeout in interface ServiceDetector
      • getIpMatch

        public java.lang.String getIpMatch()
        Not supported on ServiceDetector throws UnsupportedOperationException
        Specified by:
        getIpMatch in interface ServiceDetector
      • setIpMatch

        public void setIpMatch​(java.lang.String ipMatch)
        Not supported on ServiceDetector throws UnsupportedOperationException
        Specified by:
        setIpMatch in interface ServiceDetector
      • dispose

        public void dispose()
        Description copied from interface: ServiceDetector
        The detector should clean up after itself in this method if necessary.
        Specified by:
        dispose in interface ServiceDetector