|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.rhq.core.domain.resource.DeleteResourceHistory
public class DeleteResourceHistory
Describes one requests that a resource be deleted. The actual resource will be deleted by the plugin.
Field Summary | |
---|---|
static String |
QUERY_DELETE_BY_RESOURCES
|
static String |
QUERY_FIND_BY_PARENT_RESOURCE_ID
|
static String |
QUERY_FIND_WITH_STATUS
|
Constructor Summary | |
---|---|
DeleteResourceHistory()
|
|
DeleteResourceHistory(Resource resource,
String subjectName)
Creates a new history instance representing a request to delete the specified resource. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
Date |
getCreatedDate()
|
long |
getCreatedTime()
|
long |
getDuration()
The duration of the configuration update request which simply is the difference between the getCreatedTime() and the getLastModifiedTime() . |
String |
getErrorMessage()
|
int |
getId()
|
Date |
getLastModifiedDate()
|
long |
getLastModifiedTime()
|
Resource |
getResource()
|
DeleteResourceStatus |
getStatus()
|
String |
getSubjectName()
|
int |
hashCode()
|
void |
setErrorMessage(String errorMessage)
Calling this method with a non- null error message implies that the request's status is
CreateResourceStatus.FAILURE . |
void |
setErrorMessageFromThrowable(Throwable t)
Convienence method that sets the error message to the given throwable's stack trace dump. |
void |
setId(int id)
|
void |
setResource(Resource resource)
|
void |
setStatus(DeleteResourceStatus status)
|
void |
setSubjectName(String subjectName)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String QUERY_FIND_WITH_STATUS
public static final String QUERY_FIND_BY_PARENT_RESOURCE_ID
public static final String QUERY_DELETE_BY_RESOURCES
Constructor Detail |
---|
public DeleteResourceHistory()
public DeleteResourceHistory(Resource resource, String subjectName)
resource
- being deletedMethod Detail |
---|
public int getId()
public void setId(int id)
public String getErrorMessage()
public void setErrorMessage(String errorMessage)
null
error message implies that the request's status is
CreateResourceStatus.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
- description of the errorpublic void setErrorMessageFromThrowable(Throwable t)
null
, the error message will be set to null
as if passing null
to
setErrorMessage(String)
.
t
- throwable whose message and stack trace will make up the error message (may be null
)public String getSubjectName()
public void setSubjectName(String subjectName)
public long getCreatedTime()
public Date getCreatedDate()
public long getLastModifiedTime()
public Date getLastModifiedDate()
public DeleteResourceStatus getStatus()
public void setStatus(DeleteResourceStatus status)
public Resource getResource()
public void setResource(Resource resource)
public long getDuration()
getCreatedTime()
and the getLastModifiedTime()
. If the request hasn't completed yet, this will
be the difference between the current time and the created time.
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 |