|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.rhq.core.domain.resource.CreateResourceHistory
public class CreateResourceHistory
Describes one request to create a new resource.
Field Summary | |
---|---|
static String |
QUERY_DELETE_BY_RESOURCES
|
static String |
QUERY_FIND_BY_ID
|
static String |
QUERY_FIND_BY_PARENT_RESOURCE_ID
|
static String |
QUERY_FIND_WITH_STATUS
|
Constructor Summary | |
---|---|
CreateResourceHistory()
Creates an empty instance. |
|
CreateResourceHistory(Resource parentResource,
ResourceType resourceType,
String subjectName,
Configuration resourceConfiguration)
Helper constructor when creating a request for a configuration-backed resource. |
|
CreateResourceHistory(Resource parentResource,
ResourceType resourceType,
String subjectName,
InstalledPackage installedPackage)
Helper constructor when creating a request for a content-backed resource. |
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_FIND_BY_ID
public static final String QUERY_DELETE_BY_RESOURCES
Constructor Detail |
---|
public CreateResourceHistory()
public CreateResourceHistory(Resource parentResource, ResourceType resourceType, String subjectName, Configuration resourceConfiguration)
parentResource
- resource under which the new resource is createdresourceType
- type of resource being createdsubjectName
- user creating the resourceresourceConfiguration
- the intial configuration for the resource being createdpublic CreateResourceHistory(Resource parentResource, ResourceType resourceType, String subjectName, InstalledPackage installedPackage)
parentResource
- resource under which the new resource is createdresourceType
- type of resource being createdsubjectName
- user creating the resourceinstalledPackage
- the package being createdMethod Detail |
---|
public int getId()
public void setId(int id)
public Resource getParentResource()
public void setParentResource(Resource parentResource)
public String getCreatedResourceName()
public void setCreatedResourceName(String createdResourceName)
public String getNewResourceKey()
public void setNewResourceKey(String newResourceKey)
public CreateResourceStatus getStatus()
public void setStatus(CreateResourceStatus status)
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 String getSubjectName()
public void setSubjectName(String subjectName)
public long getCreatedTime()
public Date getCreatedDate()
public long getLastModifiedTime()
public Date getLastModifiedDate()
public ResourceType getResourceType()
public void setResourceType(ResourceType resourceType)
public Configuration getConfiguration()
public void setConfiguration(Configuration configuration)
public InstalledPackage getInstalledPackage()
public void setInstalledPackage(InstalledPackage installedPackage)
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 |