|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.rhq.core.domain.content.ContentServiceRequest
public class ContentServiceRequest
Represents a user initiated request against an agent's content subsystem. This instance will be used to convey both the request parameters as well as any response values that are provided from the operation. Additionally, the state in this instance will indicate success or failure of the request. This object represents both the status of currently executing requests as well as providing a history of all previous requests for conetent subsystem operations.
Field Summary | |
---|---|
static String |
QUERY_DELETE_BY_RESOURCES
|
static String |
QUERY_FIND_BY_ID
|
static String |
QUERY_FIND_BY_RESOURCE
|
static String |
QUERY_FIND_BY_RESOURCE_WITH_NOT_STATUS
|
static String |
QUERY_FIND_BY_RESOURCE_WITH_STATUS
|
static String |
QUERY_FIND_WITH_STATUS
|
Constructor Summary | |
---|---|
ContentServiceRequest()
|
|
ContentServiceRequest(Resource resource,
String subjectName,
ContentRequestType contentRequestType)
|
Method Summary | |
---|---|
void |
addInstalledPackageHistory(InstalledPackageHistory installedPackage)
|
boolean |
equals(Object obj)
|
ContentRequestType |
getContentRequestType()
Describes the type of service being tracked by this request. |
Date |
getCreatedDate()
|
long |
getCreatedTime()
|
long |
getCtime()
|
long |
getDuration()
The duration of the configuration update request which simply is the difference between the getCreatedTime() and the getLastModifiedTime() . |
String |
getErrorMessage()
|
int |
getId()
|
Set<InstalledPackageHistory> |
getInstalledPackageHistory()
Conveys which packages are being manipulated in this request. |
Date |
getLastModifiedDate()
|
long |
getLastModifiedTime()
|
Resource |
getResource()
|
ContentRequestStatus |
getStatus()
|
String |
getSubjectName()
|
int |
hashCode()
|
void |
setContentRequestType(ContentRequestType contentRequestType)
|
void |
setErrorMessage(String errorMessage)
|
void |
setErrorMessageFromThrowable(Throwable t)
Convienence method that sets the error message to the given throwable's stack trace dump. |
void |
setId(int id)
|
void |
setInstalledPackageHistory(Set<InstalledPackageHistory> installedPackageHistory)
|
void |
setResource(Resource resource)
|
void |
setStatus(ContentRequestStatus 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_RESOURCE_WITH_STATUS
public static final String QUERY_FIND_BY_RESOURCE_WITH_NOT_STATUS
public static final String QUERY_FIND_BY_RESOURCE
public static final String QUERY_FIND_BY_ID
public static final String QUERY_DELETE_BY_RESOURCES
Constructor Detail |
---|
public ContentServiceRequest()
public ContentServiceRequest(Resource resource, String subjectName, ContentRequestType contentRequestType)
Method Detail |
---|
public int getId()
public void setId(int id)
public Resource getResource()
public void setResource(Resource resource)
public ContentRequestStatus getStatus()
public void setStatus(ContentRequestStatus status)
public String getErrorMessage()
public void setErrorMessage(String errorMessage)
public String getSubjectName()
public void setSubjectName(String subjectName)
public long getCtime()
public long getCreatedTime()
public Date getCreatedDate()
public long getLastModifiedTime()
public Date getLastModifiedDate()
public ContentRequestType getContentRequestType()
public void setContentRequestType(ContentRequestType contentRequestType)
public Set<InstalledPackageHistory> getInstalledPackageHistory()
public void addInstalledPackageHistory(InstalledPackageHistory installedPackage)
public void setInstalledPackageHistory(Set<InstalledPackageHistory> installedPackageHistory)
public 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 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 |