|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.projectdarkstar.tools.dtc.data.AbstractDTO
com.projectdarkstar.tools.dtc.data.HardwareResourceDTO
public class HardwareResourceDTO
Represents a physical hardware resource that can be used during a DTC test.
| Constructor Summary | |
|---|---|
HardwareResourceDTO(Long id,
Long versionNumber,
String hostname,
String lockedBy,
Date lockedAt,
Boolean enabled)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
Boolean |
getEnabled()
Returns true if this resource is available for use during tests. |
List<HardwareResourceFamilyDTO> |
getFamilies()
Returns a list of HardwareResourceFamilyDTO objects that
represents the set of families that this resource is a member of. |
String |
getHostname()
Returns the hostname of the resource |
Long |
getId()
Returns the id of the entity in persistent storage |
Date |
getLockedAt()
Returns a Date object representing the time that this resource
was locked. |
String |
getLockedBy()
Returns the identifier of the entity which currently has a lock on this resource. |
Long |
getVersionNumber()
Returns the version number in the data store that this entity represents. |
int |
hashCode()
|
protected void |
setEnabled(Boolean enabled)
|
protected void |
setFamilies(List<HardwareResourceFamilyDTO> families)
|
protected void |
setHostname(String hostname)
|
void |
setId(Long id)
|
protected void |
setLockedAt(Date lockedAt)
|
protected void |
setLockedBy(String lockedBy)
|
void |
updateEnabled(Boolean enabled)
|
void |
updateFamilies(List<HardwareResourceFamilyDTO> families)
|
void |
updateHostname(String hostname)
|
void |
updateLockedAt(Date lockedAt)
|
void |
updateLockedBy(String lockedBy)
|
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 |
|---|
public HardwareResourceDTO(Long id,
Long versionNumber,
String hostname,
String lockedBy,
Date lockedAt,
Boolean enabled)
| Method Detail |
|---|
public Long getId()
getId in class AbstractDTOpublic void setId(Long id)
public Long getVersionNumber()
public String getHostname()
protected void setHostname(String hostname)
public void updateHostname(String hostname)
throws DTCInvalidDataException
DTCInvalidDataExceptionpublic String getLockedBy()
protected void setLockedBy(String lockedBy)
public void updateLockedBy(String lockedBy)
throws DTCInvalidDataException
DTCInvalidDataExceptionpublic Date getLockedAt()
Date object representing the time that this resource
was locked. If the resource is not locked, returns null.
protected void setLockedAt(Date lockedAt)
public void updateLockedAt(Date lockedAt)
throws DTCInvalidDataException
DTCInvalidDataExceptionpublic Boolean getEnabled()
protected void setEnabled(Boolean enabled)
public void updateEnabled(Boolean enabled)
throws DTCInvalidDataException
DTCInvalidDataExceptionpublic List<HardwareResourceFamilyDTO> getFamilies()
HardwareResourceFamilyDTO objects that
represents the set of families that this resource is a member of.
protected void setFamilies(List<HardwareResourceFamilyDTO> families)
public void updateFamilies(List<HardwareResourceFamilyDTO> families)
throws DTCInvalidDataException
DTCInvalidDataException
public void validate()
throws DTCInvalidDataException
AbstractDTO
validate in class AbstractDTODTCInvalidDataExceptionpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||