Class DiskUsageDetector
- 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.DiskUsageDetector
-
- All Implemented Interfaces:
ServiceDetector
,SyncServiceDetector
public class DiskUsageDetector extends SnmpDetector
DiskUsageDetector 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 DiskUsageDetector()
Constructor for DiskUsageDetector.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDisk()
getDiskjava.lang.String
getHrStorageDescr()
Getter for the fieldhrStorageDescr
.java.lang.String
getMatchType()
getMatchTypejava.lang.String
getProtocolName()
Returns the name of the protocol that this plugin checks on the target system for support.boolean
isProtocolSupported(java.net.InetAddress address)
Returns true if the protocol defined by this plugin is supported.boolean
isServiceDetected(java.net.InetAddress address, SnmpAgentConfig agentConfig)
Returns true if the protocol defined by this plugin is supported.void
setDisk(java.lang.String disk)
setDiskvoid
setHrStorageDescr(java.lang.String hrStorageDescr)
Setter for the fieldhrStorageDescr
.void
setMatchType(java.lang.String matchType)
setMatchType-
Methods inherited from class org.opennms.netmgt.provision.detector.snmp.SnmpDetector
configureAgentPTR, configureAgentVersion, dispose, getAgentConfig, getForceVersion, getHex, getIsTable, getListOfAgentConfigs, getOid, getValue, getVbvalue, isHex, isServiceDetected, onInit, setForceVersion, setHex, setIsTable, setOid, setSnmpDetectorExecutor, 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
-
getProtocolName
public java.lang.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(java.net.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(java.net.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
-
setMatchType
public void setMatchType(java.lang.String matchType)
setMatchType
- Overrides:
setMatchType
in classSnmpDetector
- Parameters:
matchType
- aString
object.
-
getMatchType
public java.lang.String getMatchType()
getMatchType
- Overrides:
getMatchType
in classSnmpDetector
- Returns:
- a
String
object.
-
setDisk
public void setDisk(java.lang.String disk)
setDisk
- Parameters:
disk
- aString
object.
-
getDisk
public java.lang.String getDisk()
getDisk
- Returns:
- a
String
object.
-
setHrStorageDescr
public void setHrStorageDescr(java.lang.String hrStorageDescr)
Setter for the field
hrStorageDescr
.- Parameters:
hrStorageDescr
- aString
object.
-
getHrStorageDescr
public java.lang.String getHrStorageDescr()
Getter for the field
hrStorageDescr
.- Returns:
- a
String
object.
-
-