Class CoexistenceInfo

  • All Implemented Interfaces:
    Comparable<CoexistenceInfo>

    public class CoexistenceInfo
    extends Object
    implements Comparable<CoexistenceInfo>
    A coexistence information object has attributes needed to map messages between different versions of the SNMP protocol. A good portion of those attributes are from the SNMP-COMMUNITY-MIB.
    Version:
    1.0
    Author:
    Frank Fock
    • Constructor Detail

      • CoexistenceInfo

        public CoexistenceInfo​(org.snmp4j.smi.OctetString securityName,
                               org.snmp4j.smi.OctetString contextEngineID,
                               org.snmp4j.smi.OctetString contextName)
        Creates an context info object based on a security name, context engine ID, and context name. The transport tag is not defined (= null).
        Parameters:
        securityName - a security name.
        contextEngineID - a context engine ID.
        contextName - a context name
      • CoexistenceInfo

        public CoexistenceInfo​(org.snmp4j.smi.OctetString securityName,
                               org.snmp4j.smi.OctetString contextEngineID,
                               org.snmp4j.smi.OctetString contextName,
                               org.snmp4j.smi.OctetString transportTag)
        Creates an context info object based on a security name, context engine ID, context name, and transport tag.
        Parameters:
        securityName - a security name.
        contextEngineID - a context engine ID.
        contextName - a context name
        transportTag - a tag identifying the transport within the SNMP-TARGET-MIB that is associated with the SNMP message on behalf of which this coexistence information is created.
    • Method Detail

      • setTransportTag

        public void setTransportTag​(org.snmp4j.smi.OctetString transportTag)
      • setMaxMessageSize

        public void setMaxMessageSize​(int maxMessageSize)
      • getSecurityName

        public org.snmp4j.smi.OctetString getSecurityName()
      • getContextEngineID

        public org.snmp4j.smi.OctetString getContextEngineID()
      • getContextName

        public org.snmp4j.smi.OctetString getContextName()
      • getTransportTag

        public org.snmp4j.smi.OctetString getTransportTag()
      • getMaxMessageSize

        public int getMaxMessageSize()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • compareTo

        public int compareTo​(CoexistenceInfo other)
        Compares this object with the specified object for order.
        Specified by:
        compareTo in interface Comparable<CoexistenceInfo>
        Parameters:
        other - the Object to be compared.
        Returns:
        a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.