public interface ModuleManager
The following bundle key format is supported in the most of operations of this service:
<groupId>/<symbolicName>/<version>
For example:
org.jahia.modules/article/2.0.2
Note, please, the version here is the Bundle-Version. In case of SNAPSHOT versions it can differ in the format from the
module version.
In cases, when the bundle can be unambiguously identified either by the symbolic name and version or by the symbolic name alone, the group ID or the group ID and version correspondingly could me omitted, i.e.:
article/2.0.2
or
article
| Modifier and Type | Method and Description |
|---|---|
OperationResult |
applyBundlesPersistentStates(String target)
Restores persistent state of all bundles from the internal storage.
|
Map<String,Map<String,BundleService.BundleInformation>> |
getAllInfos(String target)
Get info about all installed bundles.
|
Map<String,BundleService.BundleInformation> |
getAllLocalInfos()
Get local info about all installed bundles.
|
Map<String,Map<String,BundleService.BundleInformation>> |
getBucketInfos(String bundleBucketKey,
String target)
Get info about multiple bundles belonging to a single bundle bucket.
|
Map<String,BundleService.BundleInformation> |
getBucketLocalInfos(String bundleBucketKey)
Get local info about multiple bundles belonging to a single bundle bucket.
|
Map<String,BundleService.BundleInformation> |
getInfo(String bundleKey,
String target)
Get info about a bundle.
|
Map<String,Map<String,BundleService.BundleInformation>> |
getInfos(Collection<String> bundleKeys,
String target)
Get info about multiple bundles.
|
BundleService.BundleInformation |
getLocalInfo(String bundleKey)
Get local info about a bundle.
|
BundleState |
getLocalState(String bundleKey)
Get current local state of a bundle.
|
OperationResult |
install(Collection<org.springframework.core.io.Resource> bundleResources,
String target,
boolean start)
Install specified bundles on the target group of cluster nodes, optionally starting them right after.
|
OperationResult |
install(org.springframework.core.io.Resource bundleResource,
String target)
Install the specified bundle on the target group of cluster nodes.
|
OperationResult |
install(org.springframework.core.io.Resource bundleResource,
String target,
boolean start)
Install the specified bundle on the target group of cluster nodes, optionally starting it right after.
|
OperationResult |
refresh(String bundleKey,
String target)
Refresh the specified bundle on the target group of cluster nodes.
|
OperationResult |
start(String bundleKey,
String target)
Start the specified bundle on the target group of cluster nodes.
|
OperationResult |
stop(String bundleKey,
String target)
Stop the specified bundle on the target group of cluster nodes.
|
Collection<BundlePersistentInfo> |
storeAllLocalPersistentStates()
Store persistent state of all bundles in the internal storage for the purpose of restore in the future.
|
OperationResult |
uninstall(String bundleKey,
String target)
Uninstall the specified bundle on the target group of cluster nodes.
|
OperationResult |
update(String bundleKey,
String target)
Update the specified bundle on the target group of cluster nodes.
|
OperationResult install(org.springframework.core.io.Resource bundleResource, String target) throws ModuleManagementException
bundleResource - The resource representing a bundle to installtarget - The group of cluster nodes targeted by the install operation (see class JavaDoc for the supported values)ModuleManagementException - Is case of problemsOperationResult install(org.springframework.core.io.Resource bundleResource, String target, boolean start) throws ModuleManagementException
bundleResource - The resource, representing a bundle to installtarget - The group of cluster nodes targeted by the install operation (see BundleService class JavaDoc)start - Whether the installed bundle should be started right awayModuleManagementException - In case of problemsOperationResult install(Collection<org.springframework.core.io.Resource> bundleResources, String target, boolean start) throws ModuleManagementException
bundleResources - A collection of resources, representing bundles to installtarget - The group of cluster nodes targeted by the install operation (see BundleService class JavaDoc)start - Whether installed bundles should be started right awayModuleManagementException - In case of problemsOperationResult start(String bundleKey, String target) throws ModuleManagementException
bundleKey - Bundle key to start (see class JavaDoc for the supported key format)target - The group of cluster nodes targeted by the start operation (see BundleService class JavaDoc)ModuleManagementException - In case of problemsOperationResult stop(String bundleKey, String target) throws ModuleManagementException
bundleKey - Bundle key to stop (see class JavaDoc for the supported key format)target - The group of cluster nodes targeted by the stop operation (see BundleService class JavaDoc)ModuleManagementException - In case of problemsOperationResult uninstall(String bundleKey, String target) throws ModuleManagementException
bundleKey - Bundle key to uninstall (see class JavaDoc for the supported key format)target - The group of cluster nodes targeted by the uninstall operation (see BundleService class JavaDoc)ModuleManagementException - In case of problemsOperationResult refresh(String bundleKey, String target) throws ModuleManagementException
bundleKey - Bundle key to refresh (see class JavaDoc for the supported key format)target - The group of cluster nodes targeted by the refresh operation (see BundleService class JavaDoc)ModuleManagementException - In case of problemsOperationResult update(String bundleKey, String target) throws ModuleManagementException
bundleKey - Bundle key to update (see class JavaDoc for the supported key format)target - The group of cluster nodes targeted by the update operation (see BundleService class JavaDoc)ModuleManagementException - in case of problemsMap<String,BundleService.BundleInformation> getInfo(String bundleKey, String target) throws ModuleManagementException
bundleKey - Bundle key (see class JavaDoc for the supported key format; note that bundle version is required)target - The group of cluster nodes to get info from (see BundleService class JavaDoc)ModuleManagementExceptionMap<String,Map<String,BundleService.BundleInformation>> getInfos(Collection<String> bundleKeys, String target) throws ModuleManagementException
bundleKeys - Bundle keys (see class JavaDoc for the supported key format; note that bundle version is required)target - The group of cluster nodes to get info from (see BundleService class JavaDoc)ModuleManagementExceptionMap<String,Map<String,BundleService.BundleInformation>> getBucketInfos(String bundleBucketKey, String target) throws ModuleManagementException
bundleBucketKey - Bundle bucket keytarget - The group of cluster nodes to get info from (see BundleService class JavaDoc)ModuleManagementExceptionMap<String,Map<String,BundleService.BundleInformation>> getAllInfos(String target) throws ModuleManagementException
target - The group of cluster nodes to get info from (see BundleService class JavaDoc)ModuleManagementExceptionBundleState getLocalState(String bundleKey) throws ModuleManagementException
bundleKey - Bundle key (see class JavaDoc for the supported key format; note that bundle version is required)ModuleManagementExceptionBundleService.BundleInformation getLocalInfo(String bundleKey) throws ModuleManagementException
bundleKey - Bundle key (see class JavaDoc for the supported key format; note that bundle version is required)ModuleManagementExceptionMap<String,BundleService.BundleInformation> getBucketLocalInfos(String bundleBucketKey) throws ModuleManagementException
bundleBucketKey - Bundle bucket keyModuleManagementExceptionMap<String,BundleService.BundleInformation> getAllLocalInfos() throws ModuleManagementException
ModuleManagementExceptionCollection<BundlePersistentInfo> storeAllLocalPersistentStates() throws ModuleManagementException
ModuleManagementExceptionOperationResult applyBundlesPersistentStates(String target) throws ModuleManagementException
target - The group of cluster nodes targeted by this operation (see BundleService class JavaDoc)ModuleManagementExceptionCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.