Class HostResourceSWRunDetector
- java.lang.Object
-
- org.opennms.netmgt.provision.support.AbstractDetector
-
- org.opennms.netmgt.provision.support.AgentBasedSyncAbstractDetector<SnmpAgentConfig>
-
- org.opennms.netmgt.provision.detector.snmp.SnmpDetector
-
- org.opennms.netmgt.provision.detector.snmp.HostResourceSWRunDetector
-
- All Implemented Interfaces:
ServiceDetector
,SyncServiceDetector
public class HostResourceSWRunDetector extends SnmpDetector
HostResourceSWRunDetector class.
- Version:
- $Id: $
- Author:
- ranger
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opennms.netmgt.provision.detector.snmp.SnmpDetector
SnmpDetector.MatchType
-
-
Field Summary
-
Fields inherited from class org.opennms.netmgt.provision.detector.snmp.SnmpDetector
DEFAULT_SERVICE_NAME
-
Fields inherited from class org.opennms.netmgt.provision.support.AgentBasedSyncAbstractDetector
HAS_MULTIPLE_AGENT_CONFIGS
-
-
Constructor Summary
Constructors Constructor Description HostResourceSWRunDetector()
Constructor for HostResourceSWRunDetector.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getServiceNameOid()
getServiceNameOidString
getServiceToDetect()
getServiceToDetectboolean
isServiceDetected(InetAddress address, SnmpAgentConfig agentConfig)
Returns true if the protocol defined by this plugin is supported.void
setServiceNameOid(String serviceNameOid)
setServiceNameOidvoid
setServiceToDetect(String hostService)
setServiceToDetect-
Methods inherited from class org.opennms.netmgt.provision.detector.snmp.SnmpDetector
configureAgentPTR, configureAgentVersion, dispose, getAgentConfig, getForceVersion, getHex, getIsTable, getListOfAgentConfigs, getMatchType, getOid, getTtl, getUseSnmpProfiles, getValue, getVbvalue, isHex, isServiceDetected, onInit, setForceVersion, setHex, setIsTable, setMatchType, setOid, setSnmpDetectorExecutor, setTtl, setUseSnmpProfiles, setVbvalue
-
Methods inherited from class org.opennms.netmgt.provision.support.AgentBasedSyncAbstractDetector
detect, hasMultipleAgentConfigs
-
Methods inherited from class org.opennms.netmgt.provision.support.AbstractDetector
getIpMatch, getPort, getRetries, getServiceName, getTimeout, init, 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
getIpMatch, getPort, getServiceName, getTimeout, init, setIpMatch, setPort, setServiceName, setTimeout
-
-
-
-
Method Detail
-
isServiceDetected
public boolean isServiceDetected(InetAddress address, SnmpAgentConfig agentConfig)
Returns true if the protocol defined by this plugin is supported. If the protocol is not supported then a false value is returned to the caller. The qualifier map passed to the method is used by the plugin to return additional information by key-name. These key-value pairs can be added to service events if needed.- Overrides:
isServiceDetected
in classSnmpDetector
-
setServiceNameOid
public void setServiceNameOid(String serviceNameOid)
setServiceNameOid
- Parameters:
serviceNameOid
- aString
object.
-
setServiceToDetect
public void setServiceToDetect(String hostService)
setServiceToDetect
- Parameters:
hostService
- aString
object.
-
-