- 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 <A extends Address>
booleancheckResponse(ResponseEvent<A> 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()
<A extends Address>
voidonResponse(ResponseEvent<A> 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 <A extends Address> void onResponse(ResponseEvent<A> event)
Description copied from interface:ResponseListener
Process a SNMP response.- Specified by:
onResponse
in interfaceResponseListener
- Type Parameters:
A
- type of the targetAddress
- Parameters:
event
- aResponseEvent
.
-
sendGetPDU
protected PDU sendGetPDU(TableUtils.Row firstCacheRow, ResponseListener responseListener, PDU pdu)
-
getTableStatus
protected int getTableStatus()
-
checkResponse
protected <A extends Address> boolean checkResponse(ResponseEvent<A> event)
-
getRow
public TableUtils.Row getRow(OID index)
-
-