public class BundleServiceDelegate extends Object implements BundleService
BundleService.BundleService.BundleInformation, BundleService.FragmentInformation, BundleService.ModuleInformation| Constructor and Description |
|---|
BundleServiceDelegate() |
| 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 |
setDefaultBundleService(BundleService defaultBundleService) |
void |
setSettingsBean(SettingsBean settingsBean) |
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.
|
public void install(String uri, String target, boolean start) throws ModuleManagementException, InvalidTargetException
BundleServicestart
parameter is true.
In case the same version of the bundle is already installed, update it with the snapshot referenced by the uri.install in interface BundleServiceuri - 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 operationpublic void install(String uri, String target, boolean start, int startLevel) throws ModuleManagementException, InvalidTargetException
BundleServicestart
parameter is true.
In case the same version of the bundle is already installed, update it with the snapshot referenced by the uri.install in interface BundleServiceuri - 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 operationpublic void resolve(BundleInfo bundleInfo, String target) throws ModuleManagementException, ModuleNotFoundException, InvalidTargetException
BundleServiceresolve in interface BundleServicebundleInfo - 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 operationpublic void start(BundleInfo bundleInfo, String target) throws ModuleManagementException, ModuleNotFoundException, InvalidTargetException
BundleServicestart in interface BundleServicebundleInfo - 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 operationpublic void stop(BundleInfo bundleInfo, String target) throws ModuleManagementException, ModuleNotFoundException, InvalidTargetException
BundleServicestop in interface BundleServicebundleInfo - 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 operationpublic void uninstall(BundleInfo bundleInfo, String target) throws ModuleManagementException, ModuleNotFoundException, InvalidTargetException
BundleServiceuninstall in interface BundleServicebundleInfo - 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 operationpublic void refresh(BundleInfo bundleInfo, String target) throws ModuleManagementException, ModuleNotFoundException, InvalidTargetException
BundleServicerefresh in interface BundleServicebundleInfo - 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 operationpublic void refresh(Collection<BundleInfo> bundleInfos, String target) throws ModuleManagementException, ModuleNotFoundException, InvalidTargetException
BundleServicerefresh in interface BundleServicebundleInfos - 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 operationpublic void update(BundleInfo bundleInfo, String target) throws ModuleManagementException, ModuleNotFoundException, InvalidTargetException
BundleServiceupdate in interface BundleServicebundleInfo - 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 operationpublic Map<String,BundleService.BundleInformation> getInfo(BundleInfo bundleInfo, String target) throws ModuleManagementException, InvalidTargetException
BundleServicegetInfo in interface BundleServicebundleInfo - 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 oneModuleManagementExceptionpublic Map<String,Map<String,BundleService.BundleInformation>> getInfos(Collection<BundleInfo> bundleInfos, String target) throws ModuleManagementException, InvalidTargetException
BundleServicegetInfos in interface BundleServicebundleInfos - 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 oneModuleManagementExceptionpublic Map<String,Map<String,BundleService.BundleInformation>> getInfos(BundleBucketInfo bundleBucketInfo, String target) throws ModuleManagementException, InvalidTargetException
BundleServicegetInfos in interface BundleServicebundleBucketInfo - The bundle buckettarget - The group of cluster nodes to get info from (see JavaDoc of the class)ModuleManagementExceptionInvalidTargetExceptionpublic Map<String,Map<String,BundleService.BundleInformation>> getAllInfos(String target) throws ModuleManagementException, InvalidTargetException
BundleServicegetAllInfos in interface BundleServicetarget - The group of cluster nodes to get info from (see JavaDoc of the class)InvalidTargetException - in case the target is not a valid oneModuleManagementExceptionpublic BundleState getLocalState(BundleInfo bundleInfo) throws ModuleManagementException, ModuleNotFoundException
BundleServicegetLocalState in interface BundleServicebundleInfo - The bundle to retrieve statusModuleManagementExceptionModuleNotFoundExceptionpublic BundleService.BundleInformation getLocalInfo(BundleInfo bundleInfo) throws ModuleManagementException, ModuleNotFoundException
BundleServicegetLocalInfo in interface BundleServicebundleInfo - The bundle to retrieve info aboutModuleManagementExceptionModuleNotFoundExceptionpublic Map<String,BundleService.BundleInformation> getLocalInfos(BundleBucketInfo bundleBucketInfo) throws ModuleManagementException
BundleServicegetLocalInfos in interface BundleServicebundleBucketInfo - The bundle bucketModuleManagementExceptionpublic Map<String,BundleService.BundleInformation> getAllLocalInfos() throws ModuleManagementException
BundleServicegetAllLocalInfos in interface BundleServiceModuleManagementExceptionpublic void setDefaultBundleService(BundleService defaultBundleService)
public void setSettingsBean(SettingsBean settingsBean)
Copyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.