public class TestResultStat extends Object implements TestResult, Serializable
A per-query set of result stats.
TestResult.RESULT_STATE, TestResult.RESULT_STATE_STRING
Modifier and Type | Field and Description |
---|---|
protected Throwable |
error |
protected String |
errorMsg |
protected String |
query |
protected String |
queryID |
protected String |
querySetID |
protected int |
resultStatus |
Constructor and Description |
---|
TestResultStat(String querySetID,
String queryID,
String query) |
TestResultStat(String querySetID,
String queryID,
String query,
int resultStatus,
long beginTS,
long endTS,
Throwable error) |
TestResultStat(String querySetID,
String queryID,
String query,
int resultStatus,
long beginTS,
long endTS,
Throwable error,
String errorFile) |
Modifier and Type | Method and Description |
---|---|
long |
getBeginTS()
Return the time (in a long value) that this query started.
|
long |
getEndTS()
Return the time (in a long value) that this query ended
|
String |
getErrorfile() |
Throwable |
getException() |
String |
getExceptionMsg()
If the result from this query produced an exception, then this method
should return the
String representation of the exception. |
String |
getQuery()
Return the query that was executed in order to produce this result.
|
String |
getQueryID()
Return the id that uniquely identifies the query within the query set
TestResult.getQuerySetID() . |
String |
getQuerySetID()
Return the id the uniquely identifies the query set.
|
String |
getResultStatusString()
Return the result status in string format.
|
int |
getStatus()
Return the status of the execution of this query {@link #getQuery();
|
void |
setBeginTS(long beginTS) |
void |
setEndTS(long endts) |
void |
setErrorFile(String errorfile) |
void |
setException(Throwable error)
Set the exception that indicates the reason why there is a problem
with the results.
|
void |
setExceptionMessage(String errorMsg)
Set the error message relating to the reason why there is a problem
with the results.
|
void |
setStatus(int endStatus)
Call to set the status for this test result.
|
protected int resultStatus
protected String queryID
protected String querySetID
protected String errorMsg
protected String query
protected Throwable error
public TestResultStat(String querySetID, String queryID, String query, int resultStatus, long beginTS, long endTS, Throwable error)
public String getResultStatusString()
TestResult
getResultStatusString
in interface TestResult
public String getQuerySetID()
TestResult
getQuerySetID
in interface TestResult
public String getQueryID()
TestResult
TestResult.getQuerySetID()
.getQueryID
in interface TestResult
public String getQuery()
TestResult
getQuery
in interface TestResult
public int getStatus()
TestResult
getStatus
in interface TestResult
TestResult.RESULT_STATE
public void setStatus(int endStatus)
TestResult
setStatus
in interface TestResult
TestResult.RESULT_STATE
public String getExceptionMsg()
TestResult
String
representation of the exception.getExceptionMsg
in interface TestResult
public void setException(Throwable error)
TestResult
TestResult.setExceptionMessage(String)
to display
a different message in the summary file.setException
in interface TestResult
public void setExceptionMessage(String errorMsg)
TestResult
setExceptionMessage
in interface TestResult
public Throwable getException()
getException
in interface TestResult
public long getBeginTS()
TestResult
getBeginTS
in interface TestResult
public void setBeginTS(long beginTS)
setBeginTS
in interface TestResult
public long getEndTS()
TestResult
getEndTS
in interface TestResult
public void setEndTS(long endts)
setEndTS
in interface TestResult
public String getErrorfile()
getErrorfile
in interface TestResult
public void setErrorFile(String errorfile)
setErrorFile
in interface TestResult
Copyright © 2018 JBoss by Red Hat. All rights reserved.