public class SnmpWalkTable extends Object
Modifier and Type | Method and Description |
---|---|
void |
addEndResponse(SnmpResponse response,
int nValidVBs)
Set the end response, if nValidVBs > 0 there are valid variable bindings in the last response.
|
void |
addResponse(SnmpResponse response)
Adds the response to the list.
|
int |
getNumCols()
Returns the number of columns in the walk table.
|
int |
getNumRows()
Returns the number of valid rows in all the responses.
|
int |
getNumRowsPerResponse()
Returns the number of rows per response.
|
SnmpField |
getOid(int r,
int c)
Use this method to access the OID at the specified row and column.
|
SnmpField |
getVal(int r,
int c)
Use this method to access the value at the specified row and column.
|
String |
toString()
Returns a display string representation of the walk table.
|
String |
toStringColRow()
Returns a display string representation of the walk table in column-row order.
|
public void addResponse(SnmpResponse response)
response
- message to addpublic void addEndResponse(SnmpResponse response, int nValidVBs)
response
- message to set as the end messagenValidVBs
- integer number of valid variable bindings in the messagepublic int getNumRows()
public int getNumCols()
public int getNumRowsPerResponse()
public SnmpField getOid(int r, int c)
r
- table row indexc
- table column indexpublic SnmpField getVal(int r, int c)
c
- table column indexr
- table row indexpublic String toString()
public String toStringColRow()
Copyright © 2015. All Rights Reserved.