|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ContentManagerLocal
EJB interface to the server content subsystem.
| Method Summary | |
|---|---|
void |
checkForTimedOutRequests(Subject subject)
For internal use only - Will check to see if any in progress content request jobs are taking too long to finish and if so marks them as failed. |
void |
completeDeletePackageRequest(RemovePackagesResponse response)
For documentation, see ContentServerService.completeDeletePackageRequest(org.rhq.core.domain.content.transfer.RemovePackagesResponse)
. |
void |
completeDeployPackageRequest(DeployPackagesResponse response)
For documentation, see ContentServerService.completeDeployPackageRequest(org.rhq.core.domain.content.transfer.DeployPackagesResponse)
. |
void |
completeRetrievePackageBitsRequest(ContentServiceResponse response,
java.io.InputStream bitStream)
For documentation, see ContentServerService.completeRetrievePackageBitsRequest(org.rhq.core.clientapi.server.content.ContentServiceResponse, java.io.InputStream)
)}. |
ContentServiceRequest |
createDeployRequest(int resourceId,
java.lang.String username,
java.util.Set<ResourcePackageDetails> packages,
java.lang.String requestNotes)
For internal use only - Adds a request entry to the database to track the deployment of a group of packages. |
PackageVersion |
createPackageVersion(java.lang.String packageName,
int packageTypeId,
java.lang.String version,
int architectureId,
java.io.InputStream packageBitStream)
Creates a new package version in the system. |
PackageVersion |
createPackageVersion(Subject subject,
java.lang.String packageName,
int packageTypeId,
java.lang.String version,
java.lang.Integer architectureId,
byte[] packageBytes)
|
ContentServiceRequest |
createRemoveRequest(int resourceId,
java.lang.String username,
int[] installedPackageIds,
java.lang.String requestNotes)
For internal use only - Adds a request entry to the database to track the deleting of currently installed packages from the resource. |
ContentServiceRequest |
createRetrieveBitsRequest(int resourceId,
java.lang.String username,
int installedPackageId)
For internal use only - Adds a request entry to the database to track the request for a package's bits. |
void |
deletePackages(Subject user,
int[] resourceIds,
int[] installedPackageIds)
Deletes the specified package from the resource. |
void |
deletePackages(Subject subject,
int resourceId,
int[] installedPackageIds,
java.lang.String requestNotes)
|
void |
deployPackages(Subject subject,
int[] resourceIds,
int[] packageVersionIds)
|
void |
deployPackages(Subject user,
int resourceId,
java.util.Set<ResourcePackageDetails> packages,
java.lang.String requestNotes)
Deploys a package on the specified resource. |
void |
failRequest(int requestId,
java.lang.Throwable error)
For internal use only - Updates a persisted ContentServiceRequest in the case a failure is
encountered during one of the use case methods (i.e. |
java.util.List<Architecture> |
findArchitectures(Subject subject)
|
PageList<InstalledPackage> |
findInstalledPackagesByCriteria(Subject subject,
InstalledPackageCriteria criteria)
|
java.util.List<java.lang.String> |
findInstalledPackageVersions(Subject subject,
int resourceId)
Returns list of version strings for installed packages on the resource. |
java.util.List<PackageType> |
findPackageTypes(Subject subject,
java.lang.String resourceTypeName,
java.lang.String pluginName)
|
PageList<PackageVersion> |
findPackageVersionsByCriteria(Subject subject,
PackageVersionCriteria criteria)
|
InstalledPackage |
getBackingPackageForResource(Subject subject,
int resourceId)
|
Architecture |
getNoArchitecture()
Returns the entity associated with no architecture. |
byte[] |
getPackageBytes(Subject user,
int resourceId,
int installedPackageId)
|
PackageType |
getResourceCreationPackageType(int resourceTypeId)
Returns the package type that backs resources of the specified type. |
java.util.Set<ResourcePackageDetails> |
loadDependencies(int requestId,
java.util.Set<PackageDetailsKey> keys)
For documentation, see ContentServerService.loadDependencies(int, java.util.Set) |
void |
mergeDiscoveredPackages(ContentDiscoveryReport report)
For documentation, see ContentServerService.mergeDiscoveredPackages(org.rhq.core.domain.content.transfer.ContentDiscoveryReport)
. |
Package |
persistOrMergePackageSafely(Package pkg)
Finds, and if it doesn't exist, persists the package. |
PackageVersion |
persistOrMergePackageVersionSafely(PackageVersion pv)
Finds, and if it doesn't exist, persists the package version. |
Package |
persistPackage(Package pkg)
Very simple method that pesists the given package within its own transaction. |
PackageVersion |
persistPackageVersion(PackageVersion pv)
Very simple method that persists the given package version within its own transaction. |
void |
retrieveBitsFromResource(Subject user,
int resourceId,
int installedPackageId)
Requests the plugin load and send the actual bits for the specified package. |
java.util.List<DeployPackageStep> |
translateInstallationSteps(int resourceId,
ResourcePackageDetails packageDetails)
Requests the plugin translate the installation steps of the specified package. |
| Method Detail |
|---|
void deployPackages(Subject user,
int resourceId,
java.util.Set<ResourcePackageDetails> packages,
java.lang.String requestNotes)
PackageVersion being installed, along with the deployment configuration values if any. This method will
take care of populating the rest of the values in each installed package object.
user - the user who is requesting the creationresourceId - identifies the resource against which the package will be deployedpackages - packages (with their deployment time configuration values) to deployrequestNotes - user-specified notes on what is contained in this request
void deletePackages(Subject user,
int[] resourceIds,
int[] installedPackageIds)
user - the user who is requesting the deleteresourceIds - identifies the resources from which the packages should be deletedinstalledPackageIds - identifies all of the packages to be deleted
void retrieveBitsFromResource(Subject user,
int resourceId,
int installedPackageId)
user - the user who is requesting the updateresourceId - identifies the resource against which the package existsinstalledPackageId - id of the installed package to retrieve bits
java.util.List<DeployPackageStep> translateInstallationSteps(int resourceId,
ResourcePackageDetails packageDetails)
throws java.lang.Exception
resourceId - resource against which the package is being installedpackageDetails - package being installed
null if they cannot be determined
for this package
java.lang.Exception - if there is an error either contacting the agent or in the plugin's generation of the stepsvoid mergeDiscoveredPackages(ContentDiscoveryReport report)
ContentServerService.mergeDiscoveredPackages(org.rhq.core.domain.content.transfer.ContentDiscoveryReport)
.
void completeDeployPackageRequest(DeployPackagesResponse response)
ContentServerService.completeDeployPackageRequest(org.rhq.core.domain.content.transfer.DeployPackagesResponse)
.
void completeDeletePackageRequest(RemovePackagesResponse response)
ContentServerService.completeDeletePackageRequest(org.rhq.core.domain.content.transfer.RemovePackagesResponse)
.
void completeRetrievePackageBitsRequest(ContentServiceResponse response,
java.io.InputStream bitStream)
ContentServerService.completeRetrievePackageBitsRequest(org.rhq.core.clientapi.server.content.ContentServiceResponse, java.io.InputStream)
)}.
java.util.Set<ResourcePackageDetails> loadDependencies(int requestId,
java.util.Set<PackageDetailsKey> keys)
ContentServerService.loadDependencies(int, java.util.Set)
ContentServiceRequest createDeployRequest(int resourceId,
java.lang.String username,
java.util.Set<ResourcePackageDetails> packages,
java.lang.String requestNotes)
resourceId - resource against which the package request was executedusername - user who made the requestpackages - packages being deployed in the requestrequestNotes - user-specified notes on what the request entails
ContentServiceRequest createRemoveRequest(int resourceId,
java.lang.String username,
int[] installedPackageIds,
java.lang.String requestNotes)
resourceId - resource against which the package request was executedusername - user who made the requestinstalledPackageIds - identifies the installed packages that are to be deleted; ids in this list must be of
valid InstalledPackage objects on the resourcerequestNotes - user-specified notes on what the request entails
ContentServiceRequest createRetrieveBitsRequest(int resourceId,
java.lang.String username,
int installedPackageId)
resourceId - resource against which the package request was executedusername - user who made the requestinstalledPackageId - package whose bits are being retrieved by the request; this must be the ID of a valid
InstalledPackage on the resource.
void failRequest(int requestId,
java.lang.Throwable error)
ContentServiceRequest in the case a failure is
encountered during one of the use case methods (i.e. create, delete).
requestId - identifies the previously persisted requesterror - error encountered to cause the failurevoid checkForTimedOutRequests(Subject subject)
subject - only the overlord may execute this system operation
PackageVersion createPackageVersion(java.lang.String packageName,
int packageTypeId,
java.lang.String version,
int architectureId,
java.io.InputStream packageBitStream)
packageName - parent package name; uniquely identifies the package under which this version goespackageTypeId - identifies the type of package in case the general package needs to be createdversion - identifies the version to be createarchitectureId - architecture of the newly created package version
PackageVersion persistPackageVersion(PackageVersion pv)
This method is here to support persistOrMergePackageVersionSafely(PackageVersion),
it is not meant for general consumption.
pv - the package version to persist
PackageVersion persistOrMergePackageVersionSafely(PackageVersion pv)
This method is for a very specific use case - that is, when creating a package version in a place where, concurrently, someone else might try to create the same package version. It is not for general persisting/merging of package versions.
pv - the package version to find and possibly persist to the database
Package persistPackage(Package pkg)
This method is here to support persistOrMergePackageSafely(Package),
it is not meant for general consumption.
pkg - the package to persist
Package persistOrMergePackageSafely(Package pkg)
This method is for a very specific use case - that is, when creating a package in a place where, concurrently, someone else might try to create the same package. It is not for general persisting/merging of packages.
pkg - the package to find and possibly persist to the database
Architecture getNoArchitecture()
java.util.List<java.lang.String> findInstalledPackageVersions(Subject subject,
int resourceId)
subject - resourceId -
PackageType getResourceCreationPackageType(int resourceTypeId)
resourceTypeId - identifies the resource type.
null otherwise
PackageVersion createPackageVersion(Subject subject,
java.lang.String packageName,
int packageTypeId,
java.lang.String version,
java.lang.Integer architectureId,
byte[] packageBytes)
createPackageVersion(Subject, String, int, String, int, byte[]);
void deletePackages(Subject subject,
int resourceId,
int[] installedPackageIds,
java.lang.String requestNotes)
ContentManagerRemote#deletePackages(Subject, int, int[], String)}
void deployPackages(Subject subject,
int[] resourceIds,
int[] packageVersionIds)
ContentManagerRemote#deployPackages(Subject, int[], int[])}java.util.List<Architecture> findArchitectures(Subject subject)
ContentManagerRemote#findArchitectures(Subject)}
java.util.List<PackageType> findPackageTypes(Subject subject,
java.lang.String resourceTypeName,
java.lang.String pluginName)
throws ResourceTypeNotFoundException
ResourceTypeNotFoundExceptionContentManagerRemote#findPackageTypes(Subject, String, String)}
PageList<InstalledPackage> findInstalledPackagesByCriteria(Subject subject,
InstalledPackageCriteria criteria)
ContentManagerRemote#findInstalledPackagesByCriteria(Subject, InstalledPackageCriteria)}
PageList<PackageVersion> findPackageVersionsByCriteria(Subject subject,
PackageVersionCriteria criteria)
ContentManagerRemote#findPackageVersionsByCriteria(Subject, PackageVersionCriteria)}
InstalledPackage getBackingPackageForResource(Subject subject,
int resourceId)
ContentManagerRemote#getBackingPackageForResource(Subject, int)
byte[] getPackageBytes(Subject user,
int resourceId,
int installedPackageId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||