Interface ServiceDetectorFactory<T extends ServiceDetector>

    • Method Detail

      • getDetectorClass

        Class<T> getDetectorClass()
        Used by the detector registry to track and index the detector types.
      • createDetector

        T createDetector​(Map<String,​String> properties)
        Instantiates a new detector and set bean properties. One of the ways to set bean properties is using Spring @BeanWrapper
         
                 BeanWrapper wrapper = PropertyAccessorFactory.forBeanPropertyAccess(serviceDetector);
                 wrapper.setPropertyValues(properties);
         
         
        Detectors are treated as protoypes and should only be used for a single call to "isServiceDetected".
        Parameters:
        properties - are used to set properties on detector bean.
      • buildRequest

        DetectRequest buildRequest​(String location,
                                   InetAddress address,
                                   Integer port,
                                   Map<String,​String> attributes)
        Builds the request that will be used to invoke the detector.
        Parameters:
        location - name of the location in which the detector will be invoked
        address - address of the agent against which the detector will be invoked
        port - port of the agent against which the detector will be invoked
        Returns:
        a new DetectRequest