Class IcmpDetectorFactory

    • Constructor Detail

      • IcmpDetectorFactory

        public IcmpDetectorFactory()
    • Method Detail

      • createDetector

        public IcmpDetector createDetector​(java.util.Map<java.lang.String,​java.lang.String> properties)
        Description copied from interface: ServiceDetectorFactory
        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".
        Specified by:
        createDetector in interface ServiceDetectorFactory<IcmpDetector>
        Overrides:
        createDetector in class GenericServiceDetectorFactory<IcmpDetector>
        Parameters:
        properties - are used to set properties on detector bean.
      • setPingerFactory

        public void setPingerFactory​(PingerFactory pingerFactory)