|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.snmp4j.mp.PduHandle
public class PduHandle
The PduHandle
class represents an unique key for a SNMP PDU.
It uses an unique transaction ID (request ID) to identify the PDUs.
Field Summary | |
---|---|
static int |
NONE
|
Constructor Summary | |
---|---|
PduHandle()
Creates a PduHandle with a transaction ID set to NONE . |
|
PduHandle(int transactionID)
Creates a PduHandle for the supplied transaction ID. |
Method Summary | |
---|---|
void |
copyFrom(PduHandle other)
Copy all members from the supplied PduHandle . |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
int |
getTransactionID()
Gets the transaction ID of this handle. |
int |
hashCode()
Returns a hash code value for the object. |
void |
setTransactionID(int transactionID)
Sets the transaction ID which is typically the request ID of the PDU. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int NONE
Constructor Detail |
---|
public PduHandle()
PduHandle
with a transaction ID set to NONE
.
public PduHandle(int transactionID)
PduHandle
for the supplied transaction ID.
transactionID
- an unqiue transaction ID.Method Detail |
---|
public int getTransactionID()
public void setTransactionID(int transactionID)
transactionID
- an unqiue transaction ID.public void copyFrom(PduHandle other)
PduHandle
.
other
- a PduHandle.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the reference object with which to compare.
true
if this object is the same as the obj argument;
false
otherwise.public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
Copyright 2005-2010 Frank Fock (SNMP4J.org) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |