org.teiid.test.client.results
Class TestResultStat

java.lang.Object
  extended by org.teiid.test.client.results.TestResultStat
All Implemented Interfaces:
java.io.Serializable, TestResult

public class TestResultStat
extends java.lang.Object
implements TestResult, java.io.Serializable

ATestResultStat

A per-query set of result stats.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.teiid.test.client.TestResult
TestResult.RESULT_STATE, TestResult.RESULT_STATE_STRING
 
Field Summary
protected  java.lang.Throwable error
           
protected  java.lang.String errorMsg
           
protected  java.lang.String query
           
protected  java.lang.String queryID
           
protected  java.lang.String querySetID
           
protected  int resultStatus
           
 
Constructor Summary
TestResultStat(java.lang.String querySetID, java.lang.String queryID, java.lang.String query)
           
TestResultStat(java.lang.String querySetID, java.lang.String queryID, java.lang.String query, int resultStatus, long beginTS, long endTS, java.lang.Throwable error)
           
TestResultStat(java.lang.String querySetID, java.lang.String queryID, java.lang.String query, int resultStatus, long beginTS, long endTS, java.lang.Throwable error, java.lang.String errorFile)
           
 
Method Summary
 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
 java.lang.String getErrorfile()
           
 java.lang.Throwable getException()
           
 java.lang.String getExceptionMsg()
          If the result from this query produced an exception, then this method should return the String representation of the exception.
 java.lang.String getQuery()
          Return the query that was executed in order to produce this result.
 java.lang.String getQueryID()
          Return the id that uniquely identifies the query within the query set TestResult.getQuerySetID().
 java.lang.String getQuerySetID()
          Return the id the uniquely identifies the query set.
 java.lang.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(java.lang.String errorfile)
           
 void setException(java.lang.Throwable error)
          Set the exception that indicates the reason why there is a problem with the results.
 void setExceptionMessage(java.lang.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resultStatus

protected int resultStatus

queryID

protected java.lang.String queryID

querySetID

protected java.lang.String querySetID

errorMsg

protected java.lang.String errorMsg

query

protected java.lang.String query

error

protected java.lang.Throwable error
Constructor Detail

TestResultStat

public TestResultStat(java.lang.String querySetID,
                      java.lang.String queryID,
                      java.lang.String query)

TestResultStat

public TestResultStat(java.lang.String querySetID,
                      java.lang.String queryID,
                      java.lang.String query,
                      int resultStatus,
                      long beginTS,
                      long endTS,
                      java.lang.Throwable error)

TestResultStat

public TestResultStat(java.lang.String querySetID,
                      java.lang.String queryID,
                      java.lang.String query,
                      int resultStatus,
                      long beginTS,
                      long endTS,
                      java.lang.Throwable error,
                      java.lang.String errorFile)
Method Detail

getResultStatusString

public java.lang.String getResultStatusString()
Description copied from interface: TestResult
Return the result status in string format.

Specified by:
getResultStatusString in interface TestResult
Returns:
String

getQuerySetID

public java.lang.String getQuerySetID()
Description copied from interface: TestResult
Return the id the uniquely identifies the query set.

Specified by:
getQuerySetID in interface TestResult
Returns:
String is the query set id

getQueryID

public java.lang.String getQueryID()
Description copied from interface: TestResult
Return the id that uniquely identifies the query within the query set TestResult.getQuerySetID().

Specified by:
getQueryID in interface TestResult
Returns:

getQuery

public java.lang.String getQuery()
Description copied from interface: TestResult
Return the query that was executed in order to produce this result.

Specified by:
getQuery in interface TestResult
Returns:

getStatus

public int getStatus()
Description copied from interface: TestResult
Return the status of the execution of this query {@link #getQuery();

Specified by:
getStatus in interface TestResult
Returns:
See Also:
TestResult.RESULT_STATE

setStatus

public void setStatus(int endStatus)
Description copied from interface: TestResult
Call to set the status for this test result.

Specified by:
setStatus in interface TestResult
See Also:
TestResult.RESULT_STATE

getExceptionMsg

public java.lang.String getExceptionMsg()
Description copied from interface: TestResult
If the result from this query produced an exception, then this method should return the String representation of the exception.

Specified by:
getExceptionMsg in interface TestResult
Returns:

setException

public void setException(java.lang.Throwable error)
Description copied from interface: TestResult
Set the exception that indicates the reason why there is a problem with the results. Call TestResult.setExceptionMessage(String) to display a different message in the summary file.

Specified by:
setException in interface TestResult

setExceptionMessage

public void setExceptionMessage(java.lang.String errorMsg)
Description copied from interface: TestResult
Set the error message relating to the reason why there is a problem with the results.

Specified by:
setExceptionMessage in interface TestResult

getException

public java.lang.Throwable getException()
Specified by:
getException in interface TestResult

getBeginTS

public long getBeginTS()
Description copied from interface: TestResult
Return the time (in a long value) that this query started.

Specified by:
getBeginTS in interface TestResult
Returns:
long representation of begin time

setBeginTS

public void setBeginTS(long beginTS)
Specified by:
setBeginTS in interface TestResult

getEndTS

public long getEndTS()
Description copied from interface: TestResult
Return the time (in a long value) that this query ended

Specified by:
getEndTS in interface TestResult
Returns:
long representation of end time

setEndTS

public void setEndTS(long endts)
Specified by:
setEndTS in interface TestResult

getErrorfile

public java.lang.String getErrorfile()
Specified by:
getErrorfile in interface TestResult
Returns:
Returns the errorfile.

setErrorFile

public void setErrorFile(java.lang.String errorfile)
Specified by:
setErrorFile in interface TestResult


Copyright © 2011. All Rights Reserved.