com.sap.tc.logging.reader
Class LogRecordResultSet
java.lang.Object
|
+--com.sap.tc.logging.reader.LogRecordResultSet
- All Implemented Interfaces:
- ILoggingResultSet
- public final class LogRecordResultSet
- extends java.lang.Object
- implements ILoggingResultSet
|
Field Summary |
static int |
INVALID
The requested records are entirely invalid, mostly likely due to
overwriting by the rotating feature. |
static int |
VALID
The returning number of message record equals to the requested number |
|
Method Summary |
void |
add(LogRecord record)
|
java.lang.Exception |
getException()
Return the specific error occurred for invalid operation(if any). |
java.util.List |
getResults()
Return a list of result nodes in this Result Set |
int |
getSize()
Return the number of result nodes in this Result Set |
boolean |
isEmpty()
Return true if result set is empty (no result node) |
boolean |
isValid()
Return general status if result is either valid(true) or invalid(false) |
int |
numRequested()
|
void |
setException(java.lang.Exception e)
|
void |
setResults(java.util.List results)
|
void |
setStatus(int status)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INVALID
public static final int INVALID
- The requested records are entirely invalid, mostly likely due to
overwriting by the rotating feature.
VALID
public static final int VALID
- The returning number of message record equals to the requested number
add
public void add(LogRecord record)
getResults
public java.util.List getResults()
- Description copied from interface:
ILoggingResultSet
- Return a list of result nodes in this Result Set
- Specified by:
getResults in interface ILoggingResultSet
isEmpty
public boolean isEmpty()
- Description copied from interface:
ILoggingResultSet
- Return true if result set is empty (no result node)
- Specified by:
isEmpty in interface ILoggingResultSet
getSize
public int getSize()
- Description copied from interface:
ILoggingResultSet
- Return the number of result nodes in this Result Set
- Specified by:
getSize in interface ILoggingResultSet
isValid
public boolean isValid()
- Description copied from interface:
ILoggingResultSet
- Return general status if result is either valid(true) or invalid(false)
- Specified by:
isValid in interface ILoggingResultSet
numRequested
public int numRequested()
getException
public java.lang.Exception getException()
- Description copied from interface:
ILoggingResultSet
- Return the specific error occurred for invalid operation(if any). Null if none.
- Specified by:
getException in interface ILoggingResultSet
setResults
public void setResults(java.util.List results)
setException
public void setException(java.lang.Exception e)
setStatus
public void setStatus(int status)