public class GenericSnmpDetectorFactory<T extends SnmpDetector> extends GenericServiceDetectorFactory<SnmpDetector>
Constructor and Description |
---|
GenericSnmpDetectorFactory(Class<T> clazz) |
Modifier and Type | Method and 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()
Instantiates a new detector.
|
Map<String,String> |
getRuntimeAttributes(String location,
InetAddress address) |
void |
setAgentConfigFactory(SnmpAgentConfigFactory agentConfigFactory) |
afterDetect, getDetectorClass
public T createDetector()
ServiceDetectorFactory
createDetector
in interface ServiceDetectorFactory<SnmpDetector>
createDetector
in class GenericServiceDetectorFactory<SnmpDetector>
public DetectRequest buildRequest(String location, InetAddress address, Integer port, Map<String,String> attributes)
ServiceDetectorFactory
buildRequest
in interface ServiceDetectorFactory<SnmpDetector>
buildRequest
in class GenericServiceDetectorFactory<SnmpDetector>
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 invokedDetectRequest
public Map<String,String> getRuntimeAttributes(String location, InetAddress address)
public void setAgentConfigFactory(SnmpAgentConfigFactory agentConfigFactory)
Copyright © 2017. All rights reserved.