Class WsManWQLDetectorFactory
- java.lang.Object
-
- org.opennms.netmgt.provision.support.GenericServiceDetectorFactory<WsManWQLDetector>
-
- org.opennms.netmgt.provision.detector.wsman.WsManWQLDetectorFactory
-
- All Implemented Interfaces:
ServiceDetectorFactory<WsManWQLDetector>
@Component public class WsManWQLDetectorFactory extends GenericServiceDetectorFactory<WsManWQLDetector>
-
-
Constructor Summary
Constructors Constructor Description WsManWQLDetectorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DetectRequest
buildRequest(java.lang.String location, java.net.InetAddress address, java.lang.Integer port, java.util.Map<java.lang.String,java.lang.String> attributes)
Builds the request that will be used to invoke the detector.WsManWQLDetector
createDetector(java.util.Map<java.lang.String,java.lang.String> properties)
Instantiates a new detector and set bean properties.-
Methods inherited from class org.opennms.netmgt.provision.support.GenericServiceDetectorFactory
afterDetect, getDetectorClass, setBeanProperties
-
-
-
-
Method Detail
-
createDetector
public WsManWQLDetector 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);
- Specified by:
createDetector
in interfaceServiceDetectorFactory<WsManWQLDetector>
- Overrides:
createDetector
in classGenericServiceDetectorFactory<WsManWQLDetector>
- Parameters:
properties
- are used to set properties on detector bean.
-
buildRequest
public DetectRequest buildRequest(java.lang.String location, java.net.InetAddress address, java.lang.Integer port, java.util.Map<java.lang.String,java.lang.String> attributes)
Description copied from interface:ServiceDetectorFactory
Builds the request that will be used to invoke the detector.- Specified by:
buildRequest
in interfaceServiceDetectorFactory<WsManWQLDetector>
- Overrides:
buildRequest
in classGenericServiceDetectorFactory<WsManWQLDetector>
- 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
-
-