public class NetricsTableCursorRecSrc extends java.lang.Object implements NetricsRecSrc
NetricsRecSrc interface by binding a
NetricsTableCursor to a particular TIBCO Patterns host.| Constructor and Description |
|---|
NetricsTableCursorRecSrc(NetricsTableCursor cursor,
NetricsServerInterface host)
Create a NetricsTableCursorRecSrc instance.
|
| Modifier and Type | Method and Description |
|---|---|
NetricsRecord |
getNext()
Returns the next record.
|
java.lang.String |
getPosition()
Obtains the current position of the underlying cursor.
|
boolean |
hasNext()
True if getNext will return a record.
|
void |
reset()
Resets the underlying cursor to the beginning.
|
void |
setPosition(java.lang.String position)
Reposition the underlying cursor.
|
public NetricsTableCursorRecSrc(NetricsTableCursor cursor, NetricsServerInterface host)
cursor - cursor underlying the record source.host - the cursor will traverse table(s) on this host.public boolean hasNext()
throws NetricsRecSrcException
NetricsBaseRecSrchasNext in interface NetricsBaseRecSrcNetricsRecSrcException - if an error occurs.public NetricsRecord getNext() throws NetricsRecSrcException
NetricsRecSrcgetNext in interface NetricsBaseRecSrcgetNext in interface NetricsRecSrcNetricsRecSrcException - if an error occurs, or if there
are no more records.public void reset()
throws NetricsRecSrcException
reset in interface NetricsBaseRecSrcNetricsRecSrcException - if an error occurs, or if the record
source does not support resetting.public java.lang.String getPosition()
setPosition(java.lang.String).public void setPosition(java.lang.String position)
position - a cursor position. This should be a value returned by getPosition()