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 booleanequals(Object obj)StringgetAlias()a human readable name for the object (such as "ifOctetsIn").StringgetInstance()instance identifier.StringgetMaxval()Maximum Value.StringgetMinval()Minimum Value.StringgetOid()object identifierStringgetType()SNMP data type SNMP supported types: counter, gauge, timeticks, integer, octetstring, string.inthashCode()voidsetAlias(String alias)voidsetInstance(String instance)voidsetMaxval(String maxval)voidsetMinval(String minval)voidsetOid(String oid)voidsetType(String type)StringtoString()voidvisit(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)
-
-