- java.lang.Object
-
- org.snmp4j.agent.mo.snmp.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 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(CoexistenceInfo other)
Compares this object with the specified object for order.boolean
equals(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)
String
toString()
-
-
-
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 nametransportTag
- 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()
-
compareTo
public int compareTo(CoexistenceInfo other)
Compares this object with the specified object for order.- Specified by:
compareTo
in interfaceComparable<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.
-
-