|
JTR 5.0 API Documentation | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjtr.test.impl.DefaultOutcome
public class DefaultOutcome
This is the default implementation provided for the IOutcome
interface.
IOutcome
,
IOutcomeFactory
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from interface jtr.test.IOutcome |
---|
IOutcome.OutcomeType |
Constructor Summary | |
---|---|
DefaultOutcome()
Default constructor. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
This reimplementation of the Comparable#compareTo()
method returns:
-1 iff this.epoch<o.epoch or this.run<o.run
1 iff this.epoch>o.epoch or this.run>o.run
0 otherwise
Note: this class has a natural ordering that is inconsistent with equals. |
EnterpriseConfig |
getEnterpriseConfig()
Get the enterprise configuration |
java.lang.Integer |
getEpoch()
Get the epoch. |
java.lang.Throwable |
getException()
Get the exception |
NodeInfo |
getNode()
Return the JTR-node the runner that produced this outcome belongs to. |
ParametersMap |
getParametersMap()
Returns the parameters the IRunner was working with at the
moment of the exception |
java.lang.Integer |
getRun()
Get the run |
java.lang.Long |
getRunDuration()
Get the duration of the described run. |
java.lang.Class |
getRunnerCategory()
Returns the category the runner that produced this outcome belogns to. |
java.lang.String |
getRunnerId()
Returns the unique ID of the runner that produced this outcome. |
java.util.Date |
getTimeStamp()
Get the run's timestamp. |
IOutcome.OutcomeType |
getType()
Get the type of the outcome |
java.io.Serializable |
getUserObject()
Get a user-object that can be used to add any user-defined information to the output of the test. |
boolean |
isFailure()
Returs Boolean.TRUE iff the type equals OutcomeType.FAILURE . |
void |
setEnterpriseConfig(EnterpriseConfig cfg)
Set the enterprise configuration active at the moment of the exception |
void |
setEpoch(java.lang.Integer epoch)
Set the epoch when the exception happened. |
void |
setException(java.lang.Throwable t)
Set the exception |
void |
setNode(NodeInfo node)
Set the JTR-node the runner that produced this outcome belongs to. |
void |
setParametersMap(ParametersMap params)
Sets the parameters the IRunner that experiences the
excepion was working with |
void |
setRun(java.lang.Integer run)
Set the run when the exception happened |
void |
setRunDuration(java.lang.Long duration)
Set the duration of the described run. |
void |
setRunnerCategory(java.lang.Class<AbstractRunner> category)
Set the category the runner that produced this outcome belogns to. |
void |
setRunnerId(java.lang.String id)
Set the unique ID of the runner that produced this outcome. |
void |
setTimeStamp(java.util.Date ts)
Set the timestamp indicating when the run has been started. |
void |
setType(IOutcome.OutcomeType type)
Set the type of the outcome |
void |
setUserObject(java.io.Serializable obj)
Set a user-object that can be used to add any user-defined information to the output of the test. |
java.lang.String |
toString()
A String representation of the current
IOutcome instance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultOutcome()
Method Detail |
---|
public void setEpoch(java.lang.Integer epoch)
setEpoch
in interface IOutcome<AbstractRunner>
epoch
- The epochpublic java.lang.Integer getEpoch()
getEpoch
in interface IOutcome<AbstractRunner>
public void setRun(java.lang.Integer run)
setRun
in interface IOutcome<AbstractRunner>
run
- The runpublic java.lang.Integer getRun()
getRun
in interface IOutcome<AbstractRunner>
public void setEnterpriseConfig(EnterpriseConfig cfg)
setEnterpriseConfig
in interface IOutcome<AbstractRunner>
cfg
- The enterprise configurationpublic EnterpriseConfig getEnterpriseConfig()
getEnterpriseConfig
in interface IOutcome<AbstractRunner>
public void setParametersMap(ParametersMap params)
IRunner
that experiences the
excepion was working with
setParametersMap
in interface IOutcome<AbstractRunner>
params
- The IRunner
's parameterspublic ParametersMap getParametersMap()
IRunner
was working with at the
moment of the exception
getParametersMap
in interface IOutcome<AbstractRunner>
public void setException(java.lang.Throwable t)
setException
in interface IOutcome<AbstractRunner>
t
- The exceptionpublic java.lang.Throwable getException()
getException
in interface IOutcome<AbstractRunner>
public void setType(IOutcome.OutcomeType type)
IOutcome
setType
in interface IOutcome<AbstractRunner>
public IOutcome.OutcomeType getType()
IOutcome
getType
in interface IOutcome<AbstractRunner>
public boolean isFailure()
IOutcome
Boolean.TRUE
iff the type equals OutcomeType.FAILURE
.
isFailure
in interface IOutcome<AbstractRunner>
public java.lang.Class getRunnerCategory()
IOutcome
getRunnerCategory
in interface IOutcome<AbstractRunner>
public java.lang.String getRunnerId()
IOutcome
getRunnerId
in interface IOutcome<AbstractRunner>
public void setRunnerCategory(java.lang.Class<AbstractRunner> category)
IOutcome
setRunnerCategory
in interface IOutcome<AbstractRunner>
public void setRunnerId(java.lang.String id)
IOutcome
setRunnerId
in interface IOutcome<AbstractRunner>
public NodeInfo getNode()
IOutcome
getNode
in interface IOutcome<AbstractRunner>
public void setNode(NodeInfo node)
IOutcome
setNode
in interface IOutcome<AbstractRunner>
public void setRunDuration(java.lang.Long duration)
IOutcome
setRunDuration
in interface IOutcome<AbstractRunner>
public java.lang.Long getRunDuration()
IOutcome
getRunDuration
in interface IOutcome<AbstractRunner>
public void setTimeStamp(java.util.Date ts)
IOutcome
setTimeStamp
in interface IOutcome<AbstractRunner>
public java.util.Date getTimeStamp()
IOutcome
getTimeStamp
in interface IOutcome<AbstractRunner>
public void setUserObject(java.io.Serializable obj)
IOutcome
toString
method implementation too.
setUserObject
in interface IOutcome<AbstractRunner>
public java.io.Serializable getUserObject()
IOutcome
toString
method implementation too.
getUserObject
in interface IOutcome<AbstractRunner>
public int compareTo(java.lang.Object o)
Comparable#compareTo()
method returns:
this.epoch<o.epoch or this.run<o.run
this.epoch>o.epoch or this.run>o.run
compareTo
in interface java.lang.Comparable
o
-
public java.lang.String toString()
String
representation of the current
IOutcome
instance
toString
in interface IOutcome<AbstractRunner>
toString
in class java.lang.Object
|
The JTR Project is licensed under GPL version 2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |