Class MibObj
- java.lang.Object
-
- org.opennms.netmgt.config.datacollection.MibObj
-
- All Implemented Interfaces:
java.io.Serializable
public class MibObj extends java.lang.Object implements java.io.Serializable
a MIB object- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getAlias()
a human readable name for the object (such as "ifOctetsIn").java.lang.String
getInstance()
instance identifier.java.lang.String
getMaxval()
Maximum Value.java.lang.String
getMinval()
Minimum Value.java.lang.String
getOid()
object identifierjava.lang.String
getType()
SNMP data type SNMP supported types: counter, gauge, timeticks, integer, octetstring, string.int
hashCode()
void
setAlias(java.lang.String alias)
void
setInstance(java.lang.String instance)
void
setMaxval(java.lang.String maxval)
void
setMinval(java.lang.String minval)
void
setOid(java.lang.String oid)
void
setType(java.lang.String type)
java.lang.String
toString()
void
visit(DatacollectionConfigVisitor visitor)
-
-
-
Method Detail
-
getOid
public java.lang.String getOid()
object identifier
-
setOid
public void setOid(java.lang.String oid)
-
getInstance
public java.lang.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(java.lang.String instance)
-
getAlias
public java.lang.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(java.lang.String alias)
-
getType
public java.lang.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(java.lang.String type)
-
getMaxval
public java.lang.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(java.lang.String maxval)
-
getMinval
public java.lang.String getMinval()
Minimum Value. For completeness, adding the ability to use a minimum value.
-
setMinval
public void setMinval(java.lang.String minval)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
visit
public void visit(DatacollectionConfigVisitor visitor)
-
-