org.rhq.core.domain.bundle
Class BundleResourceDeployment

java.lang.Object
  extended by org.rhq.core.domain.bundle.BundleResourceDeployment
All Implemented Interfaces:
Serializable

public class BundleResourceDeployment
extends Object
implements Serializable

This is the many-to-many entity that correlates a bundle deployment with a (platform) resource. It keeps information about the currently installed bundle and assists with enforcing the deployment's policy on the deployed bundle. It also provides the anchor for audit history related to the deployment.

See Also:
Serialized Form

Field Summary
static String QUERY_DELETE_BY_RESOURCES
           
static String QUERY_FIND_BY_DEPLOYMENT_ID_NO_FETCH
           
static String QUERY_FIND_BY_RESOURCE_ID_NO_FETCH
           
protected  BundleDeploymentStatus status
           
 
Constructor Summary
protected BundleResourceDeployment()
           
  BundleResourceDeployment(BundleDeployment bundleDeployment, Resource resource)
           
 
Method Summary
 void addBundleResourceDeploymentHistory(BundleResourceDeploymentHistory history)
           
 boolean equals(Object obj)
           
 BundleDeployment getBundleDeployment()
           
 List<BundleResourceDeploymentHistory> getBundleResourceDeploymentHistories()
           
 Long getCtime()
           
 int getId()
           
 Resource getResource()
           
 BundleDeploymentStatus getStatus()
          The status of the request which indicates that the request is either still in progress, or it has completed and either succeeded or failed.
 int hashCode()
           
 void setBundleDeployment(BundleDeployment bundleDeployment)
           
 void setBundleResourceDeploymentHistories(List<BundleResourceDeploymentHistory> histories)
           
 void setId(int id)
           
 void setResource(Resource resource)
           
 void setStatus(BundleDeploymentStatus status)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

QUERY_DELETE_BY_RESOURCES

public static final String QUERY_DELETE_BY_RESOURCES
See Also:
Constant Field Values

QUERY_FIND_BY_DEPLOYMENT_ID_NO_FETCH

public static final String QUERY_FIND_BY_DEPLOYMENT_ID_NO_FETCH
See Also:
Constant Field Values

QUERY_FIND_BY_RESOURCE_ID_NO_FETCH

public static final String QUERY_FIND_BY_RESOURCE_ID_NO_FETCH
See Also:
Constant Field Values

status

protected BundleDeploymentStatus status
Constructor Detail

BundleResourceDeployment

protected BundleResourceDeployment()

BundleResourceDeployment

public BundleResourceDeployment(BundleDeployment bundleDeployment,
                                Resource resource)
Method Detail

getId

public int getId()

setId

public void setId(int id)

getResource

public Resource getResource()

setResource

public void setResource(Resource resource)

getCtime

public Long getCtime()

getBundleDeployment

public BundleDeployment getBundleDeployment()

setBundleDeployment

public void setBundleDeployment(BundleDeployment bundleDeployment)

getBundleResourceDeploymentHistories

public List<BundleResourceDeploymentHistory> getBundleResourceDeploymentHistories()

setBundleResourceDeploymentHistories

public void setBundleResourceDeploymentHistories(List<BundleResourceDeploymentHistory> histories)

addBundleResourceDeploymentHistory

public void addBundleResourceDeploymentHistory(BundleResourceDeploymentHistory history)

getStatus

public BundleDeploymentStatus getStatus()
The status of the request which indicates that the request is either still in progress, or it has completed and either succeeded or failed.

Returns:
the request status

setStatus

public void setStatus(BundleDeploymentStatus status)

toString

public String toString()
Overrides:
toString in class Object

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.