org.apache.felix.jmood.core
Interface CoreControllerMBean

All Known Implementing Classes:
CoreController

public interface CoreControllerMBean

The CoreController mbean provides mechanisms to exert control over the framework. For many operations, it provides a batch mechanism to avoid excessive message passing when interacting remotely.


Method Summary
 void batchInstallBundle(String[] bundleLocations)
           
 void batchSetBundleStartLevel(String[] bundleSymbolicNames, int[] newlevels)
           
 void batchStartBundles(String[] bundleSymbolicNames)
           
 void batchStopBundles(String[] bundleSymbolicNames)
           
 void batchUpdateBundleFromUrl(String[] bundleSymbolicNames, String[] urls)
           
 void batchUpdateBundles(String[] bundleSymbolicNames)
           
 int getInitialBundleStartLevel()
           
 int getPlatformStartLevel()
           
 void installBundle(String bundleLocation)
           
 void refreshPackages(String[] bundleSymbolicNames)
           
 void resolveBundles(String[] bundleSymbolicNames)
           
 void restartFramework()
           
 void setBundleStartLevel(String bundleSymbolicName, int newlevel)
           
 void setInitialBundleStartLevel(int newlevel)
           
 void setPlatformStartLevel(int newlevel)
           
 void shutdownFramework()
           
 void startBundle(String bundleSymbolicName)
           
 void stopBundle(String bundleSymbolicName)
           
 void uninstallBundle(String bundleSymbolicName)
           
 void updateBundle(String bundleSymbolicName)
           
 void updateBundleFromUrl(String bundleSymbolicName, String url)
           
 void updateFramework()
           
 

Method Detail

startBundle

void startBundle(String bundleSymbolicName)
                 throws BundleException,
                        BundleNotAvailableException
Throws:
BundleException
BundleNotAvailableException

batchStartBundles

void batchStartBundles(String[] bundleSymbolicNames)
                       throws BundleException,
                              BundleNotAvailableException
Throws:
BundleException
BundleNotAvailableException

stopBundle

void stopBundle(String bundleSymbolicName)
                throws BundleException,
                       BundleNotAvailableException
Throws:
BundleException
BundleNotAvailableException

batchStopBundles

void batchStopBundles(String[] bundleSymbolicNames)
                      throws BundleException,
                             BundleNotAvailableException
Throws:
BundleException
BundleNotAvailableException

updateBundle

void updateBundle(String bundleSymbolicName)
                  throws BundleException,
                         BundleNotAvailableException
Throws:
BundleException
BundleNotAvailableException

uninstallBundle

void uninstallBundle(String bundleSymbolicName)
                     throws BundleNotAvailableException,
                            BundleException
Throws:
BundleNotAvailableException
BundleException

batchUpdateBundles

void batchUpdateBundles(String[] bundleSymbolicNames)
                        throws BundleException,
                               BundleNotAvailableException
Throws:
BundleException
BundleNotAvailableException

updateBundleFromUrl

void updateBundleFromUrl(String bundleSymbolicName,
                         String url)
                         throws BundleException,
                                BundleNotAvailableException,
                                MalformedURLException,
                                IOException
Throws:
BundleException
BundleNotAvailableException
MalformedURLException
IOException

batchUpdateBundleFromUrl

void batchUpdateBundleFromUrl(String[] bundleSymbolicNames,
                              String[] urls)
                              throws BundleException,
                                     BundleNotAvailableException,
                                     MalformedURLException,
                                     IOException
Throws:
BundleException
BundleNotAvailableException
MalformedURLException
IOException

installBundle

void installBundle(String bundleLocation)
                   throws BundleException
Throws:
BundleException

batchInstallBundle

void batchInstallBundle(String[] bundleLocations)
                        throws BundleException
Throws:
BundleException

setBundleStartLevel

void setBundleStartLevel(String bundleSymbolicName,
                         int newlevel)
                         throws BundleNotAvailableException,
                                ServiceNotAvailableException
Throws:
BundleNotAvailableException
ServiceNotAvailableException

batchSetBundleStartLevel

void batchSetBundleStartLevel(String[] bundleSymbolicNames,
                              int[] newlevels)

refreshPackages

void refreshPackages(String[] bundleSymbolicNames)
                     throws BundleNotAvailableException,
                            ServiceNotAvailableException
Throws:
BundleNotAvailableException
ServiceNotAvailableException

resolveBundles

void resolveBundles(String[] bundleSymbolicNames)
                    throws BundleNotAvailableException,
                           ServiceNotAvailableException
Throws:
BundleNotAvailableException
ServiceNotAvailableException

setPlatformStartLevel

void setPlatformStartLevel(int newlevel)
                           throws ServiceNotAvailableException
Throws:
ServiceNotAvailableException

getPlatformStartLevel

int getPlatformStartLevel()
                          throws ServiceNotAvailableException
Throws:
ServiceNotAvailableException

setInitialBundleStartLevel

void setInitialBundleStartLevel(int newlevel)
                                throws ServiceNotAvailableException
Parameters:
newlevel -
Throws:
ServiceNotAvailableException - if StartLevel service not available, or RuntimeMBeanException that wraps an IllegalArgumentException, as specified by the Start Level service.

getInitialBundleStartLevel

int getInitialBundleStartLevel()
                               throws ServiceNotAvailableException
Throws:
ServiceNotAvailableException

restartFramework

void restartFramework()
                      throws NotImplementedException
Throws:
NotImplementedException

shutdownFramework

void shutdownFramework()
                       throws NotImplementedException
Throws:
NotImplementedException

updateFramework

void updateFramework()
                     throws NotImplementedException
Throws:
NotImplementedException


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.