public interface BundleService
The value of the target group of cluster nodes could be specified as null, meaning the default group is
concerned, which includes all cluster nodes.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
BundleService.BundleInformation
Info about a bundle.
|
static interface |
BundleService.FragmentInformation
Info about a bundle fragment.
|
static interface |
BundleService.ModuleInformation
Info about a bundle which is a DX module.
|
| Modifier and Type | Method and Description |
|---|---|
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,BundleService.BundleInformation> |
getInfo(BundleInfo bundleInfo,
String target)
Get info about a bundle.
|
Map<String,Map<String,BundleService.BundleInformation>> |
getInfos(BundleBucketInfo bundleBucketInfo,
String target)
Get info about multiple bundles belonging to a single bundle bucket.
|
Map<String,Map<String,BundleService.BundleInformation>> |
getInfos(Collection<BundleInfo> bundleInfos,
String target)
Get info about multiple bundles.
|
BundleService.BundleInformation |
getLocalInfo(BundleInfo bundleInfo)
Get local info about a bundle.
|
Map<String,BundleService.BundleInformation> |
getLocalInfos(BundleBucketInfo bundleBucketInfo)
Get local info about multiple bundles belonging to a single bundle bucket.
|
BundleState |
getLocalState(BundleInfo bundleInfo)
Get current local state of a bundle.
|
void |
install(String uri,
String target,
boolean start)
Install the specified bundle on the target group of cluster nodes, optionally starting it right after if the
start
parameter is true. |
void |
install(String uri,
String target,
boolean start,
int startLevel)
Install the specified bundle on the target group of cluster nodes, optionally starting it right after if the
start
parameter is true. |
void |
refresh(BundleInfo bundleInfo,
String target)
Performs the refresh operation with the provided bundle on the target group of cluster nodes.
|
void |
refresh(Collection<BundleInfo> bundleInfos,
String target)
Performs the refresh operation with the provided bundles on the target group of cluster nodes.
|
void |
resolve(BundleInfo bundleInfo,
String target)
Performs the resolve operation with the provided bundle on the target group of cluster nodes.
|
void |
start(BundleInfo bundleInfo,
String target)
Performs the start operation with the provided bundle on the target group of cluster nodes.
|
void |
stop(BundleInfo bundleInfo,
String target)
Performs the stop operation with the provided bundle on the target group of cluster nodes.
|
void |
uninstall(BundleInfo bundleInfo,
String target)
Performs the uninstall operation with the provided bundle on the target group of cluster nodes.
|
void |
update(BundleInfo bundleInfo,
String target)
Performs the update operation with the provided bundle on the target group of cluster nodes.
|
void install(String uri, String target, boolean start) throws ModuleManagementException, InvalidTargetException
start
parameter is true.
In case the same version of the bundle is already installed, update it with the snapshot referenced by the uri.uri - The bundle locationtarget - The group of cluster nodes targeted by the install operation (see JavaDoc of the class)start - Whether the installed bundle should be started right awayModuleManagementException - in case of operation failureInvalidTargetException - in case target is not a valid target for module operationvoid install(String uri, String target, boolean start, int startLevel) throws ModuleManagementException, InvalidTargetException
start
parameter is true.
In case the same version of the bundle is already installed, update it with the snapshot referenced by the uri.uri - The bundle locationtarget - The group of cluster nodes targeted by the install operation (see JavaDoc of the class)start - Whether the installed bundle should be started right awaystartLevel - The start level to apply to the installed bundleModuleManagementException - in case of operation failureInvalidTargetException - in case target is not a valid target for module operationvoid resolve(BundleInfo bundleInfo, String target) throws ModuleManagementException, ModuleNotFoundException, InvalidTargetException
bundleInfo - The bundle to perform operation fortarget - The group of cluster nodes targeted by the resolve operation (see JavaDoc of the class)ModuleManagementException - in case of operation failureModuleNotFoundException - in case the corresponding bundle cannot be foundInvalidTargetException - in case target is not a valid target for module operationvoid start(BundleInfo bundleInfo, String target) throws ModuleManagementException, ModuleNotFoundException, InvalidTargetException
bundleInfo - The bundle to perform operation fortarget - The group of cluster nodes targeted by the start operation (see JavaDoc of the class)ModuleManagementException - in case of operation failureModuleNotFoundException - in case the corresponding bundle cannot be foundInvalidTargetException - in case target is not a valid target for module operationvoid stop(BundleInfo bundleInfo, String target) throws ModuleManagementException, ModuleNotFoundException, InvalidTargetException
bundleInfo - The bundle to perform operation fortarget - The group of cluster nodes targeted by the stop operation (see JavaDoc of the class)ModuleManagementException - in case of operation failureModuleNotFoundException - in case the corresponding bundle cannot be foundInvalidTargetException - in case target is not a valid target for module operationvoid uninstall(BundleInfo bundleInfo, String target) throws ModuleManagementException, ModuleNotFoundException, InvalidTargetException
bundleInfo - The bundle to perform operation fortarget - The group of cluster nodes targeted by the uninstall operation (see JavaDoc of the class)ModuleManagementException - in case of operation failureModuleNotFoundException - in case the corresponding bundle cannot be foundInvalidTargetException - in case target is not a valid target for module operationvoid refresh(BundleInfo bundleInfo, String target) throws ModuleManagementException, ModuleNotFoundException, InvalidTargetException
bundleInfo - The bundle to perform operation fortarget - The group of cluster nodes targeted by the refresh operation (see JavaDoc of the class)ModuleManagementException - in case of operation failureModuleNotFoundException - in case the corresponding bundle cannot be foundInvalidTargetException - in case target is not a valid target for module operationvoid refresh(Collection<BundleInfo> bundleInfos, String target) throws ModuleManagementException, ModuleNotFoundException, InvalidTargetException
bundleInfos - The bundles to perform operation fortarget - The group of cluster nodes targeted by the refresh operation (see JavaDoc of the class)ModuleManagementException - in case of operation failureModuleNotFoundException - in case any if the corresponding bundles cannot be foundInvalidTargetException - in case target is not a valid target for module operationvoid update(BundleInfo bundleInfo, String target) throws ModuleManagementException, ModuleNotFoundException, InvalidTargetException
bundleInfo - The bundle to perform operation fortarget - The group of cluster nodes targeted by the update operation (see JavaDoc of the class)ModuleManagementException - in case of operation failureModuleNotFoundException - in case the corresponding bundle cannot be foundInvalidTargetException - in case target is not a valid target for module operationMap<String,BundleService.BundleInformation> getInfo(BundleInfo bundleInfo, String target) throws ModuleManagementException, InvalidTargetException
bundleInfo - The bundle to retrieve info abouttarget - The group of cluster nodes to get info from (see JavaDoc of the class)InvalidTargetException - in case the target is not a valid oneModuleManagementExceptionMap<String,Map<String,BundleService.BundleInformation>> getInfos(Collection<BundleInfo> bundleInfos, String target) throws ModuleManagementException, InvalidTargetException
bundleInfos - The bundles to retrieve info abouttarget - The group of cluster nodes to get info from (see JavaDoc of the class)InvalidTargetException - in case the target is not a valid oneModuleManagementExceptionMap<String,Map<String,BundleService.BundleInformation>> getInfos(BundleBucketInfo bundleBucketInfo, String target) throws ModuleManagementException, InvalidTargetException
bundleBucketInfo - The bundle buckettarget - The group of cluster nodes to get info from (see JavaDoc of the class)ModuleManagementExceptionInvalidTargetExceptionMap<String,Map<String,BundleService.BundleInformation>> getAllInfos(String target) throws ModuleManagementException, InvalidTargetException
target - The group of cluster nodes to get info from (see JavaDoc of the class)InvalidTargetException - in case the target is not a valid oneModuleManagementExceptionBundleState getLocalState(BundleInfo bundleInfo) throws ModuleManagementException, ModuleNotFoundException
bundleInfo - The bundle to retrieve statusModuleManagementExceptionModuleNotFoundExceptionBundleService.BundleInformation getLocalInfo(BundleInfo bundleInfo) throws ModuleManagementException, ModuleNotFoundException
bundleInfo - The bundle to retrieve info aboutModuleManagementExceptionModuleNotFoundExceptionMap<String,BundleService.BundleInformation> getLocalInfos(BundleBucketInfo bundleBucketInfo) throws ModuleManagementException
bundleBucketInfo - The bundle bucketModuleManagementExceptionMap<String,BundleService.BundleInformation> getAllLocalInfos() throws ModuleManagementException
ModuleManagementExceptionCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.