Package org.snmp4j.agent.mo.snmp
Class CoexistenceInfo
java.lang.Object
org.snmp4j.agent.mo.snmp.CoexistenceInfo
- All Implemented Interfaces:
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
ConstructorsConstructorDescriptionCoexistenceInfo
(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 TypeMethodDescriptionint
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
hashCode()
void
setMaxMessageSize
(int maxMessageSize) void
setTransportTag
(org.snmp4j.smi.OctetString transportTag) toString()
-
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 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 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
-
equals
-
hashCode
public int hashCode() -
compareTo
Compares this object with the specified object for order.- Specified by:
compareTo
in interfaceComparable
- 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.
-