|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BundleManagerLocal
Local interface to the manager responsible for creating and managing bundles.
| Method Summary | |
|---|---|
void |
_finalizePurge(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.bundle.BundleDeployment bundleDeployment,
Map<org.rhq.core.domain.bundle.BundleResourceDeployment,String> failedToPurge)
This is for internal use only - when BundleManagerRemote.purgeBundleDestination(Subject, int) is done, it
calls this so the purge can be finalized. |
org.rhq.core.domain.bundle.BundleResourceDeploymentHistory |
addBundleResourceDeploymentHistory(org.rhq.core.domain.auth.Subject subject,
int resourceDeploymentId,
org.rhq.core.domain.bundle.BundleResourceDeploymentHistory history)
Called internally to add history when action is taken against a deployment. |
org.rhq.core.domain.bundle.Bundle |
createBundle(org.rhq.core.domain.auth.Subject subject,
String name,
String description,
int bundleTypeId)
Mainly Used For Testing |
org.rhq.core.domain.bundle.BundleVersion |
createBundleAndBundleVersion(org.rhq.core.domain.auth.Subject subject,
String bundleName,
String bundleDescription,
int bundleTypeId,
String bundleVersionName,
String bundleVersionDescription,
String version,
String recipe)
Mainly Used For Testing Convienence method that combines #createBundle(Subject, String, int) and #createBundleVersion(Subject, int, String, String, String). |
org.rhq.core.domain.bundle.BundleDeployment |
createBundleDeploymentInNewTrans(org.rhq.core.domain.auth.Subject subject,
int bundleVersionId,
int bundleDestinationId,
String name,
String description,
org.rhq.core.domain.configuration.Configuration configuration)
Similar to BundleManagerRemote.createBundleDeployment(Subject, int, int, String, Configuration) but
supplies the internally generated deploymentName and has different transaction semantics. |
org.rhq.core.domain.bundle.BundleResourceDeployment |
createBundleResourceDeployment(org.rhq.core.domain.auth.Subject subject,
int bundleDeploymentId,
int resourceId)
This is typically not called directly, typically scheduleBundleResourceDeployment() is called externally. |
org.rhq.core.domain.bundle.BundleType |
createBundleType(org.rhq.core.domain.auth.Subject subject,
String name,
int resourceTypeId)
Not generally called. |
org.rhq.core.domain.bundle.BundleVersion |
createBundleVersion(org.rhq.core.domain.auth.Subject subject,
int bundleId,
String name,
String description,
String version,
String recipe)
Mainly Used For Testing |
void |
deleteBundleDeployment(org.rhq.core.domain.auth.Subject subject,
int bundleDeploymentId)
This is a simple attempt at delete, typically used for removing a poorly defined deployment before it is actually scheduled for deployment. |
void |
deleteBundleDestination(org.rhq.core.domain.auth.Subject subject,
int bundleDestinationId)
This is a simple attempt at delete, typically used for removing a poorly defined destination. |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.bundle.BundleDeployment> |
findBundleDeploymentsByCriteriaWithDestinationFilter(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.BundleDeploymentCriteria criteria)
Fetch bundle deployments by criteria and then filter on destinations on the result objects to limit what the user can see |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.bundle.Bundle> |
findBundlesByCriteriaWithDestinationFilter(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.BundleCriteria criteria)
Fetch bundles by criteria and then on the result objects |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.bundle.BundleVersion> |
findBundleVersionsByCriteriaWithDestinationFilter(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.BundleVersionCriteria criteria)
Fetch bundle versions by criteria and then filter destination on the result objects to limit what the user can see |
HashMap<String,Boolean> |
getAllBundleVersionFilenames(org.rhq.core.domain.auth.Subject subject,
int bundleVersionId)
|
String |
getBundleDeploymentName(org.rhq.core.domain.auth.Subject subject,
int bundleDestinationId,
int bundleVersionId,
int prevDeploymentId)
Needed by the Bundle Deploy and Revert wizards GUI to generate a deployment name for display. |
BundleScheduleRequest |
getScheduleRequest(org.rhq.core.domain.auth.Subject subject,
int resourceDeploymentId,
boolean isCleanDeployment,
boolean isRevert)
Not for general consumption. |
org.rhq.core.domain.bundle.BundleResourceDeployment |
setBundleResourceDeploymentStatus(org.rhq.core.domain.auth.Subject subject,
int resourceDeploymentId,
org.rhq.core.domain.bundle.BundleDeploymentStatus status)
Called internally to set deployment status. |
| Method Detail |
|---|
org.rhq.core.domain.bundle.BundleResourceDeploymentHistory addBundleResourceDeploymentHistory(org.rhq.core.domain.auth.Subject subject,
int resourceDeploymentId,
org.rhq.core.domain.bundle.BundleResourceDeploymentHistory history)
throws Exception
subject - resourceDeploymentId - id of the deployment appending the history recordhistory -
Exception
org.rhq.core.domain.bundle.Bundle createBundle(org.rhq.core.domain.auth.Subject subject,
String name,
String description,
int bundleTypeId)
throws Exception
subject - user that must have proper permissionsname - not null or emptydescription - optional long description of the bundlebundleTypeId - valid bundleType
Exception
org.rhq.core.domain.bundle.BundleVersion createBundleAndBundleVersion(org.rhq.core.domain.auth.Subject subject,
String bundleName,
String bundleDescription,
int bundleTypeId,
String bundleVersionName,
String bundleVersionDescription,
String version,
String recipe)
throws Exception
#createBundle(Subject, String, int) and #createBundleVersion(Subject, int, String, String, String).
This will first check to see if a bundle with the given type/name exists - if it doesn't, it will be created. If it does, it will be reused.
This will then create the bundle version that will be associated with the bundle that was created or found.
subject - user that must have proper permissionsbundleName - name of the bundle to use (if not found, it will be created)bundleDescription - optional long description of the bundlebundleTypeId - the bundle type for the new bundle (if it is created) for which this will be the first versionbundleVersionName - name of the bundle versionbundleVersionDescription - optional long description of the bundle versionversion - optional. If not supplied set to 1.0 for first version, or incremented (as best as possible) for subsequent version
Exception
org.rhq.core.domain.bundle.BundleVersion createBundleVersion(org.rhq.core.domain.auth.Subject subject,
int bundleId,
String name,
String description,
String version,
String recipe)
throws Exception
subject - user that must have proper permissionsbundleId - the bundle for which this will be the next versionname - not null or emptydescription - optional long description of the bundle versionversion - optional. If not supplied set to 1.0 for first version, or incremented (as best as possible) for subsequent version
Exception
org.rhq.core.domain.bundle.BundleType createBundleType(org.rhq.core.domain.auth.Subject subject,
String name,
int resourceTypeId)
throws Exception
subject - must be InventoryManagername - not null or emptyresourceTypeId - id of the ResourceType that handles this BundleType
Exception
org.rhq.core.domain.bundle.BundleResourceDeployment createBundleResourceDeployment(org.rhq.core.domain.auth.Subject subject,
int bundleDeploymentId,
int resourceId)
throws Exception
Exception
org.rhq.core.domain.bundle.BundleDeployment createBundleDeploymentInNewTrans(org.rhq.core.domain.auth.Subject subject,
int bundleVersionId,
int bundleDestinationId,
String name,
String description,
org.rhq.core.domain.configuration.Configuration configuration)
throws Exception
BundleManagerRemote.createBundleDeployment(Subject, int, int, String, Configuration) but
supplies the internally generated deploymentName and has different transaction semantics. Useful when an
slsb method needs to both create a deployment and schedules it prior to returning to an external caller.
Exception
HashMap<String,Boolean> getAllBundleVersionFilenames(org.rhq.core.domain.auth.Subject subject,
int bundleVersionId)
throws Exception
Exception
String getBundleDeploymentName(org.rhq.core.domain.auth.Subject subject,
int bundleDestinationId,
int bundleVersionId,
int prevDeploymentId)
subject - bundleDestinationId - requiredbundleVersionId - required for progressive deployment, -1 for revertprevDeploymentId - required for revert deployment, -1 for progressive
BundleScheduleRequest getScheduleRequest(org.rhq.core.domain.auth.Subject subject,
int resourceDeploymentId,
boolean isCleanDeployment,
boolean isRevert)
throws Exception
Exception
void deleteBundleDeployment(org.rhq.core.domain.auth.Subject subject,
int bundleDeploymentId)
throws Exception
subject - bundleDeploymentId -
Exception - if any part of the removal fails.
void deleteBundleDestination(org.rhq.core.domain.auth.Subject subject,
int bundleDestinationId)
throws Exception
subject - bundleDestinationId -
Exception - if any part of the removal fails.
org.rhq.core.domain.bundle.BundleResourceDeployment setBundleResourceDeploymentStatus(org.rhq.core.domain.auth.Subject subject,
int resourceDeploymentId,
org.rhq.core.domain.bundle.BundleDeploymentStatus status)
throws Exception
subject - resourceDeploymentId - id of the resource deployment appending the history recordstatus -
BundleResourceDeployment
Exception
void _finalizePurge(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.bundle.BundleDeployment bundleDeployment,
Map<org.rhq.core.domain.bundle.BundleResourceDeployment,String> failedToPurge)
throws Exception
BundleManagerRemote.purgeBundleDestination(Subject, int) is done, it
calls this so the purge can be finalized. This is required because this method is called with
a transactional context, as opposed to the main purge method.
subject - bundleDeployment - failedToPurge -
Exception
org.rhq.core.domain.util.PageList<org.rhq.core.domain.bundle.Bundle> findBundlesByCriteriaWithDestinationFilter(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.BundleCriteria criteria)
subject - Callercriteria - criteria to fetch the bundles
org.rhq.core.domain.util.PageList<org.rhq.core.domain.bundle.BundleVersion> findBundleVersionsByCriteriaWithDestinationFilter(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.BundleVersionCriteria criteria)
subject - Callercriteria - criteria to fetch the bundles
org.rhq.core.domain.util.PageList<org.rhq.core.domain.bundle.BundleDeployment> findBundleDeploymentsByCriteriaWithDestinationFilter(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.BundleDeploymentCriteria criteria)
subject - Callercriteria - criteria to fetch the deployments
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||