|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FrameworkMBean
Field Summary | |
---|---|
static java.lang.String[] |
BUNDLE_ACTION_RESULT
The item names in the CompositeData representing the result of a batch operation |
static java.lang.String |
BUNDLE_BATCH_ACTION_RESULT
The name of the CompositeType which represents the result of a batch operation |
static java.lang.String |
BUNDLE_BATCH_INSTALL_RESULT
The name of the CompositeType which represents the result of a batch install operation |
static java.lang.String |
BUNDLE_COMPLETED
The name of the item containing the list of bundles completing the batch operation in the CompositeData |
static java.lang.String |
BUNDLE_ERROR_MESSAGE
The name of the item containing the error message of the batch operation in the CompositeData |
static java.lang.String |
BUNDLE_IN_ERROR
The name of the item containing the bundle which caused the error during the batch operation in the CompositeData |
static java.lang.String |
BUNDLE_REMAINING
The name of the item containing the list of remaing bundles unproccessed by the failing batch operation in the CompositeData |
static java.lang.String |
BUNDLE_SUCCESS
The name of the item containing the success status of the batch operation in the CompositeData |
Method Summary | |
---|---|
int |
getFrameworkStartLevel()
Retrieve the framework start level |
int |
getInitialBundleStartLevel()
Answer the initial start level assigned to a bundle when it is first started |
long |
installBundle(java.lang.String location)
Install the bundle indicated by the bundleLocations |
long |
installBundle(java.lang.String location,
java.lang.String url)
Install the bundle indicated by the bundleLocations |
javax.management.openmbean.CompositeData |
installBundles(java.lang.String[] locations)
Batch install the bundles indicated by the list of bundleLocationUrls |
javax.management.openmbean.CompositeData |
installBundles(java.lang.String[] locations,
java.lang.String[] urls)
Batch install the bundles indicated by the list of bundleLocationUrls |
void |
refreshPackages(long bundleIdentifier)
Force the update, replacement or removal of the pacakges identified by the list of bundles |
javax.management.openmbean.CompositeData |
refreshPackages(long[] bundleIdentifiers)
Force the update, replacement or removal of the pacakges identified by the list of bundles |
boolean |
resolveBundle(long bundleIdentifier)
Resolve the bundle indicated by the unique symbolic name and version |
boolean |
resolveBundles(long[] bundleIdentifiers)
Batch resolve the bundles indicated by the list of bundle identifiers |
void |
restartFramework()
Restart the framework by updating the system bundle |
void |
setBundleStartLevel(long bundleIdentifier,
int newlevel)
Set the start level for the bundle identifier |
javax.management.openmbean.CompositeData |
setBundleStartLevels(long[] bundleIdentifiers,
int[] newlevels)
Set the start levels for the list of bundles |
void |
setFrameworkStartLevel(int newlevel)
Set the start level for the framework |
void |
setInitialBundleStartLevel(int newlevel)
Set the initial start level assigned to a bundle when it is first started |
void |
shutdownFramework()
Shutdown the framework by stopping the system bundle |
void |
startBundle(long bundleIdentifier)
Start the bundle indicated by the bundle identifier |
javax.management.openmbean.CompositeData |
startBundles(long[] bundleIdentifiers)
Batch start the bundles indicated by the list of bundle identifier |
void |
stopBundle(long bundleIdentifier)
Stop the bundle indicated by the bundle identifier |
javax.management.openmbean.CompositeData |
stopBundles(long[] bundleIdentifiers)
Batch stop the bundles indicated by the list of bundle identifier |
void |
uninstallBundle(long bundleIdentifier)
Uninstall the bundle indicated by the bundle identifier |
javax.management.openmbean.CompositeData |
uninstallBundles(long[] bundleIdentifiers)
Batch uninstall the bundles indicated by the list of bundle identifiers |
void |
updateBundle(long bundleIdentifier)
Update the bundle indicated by the bundle identifier |
void |
updateBundle(long bundleIdentifier,
java.lang.String url)
Update the bundle identified by the bundle identifier |
javax.management.openmbean.CompositeData |
updateBundles(long[] bundleIdentifiers)
Batch update the bundles indicated by the list of bundle identifier |
javax.management.openmbean.CompositeData |
updateBundles(long[] bundleIdentifiers,
java.lang.String[] urls)
Update the bundle uniquely identified by the bundle symbolic name and version using the contents of the supplied urls |
void |
updateFramework()
Update the framework by updating the system bundle |
Field Detail |
---|
static final java.lang.String BUNDLE_COMPLETED
static final java.lang.String BUNDLE_ERROR_MESSAGE
static final java.lang.String BUNDLE_IN_ERROR
static final java.lang.String BUNDLE_REMAINING
static final java.lang.String BUNDLE_SUCCESS
static final java.lang.String[] BUNDLE_ACTION_RESULT
static final java.lang.String BUNDLE_BATCH_ACTION_RESULT
static final java.lang.String BUNDLE_BATCH_INSTALL_RESULT
Method Detail |
---|
int getFrameworkStartLevel() throws java.io.IOException
java.io.IOException
- if the operation failedint getInitialBundleStartLevel() throws java.io.IOException
java.io.IOException
- if the operation failedlong installBundle(java.lang.String location) throws java.io.IOException
location
- - the location of the bundle to install
java.io.IOException
- if the operation does not succeedlong installBundle(java.lang.String location, java.lang.String url) throws java.io.IOException
location
- - the location to assign to the bundleurl
- - the URL which will supply the bytes for the bundle
java.io.IOException
- if the operation does not succeedjavax.management.openmbean.CompositeData installBundles(java.lang.String[] locations) throws java.io.IOException
locations
- - the array of locations of the bundles to install
java.io.IOException
- if the operation does not succeedBatchBundleResult for
the precise specification of the CompositeData type representing the
returned result.
javax.management.openmbean.CompositeData installBundles(java.lang.String[] locations, java.lang.String[] urls) throws java.io.IOException
locations
- - the array of locations to assign to the installed bundlesurls
- - the array of urls which supply the bundle bytes
java.io.IOException
- if the operation does not succeedBatchBundleResult for
the precise specification of the CompositeData type representing the
returned result.
void refreshPackages(long bundleIdentifier) throws java.io.IOException
bundleIdentifier
- - the bundle identifier
java.io.IOException
- if the operation failedBundleBatchActionResult
for the precise specification of the CompositeData type representing
the returned result.
javax.management.openmbean.CompositeData refreshPackages(long[] bundleIdentifiers) throws java.io.IOException
bundleIdentifiers
- - the array of bundle identifiers
java.io.IOException
- if the operation failedBundleBatchActionResult
for the precise specification of the CompositeData type representing
the returned result.
boolean resolveBundle(long bundleIdentifier) throws java.io.IOException
bundleIdentifier
- - the bundle identifier
java.io.IOException
- if the operation does not succeed
java.lang.IllegalArgumentException
- if the bundle indicated does not existboolean resolveBundles(long[] bundleIdentifiers) throws java.io.IOException
bundleIdentifiers
- = the identifiers of the bundles to resolve
java.io.IOException
- if the operation does not succeedvoid restartFramework() throws java.io.IOException
java.io.IOException
- if the operation failedvoid setBundleStartLevel(long bundleIdentifier, int newlevel) throws java.io.IOException
bundleIdentifier
- - the bundle identifiernewlevel
- - the new start level for the bundle
java.io.IOException
- if the operation failedjavax.management.openmbean.CompositeData setBundleStartLevels(long[] bundleIdentifiers, int[] newlevels) throws java.io.IOException
bundleIdentifiers
- - the array of bundle identifiersnewlevels
- - the array of new start level for the bundles
java.io.IOException
- if the operation failedBundleBatchActionResult
for the precise specification of the CompositeData type representing
the returned result.
void setFrameworkStartLevel(int newlevel) throws java.io.IOException
newlevel
- - the new start level
java.io.IOException
- if the operation failedvoid setInitialBundleStartLevel(int newlevel) throws java.io.IOException
newlevel
- - the new start level
java.io.IOException
- if the operation failedvoid shutdownFramework() throws java.io.IOException
java.io.IOException
- if the operation failedvoid startBundle(long bundleIdentifier) throws java.io.IOException
bundleIdentifier
- - the bundle identifier
java.io.IOException
- if the operation does not succeed
java.lang.IllegalArgumentException
- if the bundle indicated does not existjavax.management.openmbean.CompositeData startBundles(long[] bundleIdentifiers) throws java.io.IOException
bundleIdentifiers
- - the array of bundle identifiers
java.io.IOException
- if the operation does not succeedBundleBatchActionResult
for the precise specification of the CompositeData type representing
the returned result.
void stopBundle(long bundleIdentifier) throws java.io.IOException
bundleIdentifier
- - the bundle identifier
java.io.IOException
- if the operation does not succeed
java.lang.IllegalArgumentException
- if the bundle indicated does not existjavax.management.openmbean.CompositeData stopBundles(long[] bundleIdentifiers) throws java.io.IOException
bundleIdentifiers
- - the array of bundle identifiers
java.io.IOException
- if the operation does not succeedBundleBatchActionResult
for the precise specification of the CompositeData type representing
the returned result.
void uninstallBundle(long bundleIdentifier) throws java.io.IOException
bundleIdentifier
- - the bundle identifier
java.io.IOException
- if the operation does not succeed
java.lang.IllegalArgumentException
- if the bundle indicated does not existjavax.management.openmbean.CompositeData uninstallBundles(long[] bundleIdentifiers) throws java.io.IOException
bundleIdentifiers
- - the array of bundle identifiers
java.io.IOException
- if the operation does not succeedBundleBatchActionResult
for the precise specification of the CompositeData type representing
the returned result.
void updateBundle(long bundleIdentifier) throws java.io.IOException
bundleIdentifier
- - the bundle identifier
java.io.IOException
- if the operation does not succeed
java.lang.IllegalArgumentException
- if the bundle indicated does not existvoid updateBundle(long bundleIdentifier, java.lang.String url) throws java.io.IOException
bundleIdentifier
- - the bundle identifierurl
- - the URL to use to update the bundle
java.io.IOException
- if the operation does not succeed
java.lang.IllegalArgumentException
- if the bundle indicated does not existjavax.management.openmbean.CompositeData updateBundles(long[] bundleIdentifiers) throws java.io.IOException
bundleIdentifiers
- - the array of bundle identifiers
java.io.IOException
- if the operation does not succeedBundleBatchActionResult
for the precise specification of the CompositeData type representing
the returned result.
javax.management.openmbean.CompositeData updateBundles(long[] bundleIdentifiers, java.lang.String[] urls) throws java.io.IOException
bundleIdentifiers
- - the array of bundle identifiersurls
- - the array of URLs to use to update the bundles
java.io.IOException
- if the operation does not succeed
java.lang.IllegalArgumentException
- if the bundle indicated does not existBundleBatchActionResult
for the precise specification of the CompositeData type representing
the returned result.
void updateFramework() throws java.io.IOException
java.io.IOException
- if the operation failed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |