public interface NetricsRecOpSrc
This interface defines how record operations are passed into the API. By creating a class that implements this interface record operations can be streamed from any source through the TIBCO Patterns Java API to the TIBCO Patterns server. For example a DBMS table could be mirrored to a TIBCO Patterns server by creating an implementation of this interface that scanned a DBMS transaction log to convert record operations recorded there into NetricsRecOp objects returned by this interface.
The Java API comes with one predefined implementations of the NetricsRecOpSrc interface: NetricsArrayRecOpSrc is a simple array of record operations.
| Modifier and Type | Method and Description |
|---|---|
boolean |
canReset()
Returns true if this instance supports the reset method.
|
NetricsRecOp |
getCur()
Returns the current record operation.
|
NetricsRecOp |
getNext()
Returns the next record operation.
|
boolean |
hasNext()
True if getNext will return a record operation.
|
void |
reset()
Reset the scan of records back to the beginning.
|
boolean hasNext()
throws NetricsRecSrcException
NetricsRecSrcException - if an error occurs.NetricsRecOp getNext() throws NetricsRecSrcException
NetricsRecSrcException - if an error occurs.NetricsRecOp getCur()
boolean canReset()
void reset()
throws NetricsRecSrcException,
java.lang.UnsupportedOperationException
NetricsRecSrcException - if there was an error in the reset.java.lang.UnsupportedOperationException - if this implementation doesn't
support the reset operation.