com.projectdarkstar.tools.dtc.domain
Class TestQueue

java.lang.Object
  extended by com.projectdarkstar.tools.dtc.domain.TestQueue
All Implemented Interfaces:
Serializable

public class TestQueue
extends Object
implements Serializable

Wrapper object for a TestExecution that is currently running, or is waiting to be run. TestQueue objects are intended to be picked up by an external execution daemon to run the specified TestExecution. When the execution is complete, the TestQueue object is discarded and removed from persistent storage.

See Also:
Serialized Form

Constructor Summary
TestQueue()
           
TestQueue(Date dateQueued, TestExecution execution)
           
 
Method Summary
 boolean equals(Object o)
           
 TestExecutionResult getCurrentlyRunning()
           
 Date getDateQueued()
           
 Date getDateStarted()
           
 TestExecution getExecution()
           
 Long getId()
          Returns the id of the entity in persistent storage
 TestQueueStatus getStatus()
           
 int hashCode()
           
 void setCurrentlyRunning(TestExecutionResult currentlyRunning)
           
 void setDateQueued(Date dateQueued)
           
 void setDateStarted(Date dateStarted)
           
 void setExecution(TestExecution execution)
           
 void setId(Long id)
           
 void setStatus(TestQueueStatus status)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestQueue

public TestQueue()

TestQueue

public TestQueue(Date dateQueued,
                 TestExecution execution)
Method Detail

getId

public Long getId()
Returns the id of the entity in persistent storage

Returns:
id of the entity

setId

public void setId(Long id)

getDateQueued

public Date getDateQueued()

setDateQueued

public void setDateQueued(Date dateQueued)

getDateStarted

public Date getDateStarted()

setDateStarted

public void setDateStarted(Date dateStarted)

getStatus

public TestQueueStatus getStatus()

setStatus

public void setStatus(TestQueueStatus status)

getExecution

public TestExecution getExecution()

setExecution

public void setExecution(TestExecution execution)

getCurrentlyRunning

public TestExecutionResult getCurrentlyRunning()

setCurrentlyRunning

public void setCurrentlyRunning(TestExecutionResult currentlyRunning)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2013. All Rights Reserved.