Class AgentBasedSyncAbstractDetector<T>
- java.lang.Object
-
- org.opennms.netmgt.provision.support.AbstractDetector
-
- org.opennms.netmgt.provision.support.AgentBasedSyncAbstractDetector<T>
-
- All Implemented Interfaces:
ServiceDetector,SyncServiceDetector
- Direct Known Subclasses:
ActiveMQDetector,SnmpDetector,WmiDetector
public abstract class AgentBasedSyncAbstractDetector<T> extends AbstractDetector implements SyncServiceDetector
-
-
Field Summary
Fields Modifier and Type Field Description static StringHAS_MULTIPLE_AGENT_CONFIGS
-
Constructor Summary
Constructors Modifier Constructor Description protectedAgentBasedSyncAbstractDetector(String serviceName, int port)AgentBasedSyncAbstractDetector(String serviceName, int port, int defaultTimeout, int defaultRetries)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description DetectResultsdetect(DetectRequest request)detectabstract TgetAgentConfig(DetectRequest request)List<T>getListOfAgentConfigs(DetectRequest request)Override this if detector can support multiple agent configs.protected static booleanhasMultipleAgentConfigs(Map<String,String> runTimeAttributes)booleanisServiceDetected(InetAddress address, List<T> agentConfigList)abstract booleanisServiceDetected(InetAddress address, T agentConfig)-
Methods inherited from class org.opennms.netmgt.provision.support.AbstractDetector
dispose, getIpMatch, getPort, getRetries, getServiceName, getTimeout, init, onInit, setIpMatch, setPort, setRetries, setServiceName, setTimeout
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opennms.netmgt.provision.ServiceDetector
dispose, getIpMatch, getPort, getServiceName, getTimeout, init, setIpMatch, setPort, setServiceName, setTimeout
-
-
-
-
Field Detail
-
HAS_MULTIPLE_AGENT_CONFIGS
public static final String HAS_MULTIPLE_AGENT_CONFIGS
- See Also:
- Constant Field Values
-
-
Method Detail
-
detect
public DetectResults detect(DetectRequest request)
Description copied from interface:SyncServiceDetectordetect
- Specified by:
detectin interfaceSyncServiceDetector- Parameters:
request- aDetectRequestobject.- Returns:
-
getAgentConfig
public abstract T getAgentConfig(DetectRequest request)
-
isServiceDetected
public abstract boolean isServiceDetected(InetAddress address, T agentConfig)
-
getListOfAgentConfigs
public List<T> getListOfAgentConfigs(DetectRequest request)
Override this if detector can support multiple agent configs.
-
isServiceDetected
public boolean isServiceDetected(InetAddress address, List<T> agentConfigList)
-
-