Skip navigation links

Oracle Communications Service Broker Configuration and Runtime MBean Java API Referencee
6.1

E38079-01


oracle.axia.api.management.deployment
Interface DeploymentServiceMBean


public interface DeploymentServiceMBean

The MBean exposer of DeploymentService, will include installBundle, startBundle, stopBundle, uninstallBundle, deployBundle, undeployBundle,updateBundle and listDeployedBundles operations.


Method Summary
 String[] deployBundle(String bundleLocation, int startLevel)
          Install and start a bundle.
 String[] installBundle(String bundleLocation, int startLevel)
          Install a bundle.
 String[] installManagementAgentBundle(String bundleLocation)
          Install a management agent bundle.
 List<Map<String,Serializable>> listDeployedBundles()
          List deployed bundles.
 void startBundle(String bundleName, String bundleVersion)
          Start a bundle.
 void stopBundle(String bundleName, String bundleVersion)
          Stop a bundle.
 void undeployBundle(String bundleName, String bundleVersion)
          Stop and uninstall a bundle.
 void uninstallBundle(String bundleName, String bundleVersion)
          Uninstall a bundle.
 void updateBundle(String bundleName, String bundleVersion, String bundleLocation)
          Update a bundle.

 

Method Detail

deployBundle

String[] deployBundle(String bundleLocation,
                      int startLevel)
                      throws MBeanException,
                             OperationsException,
                             RuntimeOperationsException
Install and start a bundle.
Parameters:
bundleLocation - the path of the file which will be deployed
startLevel - the startLevel assigned to the bundle
Returns:
String[] the array of application's Bundle-SymbolicName and Bundle-Version
Throws:
MBeanException
OperationsException
RuntimeOperationsException

undeployBundle

void undeployBundle(String bundleName,
                    String bundleVersion)
                    throws MBeanException,
                           OperationsException,
                           RuntimeOperationsException
Stop and uninstall a bundle.
Parameters:
bundleName - the name of the bundle which will be undeployed
bundleVersion - the version of the bundle which will be undeployed
Throws:
MBeanException
OperationsException
RuntimeOperationsException

installBundle

String[] installBundle(String bundleLocation,
                       int startLevel)
                       throws MBeanException,
                              OperationsException,
                              RuntimeOperationsException
Install a bundle.
Parameters:
bundleLocation - the path of the file which will be installed
startLevel - the startLevel assigned to the bundle
Returns:
String[] the array of application's Bundle-SymbolicName and Bundle-Version
Throws:
MBeanException
OperationsException
RuntimeOperationsException

installManagementAgentBundle

String[] installManagementAgentBundle(String bundleLocation)
                                      throws MBeanException,
                                             OperationsException,
                                             RuntimeOperationsException
Install a management agent bundle. This operation will update the provisioning.start.bundle entry in the initial provisioning file to point to this newly installed management agent bundle. Note that managed servers must be restarted for the new management agent bundle to be started and used, even if the bundle is installed in online mode.
Parameters:
bundleLocation - the path of the file which will be installed
Returns:
String[] the array of application's Bundle-SymbolicName and Bundle-Version
Throws:
MBeanException - MBean exception occurred.
OperationsException - Operations exception occurred.
RuntimeOperationsException - Runtime operations exception occurred.

startBundle

void startBundle(String bundleName,
                 String bundleVersion)
                 throws MBeanException,
                        OperationsException,
                        RuntimeOperationsException
Start a bundle.
Parameters:
bundleName - the name of the bundle which will be started
bundleVersion - the version of the bundle which will be started
Throws:
MBeanException
OperationsException
RuntimeOperationsException

stopBundle

void stopBundle(String bundleName,
                String bundleVersion)
                throws MBeanException,
                       OperationsException,
                       RuntimeOperationsException
Stop a bundle.
Parameters:
bundleName - the name of the bundle which will be stoped
bundleVersion - the version of the bundle which will be stoped
Throws:
MBeanException
OperationsException
RuntimeOperationsException

uninstallBundle

void uninstallBundle(String bundleName,
                     String bundleVersion)
                     throws MBeanException,
                            OperationsException,
                            RuntimeOperationsException
Uninstall a bundle.
Parameters:
bundleName - the name of the bundle which will be uninstalled
bundleVersion - the version of the bundle which will be uninstalled
Throws:
MBeanException
OperationsException
RuntimeOperationsException

updateBundle

void updateBundle(String bundleName,
                  String bundleVersion,
                  String bundleLocation)
                  throws MBeanException,
                         OperationsException,
                         RuntimeOperationsException
Update a bundle.
Parameters:
bundleName - the name of the bundle which will be updated
bundleVersion - the version of the bundle which will be updated
bundleLocation - the path of the file which will be used to update
Throws:
MBeanException
OperationsException
RuntimeOperationsException

listDeployedBundles

List<Map<String,Serializable>> listDeployedBundles()
                                                   throws MBeanException,
                                                          OperationsException,
                                                          RuntimeOperationsException
List deployed bundles.
Returns:
a list of map keeping bundle info for each deployed bundle, the string type of value could be retrieved from this map by using key: symbolic-name, version, fragment-host, deploy-state, start-level
Throws:
MBeanException
OperationsException
RuntimeOperationsException

Skip navigation links

Oracle Communications Service Broker Configuration and Runtime MBean Java API Referencee
6.1

E38079-01


Copyright © 2013, Oracle and/or its affiliates. All rights reserved.