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 java.lang.String
HAS_MULTIPLE_AGENT_CONFIGS
-
Constructor Summary
Constructors Modifier Constructor Description protected
AgentBasedSyncAbstractDetector(java.lang.String serviceName, int port)
AgentBasedSyncAbstractDetector(java.lang.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)
java.util.List<T>
getListOfAgentConfigs(DetectRequest request)
Override this if detector can support multiple agent configs.protected static boolean
hasMultipleAgentConfigs(java.util.Map<java.lang.String,java.lang.String> runTimeAttributes)
boolean
isServiceDetected(java.net.InetAddress address, java.util.List<T> agentConfigList)
abstract boolean
isServiceDetected(java.net.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 java.lang.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(java.net.InetAddress address, T agentConfig)
-
getListOfAgentConfigs
public java.util.List<T> getListOfAgentConfigs(DetectRequest request)
Override this if detector can support multiple agent configs.
-
isServiceDetected
public boolean isServiceDetected(java.net.InetAddress address, java.util.List<T> agentConfigList)
-
hasMultipleAgentConfigs
protected static boolean hasMultipleAgentConfigs(java.util.Map<java.lang.String,java.lang.String> runTimeAttributes)
-
-