org.rhq.core.domain.content
Class ContentServiceRequest
java.lang.Object
org.rhq.core.domain.content.ContentServiceRequest
- All Implemented Interfaces:
- Serializable
public class ContentServiceRequest
- extends Object
- implements Serializable
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.
- See Also:
- Serialized Form
QUERY_FIND_WITH_STATUS
public static final String QUERY_FIND_WITH_STATUS
- See Also:
- Constant Field Values
QUERY_FIND_BY_RESOURCE_WITH_STATUS
public static final String QUERY_FIND_BY_RESOURCE_WITH_STATUS
- See Also:
- Constant Field Values
QUERY_FIND_BY_RESOURCE_WITH_NOT_STATUS
public static final String QUERY_FIND_BY_RESOURCE_WITH_NOT_STATUS
- See Also:
- Constant Field Values
QUERY_FIND_BY_RESOURCE
public static final String QUERY_FIND_BY_RESOURCE
- See Also:
- Constant Field Values
QUERY_FIND_BY_ID
public static final String QUERY_FIND_BY_ID
- See Also:
- Constant Field Values
QUERY_DELETE_BY_RESOURCES
public static final String QUERY_DELETE_BY_RESOURCES
- See Also:
- Constant Field Values
ContentServiceRequest
public ContentServiceRequest()
ContentServiceRequest
public ContentServiceRequest(Resource resource,
String subjectName,
ContentRequestType contentRequestType)
getId
public int getId()
setId
public void setId(int id)
getResource
public Resource getResource()
setResource
public void setResource(Resource resource)
getStatus
public ContentRequestStatus getStatus()
setStatus
public void setStatus(ContentRequestStatus status)
getErrorMessage
public String getErrorMessage()
setErrorMessage
public void setErrorMessage(String errorMessage)
getNotes
public String getNotes()
setNotes
public void setNotes(String notes)
getSubjectName
public String getSubjectName()
setSubjectName
public void setSubjectName(String subjectName)
getCtime
public long getCtime()
getCreatedTime
public long getCreatedTime()
getCreatedDate
public Date getCreatedDate()
getLastModifiedTime
public long getLastModifiedTime()
getLastModifiedDate
public Date getLastModifiedDate()
getContentRequestType
public ContentRequestType getContentRequestType()
- Describes the type of service being tracked by this request.
setContentRequestType
public void setContentRequestType(ContentRequestType contentRequestType)
getInstalledPackageHistory
public Set<InstalledPackageHistory> getInstalledPackageHistory()
- Conveys which packages are being manipulated in this request.
addInstalledPackageHistory
public void addInstalledPackageHistory(InstalledPackageHistory installedPackage)
setInstalledPackageHistory
public void setInstalledPackageHistory(Set<InstalledPackageHistory> installedPackageHistory)
getDuration
public long getDuration()
- The duration of the configuration update request which simply is the difference between the
getCreatedTime()
and the getLastModifiedTime()
. If the request hasn't completed yet, this will
be the difference between the current time and the created time.
- Returns:
- the duration of time that the request took or is taking to complete
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.