- java.lang.Object
-
- org.snmp4j.util.TableUtils.TableRequest
-
- All Implemented Interfaces:
java.util.EventListener
,ResponseListener
- Direct Known Subclasses:
TableUtils.DenseTableRequest
- Enclosing class:
- TableUtils
public class TableUtils.TableRequest extends java.lang.Object implements ResponseListener
-
-
Field Summary
Fields Modifier and Type Field Description protected TableUtils.LastReceived
lastReceived
-
Constructor Summary
Constructors Constructor Description TableRequest(Target<?> target, OID[] columnOIDs, TableListener listener, java.lang.Object userObject, OID lowerBoundIndex, OID upperBoundIndex, TableUtils.SparseTableMode sparseTableMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
checkResponse(ResponseEvent event)
int
getNumLexicographicErrors()
Gets the number of lexicographic errors that occurred during request processing.TableUtils.Row
getRow(OID index)
TableUtils.SparseTableMode
getSparseTableMode()
protected int
getTableStatus()
void
onResponse(ResponseEvent event)
Process a SNMP response.protected boolean
removePending(int requestSerial)
protected PDU
sendGetPDU(TableUtils.Row firstCacheRow, ResponseListener responseListener, PDU pdu)
boolean
sendNextChunk()
protected void
sendRequest(PDU pdu, Target<?> target, TableUtils.ColumnsOfRequest sendColumns)
-
-
-
Field Detail
-
lastReceived
protected TableUtils.LastReceived lastReceived
-
-
Constructor Detail
-
TableRequest
public TableRequest(Target<?> target, OID[] columnOIDs, TableListener listener, java.lang.Object userObject, OID lowerBoundIndex, OID upperBoundIndex, TableUtils.SparseTableMode sparseTableMode)
-
-
Method Detail
-
getSparseTableMode
public TableUtils.SparseTableMode getSparseTableMode()
-
getNumLexicographicErrors
public int getNumLexicographicErrors()
Gets the number of lexicographic errors that occurred during request processing. Any errors occurred on the same row will be count as one error.- Returns:
- the number of rows returned by the agent in wrong lexicographic order (i.e. not strictly ascending).
- Since:
- 2.5.11
-
sendNextChunk
public boolean sendNextChunk()
-
sendRequest
protected void sendRequest(PDU pdu, Target<?> target, TableUtils.ColumnsOfRequest sendColumns) throws java.io.IOException
- Throws:
java.io.IOException
-
removePending
protected boolean removePending(int requestSerial)
-
onResponse
public void onResponse(ResponseEvent event)
Description copied from interface:ResponseListener
Process a SNMP response.- Specified by:
onResponse
in interfaceResponseListener
- Parameters:
event
- aResponseEvent
.
-
sendGetPDU
protected PDU sendGetPDU(TableUtils.Row firstCacheRow, ResponseListener responseListener, PDU pdu)
-
getTableStatus
protected int getTableStatus()
-
checkResponse
protected boolean checkResponse(ResponseEvent event)
-
getRow
public TableUtils.Row getRow(OID index)
-
-