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 String
HAS_MULTIPLE_AGENT_CONFIGS
-
Constructor Summary
Constructors Modifier Constructor Description protected
AgentBasedSyncAbstractDetector(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 DetectResults
detect(DetectRequest request)
detectabstract T
getAgentConfig(DetectRequest request)
List<T>
getListOfAgentConfigs(DetectRequest request)
Override this if detector can support multiple agent configs.protected static boolean
hasMultipleAgentConfigs(Map<String,String> runTimeAttributes)
boolean
isServiceDetected(InetAddress address, List<T> agentConfigList)
abstract boolean
isServiceDetected(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:SyncServiceDetector
detect
- Specified by:
detect
in interfaceSyncServiceDetector
- Parameters:
request
- aDetectRequest
object.- 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)
-
-