Class MibObj
- java.lang.Object
-
- org.opennms.netmgt.config.datacollection.MibObj
-
- All Implemented Interfaces:
Serializable
public class MibObj extends Object implements Serializable
a MIB object- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getAlias()
a human readable name for the object (such as "ifOctetsIn").String
getInstance()
instance identifier.String
getMaxval()
Maximum Value.String
getMinval()
Minimum Value.String
getOid()
object identifierString
getType()
SNMP data type SNMP supported types: counter, gauge, timeticks, integer, octetstring, string.int
hashCode()
void
setAlias(String alias)
void
setInstance(String instance)
void
setMaxval(String maxval)
void
setMinval(String minval)
void
setOid(String oid)
void
setType(String type)
String
toString()
void
visit(DatacollectionConfigVisitor visitor)
-
-
-
Method Detail
-
getOid
public String getOid()
object identifier
-
setOid
public void setOid(String oid)
-
getInstance
public String getInstance()
instance identifier. Only valid instance identifier values are a positive integer value or the keyword "ifIndex" which indicates that the ifIndex of the interface is to be substituted for the instance value for each interface the oid is retrieved for.
-
setInstance
public void setInstance(String instance)
-
getAlias
public String getAlias()
a human readable name for the object (such as "ifOctetsIn"). NOTE: This value is used as the RRD file name and data source name. RRD only supports data source names up to 19 chars in length. If the SNMP data collector encounters an alias which exceeds 19 characters it will be truncated.
-
setAlias
public void setAlias(String alias)
-
getType
public String getType()
SNMP data type SNMP supported types: counter, gauge, timeticks, integer, octetstring, string. The SNMP type is mapped to one of two RRD supported data types COUNTER or GAUGE, or the string.properties file. The mapping is as follows: SNMP counter -> RRD COUNTER; SNMP gauge, timeticks, integer, octetstring -> RRD GAUGE; SNMP string -> String properties file
-
setType
public void setType(String type)
-
getMaxval
public String getMaxval()
Maximum Value. In order to correctly manage counter wraps, it is possible to add a maximum value for a collection. For example, a 32-bit counter would have a max value of 4294967295.
-
setMaxval
public void setMaxval(String maxval)
-
getMinval
public String getMinval()
Minimum Value. For completeness, adding the ability to use a minimum value.
-
setMinval
public void setMinval(String minval)
-
visit
public void visit(DatacollectionConfigVisitor visitor)
-
-