com.projectdarkstar.tools.dtc.data
Class TestQueueDTO

java.lang.Object
  extended by com.projectdarkstar.tools.dtc.data.AbstractDTO
      extended by com.projectdarkstar.tools.dtc.data.TestQueueDTO
All Implemented Interfaces:
Serializable

public class TestQueueDTO
extends AbstractDTO

Wrapper object for a TestExecutionDTO 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 TestExecutionDTO. When the execution is complete, the TestQueue object is discarded and removed from persistent storage.

See Also:
Serialized Form

Constructor Summary
TestQueueDTO(Long id, Date dateQueued, Date dateStarted, TestQueueStatusDTO status)
           
 
Method Summary
 boolean equals(Object o)
           
 TestExecutionResultDTO getCurrentlyRunning()
           
 Date getDateQueued()
           
 Date getDateStarted()
           
 TestExecutionDTO getExecution()
           
 Long getId()
          Returns the id of the entity in persistent storage
 TestQueueStatusDTO getStatus()
           
 int hashCode()
           
protected  void setCurrentlyRunning(TestExecutionResultDTO currentlyRunning)
           
protected  void setDateQueued(Date dateQueued)
           
protected  void setDateStarted(Date dateStarted)
           
protected  void setExecution(TestExecutionDTO execution)
           
 void setId(Long id)
           
protected  void setStatus(TestQueueStatusDTO status)
           
 void updateCurrentlyRunning(TestExecutionResultDTO currentlyRunning)
           
 void updateDateQueued(Date dateQueued)
           
 void updateDateStarted(Date dateStarted)
           
 void updateExecution(TestExecutionDTO execution)
           
 void updateStatus(TestQueueStatusDTO status)
           
 void validate()
          Validates that each attribute and pending updated attribute (from the updatedAttributes Map) has a valid value in the context of the particular object.
 
Methods inherited from class com.projectdarkstar.tools.dtc.data.AbstractDTO
checkBlank, checkNull, getFullyPopulated, getUpdatedAttributes, updateAttribute, valueToValidate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestQueueDTO

public TestQueueDTO(Long id,
                    Date dateQueued,
                    Date dateStarted,
                    TestQueueStatusDTO status)
Method Detail

getId

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

Specified by:
getId in class AbstractDTO
Returns:
id of the entity

setId

public void setId(Long id)

getDateQueued

public Date getDateQueued()

setDateQueued

protected void setDateQueued(Date dateQueued)

updateDateQueued

public void updateDateQueued(Date dateQueued)
                      throws DTCInvalidDataException
Throws:
DTCInvalidDataException

getDateStarted

public Date getDateStarted()

setDateStarted

protected void setDateStarted(Date dateStarted)

updateDateStarted

public void updateDateStarted(Date dateStarted)
                       throws DTCInvalidDataException
Throws:
DTCInvalidDataException

getStatus

public TestQueueStatusDTO getStatus()

setStatus

protected void setStatus(TestQueueStatusDTO status)

updateStatus

public void updateStatus(TestQueueStatusDTO status)
                  throws DTCInvalidDataException
Throws:
DTCInvalidDataException

getExecution

public TestExecutionDTO getExecution()

setExecution

protected void setExecution(TestExecutionDTO execution)

updateExecution

public void updateExecution(TestExecutionDTO execution)
                     throws DTCInvalidDataException
Throws:
DTCInvalidDataException

getCurrentlyRunning

public TestExecutionResultDTO getCurrentlyRunning()

setCurrentlyRunning

protected void setCurrentlyRunning(TestExecutionResultDTO currentlyRunning)

updateCurrentlyRunning

public void updateCurrentlyRunning(TestExecutionResultDTO currentlyRunning)
                            throws DTCInvalidDataException
Throws:
DTCInvalidDataException

validate

public void validate()
              throws DTCInvalidDataException
Description copied from class: AbstractDTO
Validates that each attribute and pending updated attribute (from the updatedAttributes Map) has a valid value in the context of the particular object.

Specified by:
validate in class AbstractDTO
Throws:
DTCInvalidDataException

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.