java.lang.Object
org.snmp4j.util.TableUtils.TableRequest
- All Implemented Interfaces:
EventListener,ResponseListener
- Direct Known Subclasses:
TableUtils.DenseTableRequest
- Enclosing class:
TableUtils
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTableRequest(Target<?> target, OID[] columnOIDs, TableListener listener, Object userObject, OID lowerBoundIndex, OID upperBoundIndex, TableUtils.SparseTableMode sparseTableMode) -
Method Summary
Modifier and TypeMethodDescriptionprotected <A extends Address>
booleancheckResponse(ResponseEvent<A> event) intGets the number of lexicographic errors that occurred during request processing.protected int<A extends Address>
voidonResponse(ResponseEvent<A> event) Process a SNMP response.protected booleanremovePending(int requestSerial) protected PDUsendGetPDU(TableUtils.Row firstCacheRow, ResponseListener responseListener, PDU pdu) booleanprotected voidsendRequest(PDU pdu, Target<?> target, TableUtils.ColumnsOfRequest sendColumns)
-
Field Details
-
lastReceived
-
rowsRetrieved
protected int rowsRetrieved -
rowsReleased
protected int rowsReleased
-
-
Constructor Details
-
TableRequest
public TableRequest(Target<?> target, OID[] columnOIDs, TableListener listener, Object userObject, OID lowerBoundIndex, OID upperBoundIndex, TableUtils.SparseTableMode sparseTableMode)
-
-
Method Details
-
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 IOException - Throws:
IOException
-
removePending
protected boolean removePending(int requestSerial) -
onResponse
Description copied from interface:ResponseListenerProcess a SNMP response.- Specified by:
onResponsein interfaceResponseListener- Type Parameters:
A- type of the targetAddress- Parameters:
event- aResponseEvent.
-
sendGetPDU
-
getTableStatus
protected int getTableStatus() -
checkResponse
-
getRow
-