Class GenericSnmpDetectorFactory<T extends SnmpDetector>
- java.lang.Object
-
- org.opennms.netmgt.provision.support.GenericServiceDetectorFactory<SnmpDetector>
-
- org.opennms.netmgt.provision.detector.snmp.GenericSnmpDetectorFactory<T>
-
- All Implemented Interfaces:
ServiceDetectorFactory<SnmpDetector>
- Direct Known Subclasses:
BgpSessionDetectorFactory
,CiscoIpSlaDetectorFactory
,DiskUsageDetectorFactory
,HostResourceSWRunDetectorFactory
,OmsaStorageDetectorFactory
,OpenManageChassisDetectorFactory
,PercDetectorFactory
,SnmpDetectorFactory
,Win32ServiceDetectorFactory
public class GenericSnmpDetectorFactory<T extends SnmpDetector> extends GenericServiceDetectorFactory<SnmpDetector>
-
-
Constructor Summary
Constructors Constructor Description GenericSnmpDetectorFactory(Class<T> clazz)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DetectRequest
buildRequest(String location, InetAddress address, Integer port, Map<String,String> attributes)
Builds the request that will be used to invoke the detector.T
createDetector(Map<String,String> properties)
Instantiates a new detector and set bean properties.SnmpAgentConfigFactory
getAgentConfigFactory()
Map<String,String>
getRuntimeAttributes(String location, InetAddress address)
void
setAgentConfigFactory(SnmpAgentConfigFactory agentConfigFactory)
-
Methods inherited from class org.opennms.netmgt.provision.support.GenericServiceDetectorFactory
afterDetect, getDetectorClass, setBeanProperties
-
-
-
-
Method Detail
-
createDetector
public T 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<T extends SnmpDetector>
- Overrides:
createDetector
in classGenericServiceDetectorFactory<SnmpDetector>
- Parameters:
properties
- are used to set properties on detector bean.
-
buildRequest
public DetectRequest buildRequest(String location, InetAddress address, Integer port, Map<String,String> attributes)
Description copied from interface:ServiceDetectorFactory
Builds the request that will be used to invoke the detector.- Specified by:
buildRequest
in interfaceServiceDetectorFactory<T extends SnmpDetector>
- Overrides:
buildRequest
in classGenericServiceDetectorFactory<SnmpDetector>
- Parameters:
location
- name of the location in which the detector will be invokedaddress
- address of the agent against which the detector will be invokedport
- port of the agent against which the detector will be invoked- Returns:
- a new
DetectRequest
-
getRuntimeAttributes
public Map<String,String> getRuntimeAttributes(String location, InetAddress address)
-
setAgentConfigFactory
public void setAgentConfigFactory(SnmpAgentConfigFactory agentConfigFactory)
-
getAgentConfigFactory
public SnmpAgentConfigFactory getAgentConfigFactory()
-
-