@Component public class IcmpDetectorFactory extends GenericServiceDetectorFactory<IcmpDetector>
Constructor and Description |
---|
IcmpDetectorFactory() |
Modifier and Type | Method and Description |
---|---|
IcmpDetector |
createDetector(Map<String,String> properties)
Instantiates a new detector and set bean properties.
|
void |
setPingerFactory(PingerFactory pingerFactory) |
afterDetect, buildRequest, getDetectorClass, setBeanProperties
public IcmpDetector createDetector(Map<String,String> properties)
ServiceDetectorFactory
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".createDetector
in interface ServiceDetectorFactory<IcmpDetector>
createDetector
in class GenericServiceDetectorFactory<IcmpDetector>
properties
- are used to set properties on detector bean.public void setPingerFactory(PingerFactory pingerFactory)
Copyright © 2020. All rights reserved.