com.projectdarkstar.tools.dtc.data
Class TestQueueDTO
java.lang.Object
com.projectdarkstar.tools.dtc.data.AbstractDTO
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
TestQueueDTO
public TestQueueDTO(Long id,
Date dateQueued,
Date dateStarted,
TestQueueStatusDTO status)
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.