org.rhq.core.domain.bundle
Class BundleDestination
java.lang.Object
org.rhq.core.domain.bundle.BundleDestination
- All Implemented Interfaces:
- Serializable
public class BundleDestination
- extends Object
- implements Serializable
Defines a logical destination for deployment of a bundle. Defines the target platform group and the
target deploy directory on those platforms. A Bundle can have several defined destinations although
Destination is specific to a single Bundle.
- See Also:
- Serialized Form
QUERY_FIND_ALL
public static final String QUERY_FIND_ALL
- See Also:
- Constant Field Values
BundleDestination
public BundleDestination()
BundleDestination
public BundleDestination(Bundle bundle,
String name,
ResourceGroup group,
String destinationBaseDirectoryName,
String deployDir)
getId
public int getId()
setId
public void setId(int id)
getName
public String getName()
setName
public void setName(String name)
getDescription
public String getDescription()
setDescription
public void setDescription(String description)
getDeployDir
public String getDeployDir()
setDeployDir
public void setDeployDir(String deployDir)
getDestinationBaseDirectoryName
public String getDestinationBaseDirectoryName()
- All resource types that can be targets for bundle deployments define one or more
destination base directories. These are given names in the type's plugin descriptor.
This method returns the name of the destination base directory where all bundles
will be destined to be deployed on all resources found in the destination group.
- Returns:
- name of the destination base directory - this isn't an actual directory location
(it can't be because it will be different on all individual machines where the bundles
will be deployed), it is the name of the destination location as defined in
the plugin descriptor for the type of resources where the bundle is to be deployed
(i.e. it is the type of the compatible group associated with this destination).
setDestinationBaseDirectoryName
public void setDestinationBaseDirectoryName(String destinationBaseDirectoryName)
getCtime
public long getCtime()
getMtime
public long getMtime()
- The time that any part of this entity was updated in the database.
- Returns:
- entity modified time
setMtime
public void setMtime(long mtime)
getBundle
public Bundle getBundle()
setBundle
public void setBundle(Bundle bundle)
getGroup
public ResourceGroup getGroup()
setGroup
public void setGroup(ResourceGroup group)
getDeployments
public List<BundleDeployment> getDeployments()
setDeployments
public void setDeployments(List<BundleDeployment> deployments)
addDeployment
public void addDeployment(BundleDeployment deployment)
getTags
public Set<Tag> getTags()
setTags
public void setTags(Set<Tag> tags)
addTag
public void addTag(Tag tag)
removeTag
public boolean removeTag(Tag tag)
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.