|
||||||||||
| 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(Subject subject,
BundleDeployment bundleDeployment,
Map<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. |
BundleResourceDeploymentHistory |
addBundleResourceDeploymentHistory(Subject subject,
int resourceDeploymentId,
BundleResourceDeploymentHistory history)
Called internally to add history when action is taken against a deployment. |
Bundle |
createBundle(Subject subject,
String name,
String description,
int bundleTypeId)
Mainly Used For Testing |
BundleVersion |
createBundleAndBundleVersion(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). |
BundleDeployment |
createBundleDeploymentInNewTrans(Subject subject,
int bundleVersionId,
int bundleDestinationId,
String name,
String description,
Configuration configuration)
Similar to BundleManagerRemote.createBundleDeployment(Subject, int, int, String, Configuration) but
supplies the internally generated deploymentName and has different transaction semantics. |
BundleResourceDeployment |
createBundleResourceDeployment(Subject subject,
int bundleDeploymentId,
int resourceId)
This is typically not called directly, typically scheduleBundleResourceDeployment() is called externally. |
BundleType |
createBundleType(Subject subject,
String name,
int resourceTypeId)
Not generally called. |
BundleVersion |
createBundleVersion(Subject subject,
int bundleId,
String name,
String description,
String version,
String recipe)
Mainly Used For Testing |
void |
deleteBundleDeployment(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(Subject subject,
int bundleDestinationId)
This is a simple attempt at delete, typically used for removing a poorly defined destination. |
HashMap<String,Boolean> |
getAllBundleVersionFilenames(Subject subject,
int bundleVersionId)
|
String |
getBundleDeploymentName(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(Subject subject,
int resourceDeploymentId,
boolean isCleanDeployment,
boolean isRevert)
Not for general consumption. |
BundleResourceDeployment |
setBundleResourceDeploymentStatus(Subject subject,
int resourceDeploymentId,
BundleDeploymentStatus status)
Called internally to set deployment status. |
| Method Detail |
|---|
BundleResourceDeploymentHistory addBundleResourceDeploymentHistory(Subject subject,
int resourceDeploymentId,
BundleResourceDeploymentHistory history)
throws Exception
subject - resourceDeploymentId - id of the deployment appending the history recordhistory -
Exception
Bundle createBundle(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
BundleVersion createBundleAndBundleVersion(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
BundleVersion createBundleVersion(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
BundleType createBundleType(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
BundleResourceDeployment createBundleResourceDeployment(Subject subject,
int bundleDeploymentId,
int resourceId)
throws Exception
Exception
BundleDeployment createBundleDeploymentInNewTrans(Subject subject,
int bundleVersionId,
int bundleDestinationId,
String name,
String description,
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(Subject subject,
int bundleVersionId)
throws Exception
Exception
String getBundleDeploymentName(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(Subject subject,
int resourceDeploymentId,
boolean isCleanDeployment,
boolean isRevert)
throws Exception
Exception
void deleteBundleDeployment(Subject subject,
int bundleDeploymentId)
throws Exception
subject - bundleDeploymentId -
Exception - if any part of the removal fails.
void deleteBundleDestination(Subject subject,
int bundleDestinationId)
throws Exception
subject - bundleDestinationId -
Exception - if any part of the removal fails.
BundleResourceDeployment setBundleResourceDeploymentStatus(Subject subject,
int resourceDeploymentId,
BundleDeploymentStatus status)
throws Exception
subject - resourceDeploymentId - id of the resource deployment appending the history recordstatus -
BundleResourceDeployment
Exception
void _finalizePurge(Subject subject,
BundleDeployment bundleDeployment,
Map<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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||