|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.projectdarkstar.tools.dtc.domain.HardwareResource
public class HardwareResource
Represents a physical hardware resource that can be used during a DTC test.
| Constructor Summary | |
|---|---|
HardwareResource()
|
|
HardwareResource(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<HardwareResourceFamily> |
getFamilies()
Returns a list of HardwareResourceFamily 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()
|
void |
setEnabled(Boolean enabled)
|
void |
setFamilies(List<HardwareResourceFamily> families)
|
void |
setHostname(String hostname)
|
void |
setId(Long id)
|
void |
setLockedAt(Date lockedAt)
|
void |
setLockedBy(String lockedBy)
|
void |
setVersionNumber(Long versionNumber)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HardwareResource()
public HardwareResource(String hostname,
String lockedBy,
Date lockedAt,
Boolean enabled)
| Method Detail |
|---|
public Long getId()
public void setId(Long id)
public Long getVersionNumber()
public void setVersionNumber(Long versionNumber)
public String getHostname()
public void setHostname(String hostname)
public String getLockedBy()
public void setLockedBy(String lockedBy)
public Date getLockedAt()
Date object representing the time that this resource
was locked. If the resource is not locked, returns null.
public void setLockedAt(Date lockedAt)
public Boolean getEnabled()
public void setEnabled(Boolean enabled)
public List<HardwareResourceFamily> getFamilies()
HardwareResourceFamily objects that
represents the set of families that this resource is a member of.
public void setFamilies(List<HardwareResourceFamily> families)
public 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 | ||||||||