org.opennms.netmgt.provision.detector.snmp
Class HostResourceSWRunDetector

java.lang.Object
  extended by org.opennms.netmgt.provision.support.AbstractDetector
      extended by org.opennms.netmgt.provision.detector.snmp.SnmpDetector
          extended by org.opennms.netmgt.provision.detector.snmp.HostResourceSWRunDetector
All Implemented Interfaces:
ServiceDetector, SyncServiceDetector

@Component
@Scope(value="prototype")
public class HostResourceSWRunDetector
extends SnmpDetector


Nested Class Summary
 
Nested classes/interfaces inherited from class org.opennms.netmgt.provision.detector.snmp.SnmpDetector
SnmpDetector.SnmpExchange
 
Field Summary
 
Fields inherited from class org.opennms.netmgt.provision.detector.snmp.SnmpDetector
DEFAULT_SERVICE_NAME
 
Constructor Summary
HostResourceSWRunDetector()
          Constructor for HostResourceSWRunDetector.
 
Method Summary
 String getServiceNameOid()
          getServiceNameOid
 String getServiceToDetect()
          getServiceToDetect
 boolean isServiceDetected(InetAddress address, DetectorMonitor detectMonitor)
          isServiceDetected
 void setServiceNameOid(String serviceNameOid)
          setServiceNameOid
 void setServiceToDetect(String hostService)
          setServiceToDetect
 
Methods inherited from class org.opennms.netmgt.provision.detector.snmp.SnmpDetector
configureAgentPTR, configureAgentVersion, dispose, getAgentConfigFactory, getForceVersion, getOid, getValue, getVbvalue, init, onInit, setAgentConfigFactory, setForceVersion, setOid, setVbvalue
 
Methods inherited from class org.opennms.netmgt.provision.support.AbstractDetector
getPort, getRetries, getServiceName, getTimeout, log, setPort, setRetries, setServiceName, setTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HostResourceSWRunDetector

public HostResourceSWRunDetector()

Constructor for HostResourceSWRunDetector.

Method Detail

isServiceDetected

public boolean isServiceDetected(InetAddress address,
                                 DetectorMonitor detectMonitor)

isServiceDetected

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.

Specified by:
isServiceDetected in interface SyncServiceDetector
Overrides:
isServiceDetected in class SnmpDetector
Parameters:
address - a InetAddress object.
detectMonitor - a DetectorMonitor object.
Returns:
a boolean.

setServiceNameOid

public void setServiceNameOid(String serviceNameOid)

setServiceNameOid

Parameters:
serviceNameOid - a String object.

getServiceNameOid

public String getServiceNameOid()

getServiceNameOid

Returns:
a String object.

setServiceToDetect

public void setServiceToDetect(String hostService)

setServiceToDetect

Parameters:
hostService - a String object.

getServiceToDetect

public String getServiceToDetect()

getServiceToDetect

Returns:
a String object.


Copyright © 2011. All Rights Reserved.