org.rhq.core.domain.operation
Class ResourceOperationHistory

java.lang.Object
  extended by org.rhq.core.domain.operation.OperationHistory
      extended by org.rhq.core.domain.operation.ResourceOperationHistory
All Implemented Interfaces:
Serializable

public class ResourceOperationHistory
extends OperationHistory

Information on a specific operation execution on a particular resource. This individual operation execution may or may not have been part of a group execution.

See Also:
Serialized Form

Field Summary
static String QUERY_DELETE_BY_RESOURCES
           
static String QUERY_FIND_ALL
           
static String QUERY_FIND_ALL_ADMIN
           
static String QUERY_FIND_ALL_IN_STATUS
           
static String QUERY_FIND_BY_GROUP_OPERATION_HISTORY_ID
           
static String QUERY_FIND_BY_RESOURCE_ID_AND_NOT_STATUS
           
static String QUERY_FIND_BY_RESOURCE_ID_AND_STATUS
           
static String QUERY_FIND_LATEST_COMPLETED_OPERATION
           
static String QUERY_FIND_OLDEST_INPROGRESS_OPERATION
           
 
Fields inherited from class org.rhq.core.domain.operation.OperationHistory
QUERY_DELETE_BY_DEFINITION, QUERY_DELETE_BY_HISTORY_IDS, QUERY_FIND_BY_JOB_ID, QUERY_GET_PARAMETER_CONFIGURATION_IDS, QUERY_GET_RECENTLY_COMPLETED_GROUP, QUERY_GET_RECENTLY_COMPLETED_GROUP_ADMIN, QUERY_GET_RECENTLY_COMPLETED_RESOURCE, QUERY_GET_RECENTLY_COMPLETED_RESOURCE_ADMIN, QUERY_GET_RESULT_CONFIGURATION_IDS
 
Constructor Summary
protected ResourceOperationHistory()
           
  ResourceOperationHistory(String jobName, String jobGroup, String subjectName, OperationDefinition operationDefinition, Configuration parameters, Resource resource, GroupOperationHistory groupHistory)
           
 
Method Summary
 GroupOperationHistory getGroupOperationHistory()
          If this individual resource operation execution history was part of a group operation execution, this will return the non-null history for that group execution.
 Resource getResource()
           
 Configuration getResults()
           
 void setGroupOperationHistory(GroupOperationHistory groupOperationHistory)
           
 void setResource(Resource resource)
           
 void setResults(Configuration results)
           
 String toString()
           
 
Methods inherited from class org.rhq.core.domain.operation.OperationHistory
equals, getCreatedTime, getDuration, getErrorMessage, getId, getJobGroup, getJobId, getJobName, getModifiedTime, getOperationDefinition, getParameters, getStartedTime, getStatus, getSubjectName, hashCode, setErrorMessage, setId, setJobGroup, setJobName, setOperationDefinition, setParameters, setStartedTime, setStatus
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

QUERY_FIND_ALL_IN_STATUS

public static final String QUERY_FIND_ALL_IN_STATUS
See Also:
Constant Field Values

QUERY_FIND_BY_GROUP_OPERATION_HISTORY_ID

public static final String QUERY_FIND_BY_GROUP_OPERATION_HISTORY_ID
See Also:
Constant Field Values

QUERY_FIND_BY_RESOURCE_ID_AND_STATUS

public static final String QUERY_FIND_BY_RESOURCE_ID_AND_STATUS
See Also:
Constant Field Values

QUERY_FIND_BY_RESOURCE_ID_AND_NOT_STATUS

public static final String QUERY_FIND_BY_RESOURCE_ID_AND_NOT_STATUS
See Also:
Constant Field Values

QUERY_FIND_LATEST_COMPLETED_OPERATION

public static final String QUERY_FIND_LATEST_COMPLETED_OPERATION
See Also:
Constant Field Values

QUERY_FIND_OLDEST_INPROGRESS_OPERATION

public static final String QUERY_FIND_OLDEST_INPROGRESS_OPERATION
See Also:
Constant Field Values

QUERY_DELETE_BY_RESOURCES

public static final String QUERY_DELETE_BY_RESOURCES
See Also:
Constant Field Values

QUERY_FIND_ALL

public static final String QUERY_FIND_ALL
See Also:
Constant Field Values

QUERY_FIND_ALL_ADMIN

public static final String QUERY_FIND_ALL_ADMIN
See Also:
Constant Field Values
Constructor Detail

ResourceOperationHistory

protected ResourceOperationHistory()

ResourceOperationHistory

public ResourceOperationHistory(String jobName,
                                String jobGroup,
                                String subjectName,
                                OperationDefinition operationDefinition,
                                Configuration parameters,
                                Resource resource,
                                GroupOperationHistory groupHistory)
Method Detail

getResource

public Resource getResource()

setResource

public void setResource(Resource resource)

getResults

public Configuration getResults()

setResults

public void setResults(Configuration results)

getGroupOperationHistory

public GroupOperationHistory getGroupOperationHistory()
If this individual resource operation execution history was part of a group operation execution, this will return the non-null history for that group execution. If this was not part of a group execution, this will return null.

Returns:
the group history entity

setGroupOperationHistory

public void setGroupOperationHistory(GroupOperationHistory groupOperationHistory)

toString

public String toString()
Overrides:
toString in class OperationHistory


Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.