Class SnmpDetectorFactory
- java.lang.Object
-
- org.opennms.netmgt.provision.support.GenericServiceDetectorFactory<SnmpDetector>
-
- org.opennms.netmgt.provision.detector.snmp.GenericSnmpDetectorFactory<SnmpDetector>
-
- org.opennms.netmgt.provision.detector.snmp.SnmpDetectorFactory
-
- All Implemented Interfaces:
ServiceDetectorFactory<SnmpDetector>
@Component public class SnmpDetectorFactory extends GenericSnmpDetectorFactory<SnmpDetector>
-
-
Constructor Summary
Constructors Constructor Description SnmpDetectorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class org.opennms.netmgt.provision.detector.snmp.GenericSnmpDetectorFactory
buildRequest, getAgentConfigFactory, setAgentConfigFactory
-
Methods inherited from class org.opennms.netmgt.provision.support.GenericServiceDetectorFactory
afterDetect, getDetectorClass, setBeanProperties
-
-
-
-
Method Detail
-
createDetector
public SnmpDetector createDetector(Map<String,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);
- Specified by:
createDetector
in interfaceServiceDetectorFactory<SnmpDetector>
- Overrides:
createDetector
in classGenericSnmpDetectorFactory<SnmpDetector>
- Parameters:
properties
- are used to set properties on detector bean.
-
getRuntimeAttributes
public Map<String,String> getRuntimeAttributes(String location, InetAddress address)
- Overrides:
getRuntimeAttributes
in classGenericSnmpDetectorFactory<SnmpDetector>
-
destroy
@PreDestroy public void destroy()
-
-