WebSphere:*,type=BundleCacheManager
MBean BundleCacheManager
The OSGi Bundle Cache Manager MBean allows the user to interact with bundles that are in the bundle cache. The bundle cache is a local directory that contains bundles that are referenced by OSGi applications, and have been downloaded from both internal and external repositories.
Operation Summary | |
java.lang.Boolean | areAllDownloadsComplete() Returns true if all bundles have been successfully downloaded. |
void | downloadBundles() Triggers the process to start downloading any outstanding bundle download requests. |
java.util.List | getAllBundles() Returns a List of Strings containing all known bundle names. |
java.lang.String | getBundleDownloadState( Returns a string indicating the current download state for the specified bundle. |
java.net.URL | getBundleLocationURL( Returns a URL object containing the location of the specified bundle. |
java.util.List | getDownloadingBundles() Returns a List of Strings containing the bundle names of bundles that are currently downloading. |
java.util.List | getDownloadedBundles() Returns a List of Strings containing the bundle names of bundles that have successfully downloaded. |
java.util.List | getFailedBundleDownloads() Returns a List of Strings containing the bundle names of bundles that have failed to download. |
void | discardUnconfirmedBundles() Internal Use Only. |
java.lang.Boolean | hasBundleDownloadBeenRequested( Returns a boolean indicating whether a bundle download request has already been made for the specified bundle name. |
java.lang.Boolean | isBundleDownloadComplete( Returns a boolean indicating whether the specified bundle has successfully downloaded or not. |
java.lang.Boolean | removeBundleFromCache( Removes the bundle from the bundle cache directory. |
void | requestBundleDownload( Requests that the specified bundle is downloaded the next time the downloadBundles method on this MBean is called. |
void | resetBundleDownload( Resets the state of the specified bundle. |
Operation Detail |
public java.lang.Boolean areAllDownloadsComplete()
public void downloadBundles()
public java.util.List getAllBundles()
public java.lang.String getBundleDownloadState(java.lang.String bundleName
)
bundleName
-
The bundle name to check. The format of the bundle name is <bundle Symbolic Name>_<bundle version>.jar.
public java.net.URL getBundleLocationURL(java.lang.String bundleName
)
bundleName
-
The bundle name to check. The format of the bundle name is <bundle Symbolic Name>_<bundle version>.jar.
public java.util.List getDownloadingBundles()
public java.util.List getDownloadedBundles()
public java.util.List getFailedBundleDownloads()
public void discardUnconfirmedBundles()
public java.lang.Boolean hasBundleDownloadBeenRequested(java.lang.String bundleName
)
bundleName
-
The bundle name to check. The format of the bundle name is<bundle Symbolic Name>_<bundle version>.jar.
public java.lang.Boolean isBundleDownloadComplete(java.lang.String bundleName
)
bundleName
-
The bundle name to query. The format of the bundle name is <bundle Symbolic Name>_<bundle version>.jar.
public java.lang.Boolean removeBundleFromCache(java.lang.String bundleName
)
bundleName
-
The bundle name to remove. The format of the bundle name is <bundle Symbolic Name>_<bundle version>.jar.
public void requestBundleDownload(java.lang.String bundleName,
java.net.URL remoteRepositoryURL
)
bundleName
-
The bundle name to download. The format of the bundle name is <bundle Symbolic Name>_<bundle version>.jar.remoteRepositoryURL
-
The external repository URL to download the bundle from.
public void resetBundleDownload(java.lang.String bundleName
)
bundleName
-
The bundle name to reset. The format of the bundle name is <bundle Symbolic Name>_<bundle version>.jar.