Hi Scott, You can set the lower bound index when calling TableUtils.getTable. In addition, you can set also an upper bound index. To fetch only a specific number of rows, setting lower and upper index bounds works only if the index is a consecutively numbered scalar.
To support fetching row trunks of certain max. size of N, you will have to write your own TableListener that stops processing if N or more rows have been returned. Regards, Frank On 05.03.2010 18:28, Scott MacKay wrote: > Hi, I was trying to do something with the TableUtils and getTable... > Is there a way to indicate a starting OID and collect up a specific number of > return values as opposed to the entire contents? > > I had though, but hoped either for a 'yeah should work' or 'try this' if > anyone could... > > My thought was writing a TableListener, maybe extend to hold a counter, and > increment my count in the next() method, setting my finish state when I think > I collected enough. Would that work? > > > > -Scott > > > > > _______________________________________________ > SNMP4J mailing list > [email protected] > http://lists.agentpp.org/mailman/listinfo/snmp4j -- AGENT++ http://www.agentpp.com http://www.snmp4j.com http://www.mibexplorer.com http://www.mibdesigner.com _______________________________________________ SNMP4J mailing list [email protected] http://lists.agentpp.org/mailman/listinfo/snmp4j
