org.opennms.netmgt.provision.detector.snmp
Class DiskUsageDetector
java.lang.Object
org.opennms.netmgt.provision.support.AbstractDetector
org.opennms.netmgt.provision.detector.snmp.SnmpDetector
org.opennms.netmgt.provision.detector.snmp.DiskUsageDetector
- All Implemented Interfaces:
- ServiceDetector, SyncServiceDetector
@Component
@Scope(value="prototype")
public class DiskUsageDetector
- extends SnmpDetector
| 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DiskUsageDetector
public DiskUsageDetector()
getProtocolName
public String getProtocolName()
- Returns the name of the protocol that this plugin checks on the target
system for support.
- Returns:
- The protocol name for this plugin.
isProtocolSupported
public boolean isProtocolSupported(InetAddress address)
- 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.
- Parameters:
address - The address to check for support.
- Returns:
- True if the protocol is supported by the address.
isServiceDetected
public boolean isServiceDetected(InetAddress address,
DetectorMonitor detectMonitor)
- 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 - The address to check for support.qualifiers - The map where qualification are set by the plugin.
- Returns:
- True if the protocol is supported by the address.
setMatchType
public void setMatchType(String matchType)
getMatchType
public String getMatchType()
setDisk
public void setDisk(String disk)
getDisk
public String getDisk()
setHrStorageDescr
public void setHrStorageDescr(String hrStorageDescr)
getHrStorageDescr
public String getHrStorageDescr()
Copyright © 2009. All Rights Reserved.