@Component public class SnmpDetectorFactory extends GenericSnmpDetectorFactory<SnmpDetector>
Constructor and Description |
---|
SnmpDetectorFactory() |
Modifier and Type | Method and Description |
---|---|
SnmpDetector |
createDetector(Map<String,String> properties)
Instantiates a new detector and set bean properties.
|
void |
destroy() |
Map<String,String> |
getRuntimeAttributes(String location,
InetAddress address) |
buildRequest, getAgentConfigFactory, setAgentConfigFactory
afterDetect, getDetectorClass, setBeanProperties
public SnmpDetector 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<SnmpDetector>
createDetector
in class GenericSnmpDetectorFactory<SnmpDetector>
properties
- are used to set properties on detector bean.public Map<String,String> getRuntimeAttributes(String location, InetAddress address)
getRuntimeAttributes
in class GenericSnmpDetectorFactory<SnmpDetector>
@PreDestroy public void destroy()
Copyright © 2020. All rights reserved.