org.snmp4j.agent.mo.snmp
Class CoexistenceInfo

java.lang.Object
  extended by org.snmp4j.agent.mo.snmp.CoexistenceInfo
All Implemented Interfaces:
java.lang.Comparable

public class CoexistenceInfo
extends java.lang.Object
implements java.lang.Comparable

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 Summary
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
 int compareTo(java.lang.Object o)
          Compares this object with the specified object for order.
 boolean equals(java.lang.Object o)
           
 org.snmp4j.smi.OctetString getContextEngineID()
           
 org.snmp4j.smi.OctetString getContextName()
           
 int getMaxMessageSize()
           
 org.snmp4j.smi.OctetString getSecurityName()
           
 org.snmp4j.smi.OctetString getTransportTag()
           
 int hashCode()
           
 void setMaxMessageSize(int maxMessageSize)
           
 void setTransportTag(org.snmp4j.smi.OctetString transportTag)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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

toString

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

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

compareTo

public int compareTo(java.lang.Object o)
Compares this object with the specified object for order.

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
o - 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.

Copyright 2005-2010 Frank Fock (SNMP4J.org)

Copyright © 2011 SNMP4J.org. All Rights Reserved.