|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.rhq.core.domain.bundle.BundleDeployment
public class BundleDeployment
Defines a set of configuration values that can be used to deploy a bundle version somewhere. Once set the configuration should not be changed. Also stores any other deployment settings to be applied to deployments using this def.
Field Summary | |
---|---|
protected String |
errorMessage
|
static String |
QUERY_FIND_ALL
|
static String |
QUERY_UPDATE_FOR_DESTINATION_REMOVE
|
static String |
QUERY_UPDATE_FOR_VERSION_REMOVE
|
protected BundleDeploymentStatus |
status
|
protected String |
subjectName
|
Constructor Summary | |
---|---|
BundleDeployment()
|
|
BundleDeployment(BundleVersion bundleVersion,
BundleDestination destination,
String name)
|
Method Summary | |
---|---|
void |
addResourceDeployment(BundleResourceDeployment resourceDeployment)
|
void |
addTag(Tag tag)
|
boolean |
equals(Object obj)
|
BundleVersion |
getBundleVersion()
|
Configuration |
getConfiguration()
|
long |
getCtime()
|
String |
getDescription()
|
BundleDestination |
getDestination()
|
long |
getDuration()
The duration of the configuration update request which simply is the difference between the #getCreatedTime() and the #getModifiedTime() . |
String |
getErrorMessage()
If not null , this is an error message (possibly a full stack trace) to indicate the overall error
that occurred when the configuration update failed. |
int |
getId()
|
long |
getMtime()
The time that any part of this entity was updated in the database. |
String |
getName()
|
Integer |
getReplacedBundleDeploymentId()
|
List<BundleResourceDeployment> |
getResourceDeployments()
|
BundleDeploymentStatus |
getStatus()
The status of the request which indicates that the request is either still in progress, or it has completed and either succeeded or failed. |
String |
getSubjectName()
For auditing purposes, this method tells you the username of the person that created the request. |
Set<Tag> |
getTags()
|
int |
hashCode()
|
boolean |
isLive()
|
boolean |
removeTag(Tag tag)
|
void |
setBundleVersion(BundleVersion bundleVersion)
|
void |
setConfiguration(Configuration config)
|
void |
setDescription(String description)
|
void |
setDestination(BundleDestination destination)
|
void |
setErrorMessage(String errorMessage)
Calling this method with a non- null error message implies that the request's status is
ConfigurationUpdateStatus.FAILURE . |
void |
setId(int id)
|
void |
setLive(boolean isLive)
|
void |
setMtime(long mtime)
|
void |
setName(String name)
|
void |
setReplacedBundleDeploymentId(Integer replacedBundleDeploymentId)
|
void |
setResourceDeployments(List<BundleResourceDeployment> resourceDeployments)
|
void |
setStatus(BundleDeploymentStatus status)
|
void |
setSubjectName(String subjectName)
|
void |
setTags(Set<Tag> tags)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String QUERY_FIND_ALL
public static final String QUERY_UPDATE_FOR_DESTINATION_REMOVE
public static final String QUERY_UPDATE_FOR_VERSION_REMOVE
protected BundleDeploymentStatus status
protected String errorMessage
protected String subjectName
Constructor Detail |
---|
public BundleDeployment()
public BundleDeployment(BundleVersion bundleVersion, BundleDestination destination, String name)
Method Detail |
---|
public int getId()
public void setId(int id)
public String getName()
public void setName(String name)
public String getDescription()
public void setDescription(String description)
public long getCtime()
public long getMtime()
public void setMtime(long mtime)
public BundleDeploymentStatus getStatus()
public void setStatus(BundleDeploymentStatus status)
public String getErrorMessage()
null
, this is an error message (possibly a full stack trace) to indicate the overall error
that occurred when the configuration update failed. This will normally be null
unless the
status
indicates a BundleDeploymentStatus.FAILURE
.
public void setErrorMessage(String errorMessage)
null
error message implies that the request's status is
ConfigurationUpdateStatus.FAILURE
. The inverse is not true - that is, if you set the error message
to null
, the status is left as-is; it will not assume that a null
error message means
the status is successful.
errorMessage
- public String getSubjectName()
public void setSubjectName(String subjectName)
public boolean isLive()
public void setLive(boolean isLive)
public long getDuration()
#getCreatedTime()
and the #getModifiedTime()
. If the request hasn't completed yet, this will be
the difference between the current time and the created time.
public Integer getReplacedBundleDeploymentId()
public void setReplacedBundleDeploymentId(Integer replacedBundleDeploymentId)
public Configuration getConfiguration()
public void setConfiguration(Configuration config)
public BundleVersion getBundleVersion()
public void setBundleVersion(BundleVersion bundleVersion)
public BundleDestination getDestination()
public void setDestination(BundleDestination destination)
public List<BundleResourceDeployment> getResourceDeployments()
public void setResourceDeployments(List<BundleResourceDeployment> resourceDeployments)
public void addResourceDeployment(BundleResourceDeployment resourceDeployment)
public Set<Tag> getTags()
public void setTags(Set<Tag> tags)
public void addTag(Tag tag)
public boolean removeTag(Tag tag)
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |