public interface DeploymentServiceMBean
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
deployBundle(java.lang.String bundleLocation,
int startLevel)
Install and start a bundle.
|
java.lang.String[] |
installBundle(java.lang.String bundleLocation,
int startLevel)
Install a bundle.
|
java.lang.String[] |
installManagementAgentBundle(java.lang.String bundleLocation)
Install a management agent bundle.
|
java.util.List<java.util.Map<java.lang.String,java.io.Serializable>> |
listDeployedBundles()
List deployed bundles.
|
void |
startBundle(java.lang.String bundleName,
java.lang.String bundleVersion)
Start a bundle.
|
void |
stopBundle(java.lang.String bundleName,
java.lang.String bundleVersion)
Stop a bundle.
|
void |
undeployBundle(java.lang.String bundleName,
java.lang.String bundleVersion)
Stop and uninstall a bundle.
|
void |
uninstallBundle(java.lang.String bundleName,
java.lang.String bundleVersion)
Uninstall a bundle.
|
void |
updateBundle(java.lang.String bundleName,
java.lang.String bundleVersion,
java.lang.String bundleLocation)
Update a bundle.
|
java.lang.String[] deployBundle(java.lang.String bundleLocation, int startLevel) throws javax.management.MBeanException, javax.management.OperationsException, javax.management.RuntimeOperationsException
bundleLocation
- the path of the file which will be deployedstartLevel
- the startLevel assigned to the bundlejavax.management.MBeanException
javax.management.OperationsException
javax.management.RuntimeOperationsException
void undeployBundle(java.lang.String bundleName, java.lang.String bundleVersion) throws javax.management.MBeanException, javax.management.OperationsException, javax.management.RuntimeOperationsException
bundleName
- the name of the bundle which will be undeployedbundleVersion
- the version of the bundle which will be undeployedjavax.management.MBeanException
javax.management.OperationsException
javax.management.RuntimeOperationsException
java.lang.String[] installBundle(java.lang.String bundleLocation, int startLevel) throws javax.management.MBeanException, javax.management.OperationsException, javax.management.RuntimeOperationsException
bundleLocation
- the path of the file which will be installedstartLevel
- the startLevel assigned to the bundlejavax.management.MBeanException
javax.management.OperationsException
javax.management.RuntimeOperationsException
java.lang.String[] installManagementAgentBundle(java.lang.String bundleLocation) throws javax.management.MBeanException, javax.management.OperationsException, javax.management.RuntimeOperationsException
bundleLocation
- the path of the file which will be installedjavax.management.MBeanException
- MBean exception occurred.javax.management.OperationsException
- Operations exception occurred.javax.management.RuntimeOperationsException
- Runtime operations exception occurred.void startBundle(java.lang.String bundleName, java.lang.String bundleVersion) throws javax.management.MBeanException, javax.management.OperationsException, javax.management.RuntimeOperationsException
bundleName
- the name of the bundle which will be startedbundleVersion
- the version of the bundle which will be startedjavax.management.MBeanException
javax.management.OperationsException
javax.management.RuntimeOperationsException
void stopBundle(java.lang.String bundleName, java.lang.String bundleVersion) throws javax.management.MBeanException, javax.management.OperationsException, javax.management.RuntimeOperationsException
bundleName
- the name of the bundle which will be stopedbundleVersion
- the version of the bundle which will be stopedjavax.management.MBeanException
javax.management.OperationsException
javax.management.RuntimeOperationsException
void uninstallBundle(java.lang.String bundleName, java.lang.String bundleVersion) throws javax.management.MBeanException, javax.management.OperationsException, javax.management.RuntimeOperationsException
bundleName
- the name of the bundle which will be uninstalledbundleVersion
- the version of the bundle which will be uninstalledjavax.management.MBeanException
javax.management.OperationsException
javax.management.RuntimeOperationsException
void updateBundle(java.lang.String bundleName, java.lang.String bundleVersion, java.lang.String bundleLocation) throws javax.management.MBeanException, javax.management.OperationsException, javax.management.RuntimeOperationsException
bundleName
- the name of the bundle which will be updatedbundleVersion
- the version of the bundle which will be updatedbundleLocation
- the path of the file which will be used to updatejavax.management.MBeanException
javax.management.OperationsException
javax.management.RuntimeOperationsException
java.util.List<java.util.Map<java.lang.String,java.io.Serializable>> listDeployedBundles() throws javax.management.MBeanException, javax.management.OperationsException, javax.management.RuntimeOperationsException
javax.management.MBeanException
javax.management.OperationsException
javax.management.RuntimeOperationsException