org.rhq.core.domain.bundle
Class BundleDestination

java.lang.Object
  extended by 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

Field Summary
static String QUERY_FIND_ALL
           
 
Constructor Summary
BundleDestination()
           
BundleDestination(Bundle bundle, String name, ResourceGroup group, String destinationBaseDirectoryName, String deployDir)
           
 
Method Summary
 void addDeployment(BundleDeployment deployment)
           
 void addTag(Tag tag)
           
 boolean equals(Object obj)
           
 Bundle getBundle()
           
 long getCtime()
           
 String getDeployDir()
           
 List<BundleDeployment> getDeployments()
           
 String getDescription()
           
 String getDestinationBaseDirectoryName()
          All resource types that can be targets for bundle deployments define one or more destination base directories.
 ResourceGroup getGroup()
           
 int getId()
           
 long getMtime()
          The time that any part of this entity was updated in the database.
 String getName()
           
 Set<Tag> getTags()
           
 int hashCode()
           
 boolean removeTag(Tag tag)
           
 void setBundle(Bundle bundle)
           
 void setDeployDir(String deployDir)
           
 void setDeployments(List<BundleDeployment> deployments)
           
 void setDescription(String description)
           
 void setDestinationBaseDirectoryName(String destinationBaseDirectoryName)
           
 void setGroup(ResourceGroup group)
           
 void setId(int id)
           
 void setMtime(long mtime)
           
 void setName(String name)
           
 void setTags(Set<Tag> tags)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

QUERY_FIND_ALL

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

BundleDestination

public BundleDestination()

BundleDestination

public BundleDestination(Bundle bundle,
                         String name,
                         ResourceGroup group,
                         String destinationBaseDirectoryName,
                         String deployDir)
Method Detail

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.