Class 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
    • Constructor Summary

      Constructors 
      Constructor Description
      MibObj()  
      MibObj​(java.lang.String oid, java.lang.String instance, java.lang.String alias, java.lang.String type)  
    • 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 identifier
      java.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)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MibObj

        public MibObj()
      • MibObj

        public MibObj​(java.lang.String oid,
                      java.lang.String instance,
                      java.lang.String alias,
                      java.lang.String type)
    • 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 class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object