public class HardwareResource extends Object implements Serializable
| Constructor and Description |
|---|
HardwareResource() |
HardwareResource(String hostname,
String lockedBy,
Date lockedAt,
Boolean enabled) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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) |
protected void |
setVersionNumber(Long versionNumber) |
public Long getId()
public void setId(Long id)
public Long getVersionNumber()
protected 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)
Copyright © 2013. All Rights Reserved.