WebSphere:*,type=BundleCacheManager
MBean BundleCacheManager
Use the OSGi bundle cache manager MBean 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 bundles for which there are outstanding bundle download requests. |
java.util.List | getAllBundles() Returns a List of Strings containing all known bundle names. |
java.util.Collection | getTokensForBundle( Returns a Collection of Strings containing all assets that are using the specified bundle. |
java.lang.String | getBundleDownloadState( Returns a string that indicates the current download state for the specified bundle. |
java.lang.Integer | getBundleDownloadStatus( Returns the size, in bytes, of the bundle in the bundle cache. |
java.net.URL | getBundleLocationURL( Returns a URL object containing the location of the specified bundle. |
java.lang.Long | getBundleSize( Returns the size of the bundle in the repository, or -1 if the size is not known. |
java.util.List | getDownloadingBundles() Returns a List of Strings containing the bundle names of bundles that are currently being downloaded. |
java.util.List | getDownloadedBundles() Returns a List of Strings containing the bundle names of bundles that have successfully downloaded. |
java.util.Collection | getDownloadExceptions( Returns a Collection of Strings containing any exceptions that are issued during the bundle download. |
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 value indicating whether a bundle download request has already been made for the specified bundle name. |
java.lang.Boolean | isBundleDownloadComplete( Returns a boolean value indicating whether the specified bundle has successfully downloaded. |
java.lang.Boolean | redownloadBundle( Triggers the process to start downloading the specified bundle. |
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. |
java.net.URL | refreshBundleLocationURL( Refreshes the URL of the specified bundle from the loaded bundle repositories. |
Operation Detail |
---|
public java.lang.Boolean areAllDownloadsComplete()
public void downloadBundles()
public java.util.List getAllBundles()
public java.util.Collection getTokensForBundle(java.lang.String bundleName
)
bundleName
-
The name of the bundle to query. The format of the bundle name is <bundle Symbolic Name>_<bundle version>.jar.public java.lang.String getBundleDownloadState(java.lang.String bundleName
)
bundleName
-
The name of the bundle to query. The format of the bundle name is <bundle Symbolic Name>_<bundle version>.jar.public java.lang.Integer getBundleDownloadStatus(java.lang.String bundleName
)
bundleName
-
The name of the bundle to query. The format of the bundle name is <bundle Symbolic Name>_<bundle version>.jar.public java.net.URL getBundleLocationURL(java.lang.String bundleName
)
bundleName
-
The name of the bundle to query. The format of the bundle name is <bundle Symbolic Name>_<bundle version>.jar.public java.lang.Long getBundleSize(java.lang.String bundleName
)
bundleName
-
The name of the bundle to query. 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.Collection getDownloadExceptions(java.lang.String bundleName
)
bundleName
-
The name of the bundle to query. The format of the bundle name is <bundle Symbolic Name>_<bundle version>.jar.public java.util.List getFailedBundleDownloads()
public void discardUnconfirmedBundles()
public java.lang.Boolean hasBundleDownloadBeenRequested(java.lang.String bundleName
)
bundleName
-
The name of the bundle to query. The format of the bundle name is<bundle Symbolic Name>_<bundle version>.jar.public java.lang.Boolean isBundleDownloadComplete(java.lang.String bundleName
)
bundleName
-
The name of the bundle to query. The format of the bundle name is <bundle Symbolic Name>_<bundle version>.jar.public java.lang.Boolean redownloadBundle(java.lang.String bundleName
)
bundleName
-
The name of the bundle to re-download. The format of the bundle name is <bundle Symbolic Name>_<bundle version>.jar.public java.lang.Boolean removeBundleFromCache(java.lang.String bundleName
)
bundleName
-
The name of the bundle 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 name of the bundle 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 name of the bundle to reset. The format of the bundle name is <bundle Symbolic Name>_<bundle version>.jar.public java.net.URL refreshBundleLocationURL(java.lang.String bundleName
)
bundleName
-
The name of the bundle whose bundle location you want to update. The format of the bundle name is <bundle Symbolic Name>_<bundle version>.jar.