Class CoexistenceInfo

java.lang.Object
org.snmp4j.agent.mo.snmp.CoexistenceInfo
All Implemented Interfaces:
Serializable, Comparable<CoexistenceInfo>

public class CoexistenceInfo extends Object implements Comparable<CoexistenceInfo>, Serializable
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
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    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.
    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.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Compares this object with the specified object for order.
    boolean
     
    org.snmp4j.smi.OctetString
     
    org.snmp4j.smi.OctetString
     
    int
     
    org.snmp4j.smi.OctetString
     
    org.snmp4j.smi.OctetString
     
    int
     
    void
    setMaxMessageSize(int maxMessageSize)
     
    void
    setTransportTag(org.snmp4j.smi.OctetString transportTag)
     
     

    Methods inherited from class java.lang.Object

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

    • 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 Details

    • 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()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • 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.