|
SNMP Stack 4_12 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--uk.co.westhawk.snmp.pdu.BlockPdu
The BlockPdu class is a wrapper class that will block until it receives the answer.
Pdu| Field Summary | |
static int |
GET
The GET pdu type. |
static int |
GETBULK
The GETBULK pdu type. |
static int |
GETNEXT
The GETNEXT pdu type. |
protected java.util.Vector |
reqVarbinds
|
static int |
SET
The SET pdu type. |
| Constructor Summary | |
BlockPdu(SnmpContextBasisFace con)
Constructor. |
|
| Method Summary | |
void |
addOid(AsnObjectId oid)
Add an OID (object identifier) to the Pdu. |
void |
addOid(AsnObjectId oid,
AsnObject val)
Add an OID (object identifier) to the Pdu and the value that has to be set. |
void |
addOid(java.lang.String oid)
Adds an OID to the Pdu. |
void |
addOid(java.lang.String[] oids)
Adds a list of OIDs to the Pdu. |
void |
addOid(java.lang.String oid,
AsnObject val)
Adds an OID to the Pdu and the value that has to be set. |
void |
addOid(varbind var)
Add an OID (object identifier) to the Pdu. |
int |
getErrorIndex()
Returns the error index of the pdu. |
int |
getErrorStatus()
Returns the error status of the pdu. |
java.lang.String |
getErrorStatusString()
Returns the error status string of the pdu. |
AsnObject |
getResponseVariable()
Sends the request and waits (blocks) for the response. |
varbind |
getResponseVariableBinding()
Sends the request and waits (blocks) for the response. |
varbind[] |
getResponseVariableBindings()
Sends the request and waits (blocks) for the response. |
AsnObject[] |
getResponseVariables()
Sends the request and waits (blocks) for the response. |
protected varbind[] |
sendAndWait()
Sends the request and waits (blocks) for the response. |
void |
setBulkParameters(int nr,
int mr)
Sets the getBulkRequest parameters. |
void |
setPduType(int newType)
Sets the type of pdu. |
void |
setRetryIntervals(int[] retryIntervals)
Sets the retry intervals of the Pdu. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int GET
public static final int SET
public static final int GETNEXT
public static final int GETBULK
protected java.util.Vector reqVarbinds
| Constructor Detail |
public BlockPdu(SnmpContextBasisFace con)
con - The context of the request| Method Detail |
public void addOid(java.lang.String oid)
oid - The oidPdu.addOid(String)
public void addOid(java.lang.String oid,
AsnObject val)
oid - The oidPdu.addOid(String, AsnObject),
SET
public void addOid(AsnObjectId oid,
AsnObject val)
oid - The oidval - The valuePdu.addOid(AsnObjectId, AsnObject),
varbindpublic void addOid(AsnObjectId oid)
oid - The oidPdu.addOid(AsnObjectId),
varbindpublic void addOid(varbind var)
var - The varbindaddOid(String)
public void setBulkParameters(int nr,
int mr)
nr - The non repeaters.mr - The max repetitions.GetBulkPdu.setMaxRepetitions(int),
GetBulkPdu.setNonRepeaters(int),
GETBULKpublic void addOid(java.lang.String[] oids)
oids - The OIDs to be addedpublic void setPduType(int newType)
newType - The type of requestGET,
SET,
GETNEXT,
GETBULKpublic void setRetryIntervals(int[] retryIntervals)
retryIntervals - The interval in msec of each retryPdu.setRetryIntervals(int[])
public AsnObject getResponseVariable()
throws PduException,
java.io.IOException
sendAndWait()
public AsnObject[] getResponseVariables()
throws PduException,
java.io.IOException
sendAndWait()
public varbind getResponseVariableBinding()
throws PduException,
java.io.IOException
sendAndWait()
public varbind[] getResponseVariableBindings()
throws PduException,
java.io.IOException
sendAndWait()
protected varbind[] sendAndWait()
throws PduException,
java.io.IOException
Pdu.send(),
Pdu.waitForSelf(),
Pdu.getResponseVarbinds()public int getErrorIndex()
Pdu.getErrorIndex()public int getErrorStatus()
Pdu.getErrorStatus()public java.lang.String getErrorStatusString()
Pdu.getErrorStatusString()
|
SNMP Stack 4_12 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||