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.
startBundle
void startBundle(java.lang.String bundleSymbolicName)
throws org.osgi.framework.BundleException,
BundleNotAvailableException
- Throws:
org.osgi.framework.BundleException
BundleNotAvailableException
batchStartBundles
void batchStartBundles(java.lang.String[] bundleSymbolicNames)
throws org.osgi.framework.BundleException,
BundleNotAvailableException
- Throws:
org.osgi.framework.BundleException
BundleNotAvailableException
stopBundle
void stopBundle(java.lang.String bundleSymbolicName)
throws org.osgi.framework.BundleException,
BundleNotAvailableException
- Throws:
org.osgi.framework.BundleException
BundleNotAvailableException
batchStopBundles
void batchStopBundles(java.lang.String[] bundleSymbolicNames)
throws org.osgi.framework.BundleException,
BundleNotAvailableException
- Throws:
org.osgi.framework.BundleException
BundleNotAvailableException
updateBundle
void updateBundle(java.lang.String bundleSymbolicName)
throws org.osgi.framework.BundleException,
BundleNotAvailableException
- Throws:
org.osgi.framework.BundleException
BundleNotAvailableException
uninstallBundle
void uninstallBundle(java.lang.String bundleSymbolicName)
throws BundleNotAvailableException,
org.osgi.framework.BundleException
- Throws:
BundleNotAvailableException
org.osgi.framework.BundleException
batchUpdateBundles
void batchUpdateBundles(java.lang.String[] bundleSymbolicNames)
throws org.osgi.framework.BundleException,
BundleNotAvailableException
- Throws:
org.osgi.framework.BundleException
BundleNotAvailableException
updateBundleFromUrl
void updateBundleFromUrl(java.lang.String bundleSymbolicName,
java.lang.String url)
throws org.osgi.framework.BundleException,
BundleNotAvailableException,
java.net.MalformedURLException,
java.io.IOException
- Throws:
org.osgi.framework.BundleException
BundleNotAvailableException
java.net.MalformedURLException
java.io.IOException
batchUpdateBundleFromUrl
void batchUpdateBundleFromUrl(java.lang.String[] bundleSymbolicNames,
java.lang.String[] urls)
throws org.osgi.framework.BundleException,
BundleNotAvailableException,
java.net.MalformedURLException,
java.io.IOException
- Throws:
org.osgi.framework.BundleException
BundleNotAvailableException
java.net.MalformedURLException
java.io.IOException
installBundle
void installBundle(java.lang.String bundleLocation)
throws org.osgi.framework.BundleException
- Throws:
org.osgi.framework.BundleException
batchInstallBundle
void batchInstallBundle(java.lang.String[] bundleLocations)
throws org.osgi.framework.BundleException
- Throws:
org.osgi.framework.BundleException
setBundleStartLevel
void setBundleStartLevel(java.lang.String bundleSymbolicName,
int newlevel)
throws BundleNotAvailableException,
ServiceNotAvailableException
- Throws:
BundleNotAvailableException
ServiceNotAvailableException
batchSetBundleStartLevel
void batchSetBundleStartLevel(java.lang.String[] bundleSymbolicNames,
int[] newlevels)
refreshPackages
void refreshPackages(java.lang.String[] bundleSymbolicNames)
throws BundleNotAvailableException,
ServiceNotAvailableException
- Throws:
BundleNotAvailableException
ServiceNotAvailableException
resolveBundles
void resolveBundles(java.lang.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