org.apache.felix.jmood.core
Class CoreController
java.lang.Object
org.apache.felix.jmood.core.CoreController
- All Implemented Interfaces:
- CoreControllerMBean
public class CoreController
- extends java.lang.Object
- implements CoreControllerMBean
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CoreController
public CoreController(AgentContext ac)
startBundle
public void startBundle(java.lang.String bundleSymbolicName)
throws org.osgi.framework.BundleException,
BundleNotAvailableException
- Specified by:
startBundle in interface CoreControllerMBean
- Throws:
org.osgi.framework.BundleException
BundleNotAvailableException
batchStartBundles
public void batchStartBundles(java.lang.String[] bundleSymbolicNames)
throws org.osgi.framework.BundleException,
BundleNotAvailableException
- Specified by:
batchStartBundles in interface CoreControllerMBean
- Throws:
org.osgi.framework.BundleException
BundleNotAvailableException
stopBundle
public void stopBundle(java.lang.String bundleSymbolicName)
throws org.osgi.framework.BundleException,
BundleNotAvailableException
- Specified by:
stopBundle in interface CoreControllerMBean
- Throws:
org.osgi.framework.BundleException
BundleNotAvailableException
batchStopBundles
public void batchStopBundles(java.lang.String[] bundleSymbolicNames)
throws org.osgi.framework.BundleException,
BundleNotAvailableException
- Specified by:
batchStopBundles in interface CoreControllerMBean
- Throws:
org.osgi.framework.BundleException
BundleNotAvailableException
updateBundle
public void updateBundle(java.lang.String bundleSymbolicName)
throws org.osgi.framework.BundleException,
BundleNotAvailableException
- Specified by:
updateBundle in interface CoreControllerMBean
- Throws:
org.osgi.framework.BundleException
BundleNotAvailableException
batchUpdateBundles
public void batchUpdateBundles(java.lang.String[] bundleSymbolicNames)
throws org.osgi.framework.BundleException,
BundleNotAvailableException
- Specified by:
batchUpdateBundles in interface CoreControllerMBean
- Throws:
org.osgi.framework.BundleException
BundleNotAvailableException
updateBundleFromUrl
public void updateBundleFromUrl(java.lang.String bundleSymbolicName,
java.lang.String url)
throws org.osgi.framework.BundleException,
BundleNotAvailableException,
java.net.MalformedURLException,
java.io.IOException
- Specified by:
updateBundleFromUrl in interface CoreControllerMBean
- Throws:
org.osgi.framework.BundleException
BundleNotAvailableException
java.net.MalformedURLException
java.io.IOException
batchUpdateBundleFromUrl
public void batchUpdateBundleFromUrl(java.lang.String[] bundleSymbolicNames,
java.lang.String[] urls)
throws org.osgi.framework.BundleException,
BundleNotAvailableException,
java.net.MalformedURLException,
java.io.IOException
- Specified by:
batchUpdateBundleFromUrl in interface CoreControllerMBean
- Throws:
org.osgi.framework.BundleException
BundleNotAvailableException
java.net.MalformedURLException
java.io.IOException
installBundle
public void installBundle(java.lang.String bundleLocation)
throws org.osgi.framework.BundleException
- Specified by:
installBundle in interface CoreControllerMBean
- Throws:
org.osgi.framework.BundleException
batchInstallBundle
public void batchInstallBundle(java.lang.String[] bundleLocations)
throws org.osgi.framework.BundleException
- Specified by:
batchInstallBundle in interface CoreControllerMBean
- Throws:
org.osgi.framework.BundleException
setBundleStartLevel
public void setBundleStartLevel(java.lang.String bundleSymbolicName,
int newlevel)
throws BundleNotAvailableException,
ServiceNotAvailableException
- Specified by:
setBundleStartLevel in interface CoreControllerMBean
- Throws:
BundleNotAvailableException
ServiceNotAvailableException
batchSetBundleStartLevel
public void batchSetBundleStartLevel(java.lang.String[] bundleSymbolicNames,
int[] newlevels)
- Specified by:
batchSetBundleStartLevel in interface CoreControllerMBean
refreshPackages
public void refreshPackages(java.lang.String[] bundleSymbolicNames)
throws BundleNotAvailableException,
ServiceNotAvailableException
- Specified by:
refreshPackages in interface CoreControllerMBean
- Throws:
BundleNotAvailableException
ServiceNotAvailableException
resolveBundles
public void resolveBundles(java.lang.String[] bundleSymbolicNames)
throws BundleNotAvailableException,
ServiceNotAvailableException
- Specified by:
resolveBundles in interface CoreControllerMBean
- Throws:
BundleNotAvailableException
ServiceNotAvailableException
setPlatformStartLevel
public void setPlatformStartLevel(int newlevel)
throws ServiceNotAvailableException
- Specified by:
setPlatformStartLevel in interface CoreControllerMBean
- Throws:
ServiceNotAvailableException
getPlatformStartLevel
public int getPlatformStartLevel()
throws ServiceNotAvailableException
- Specified by:
getPlatformStartLevel in interface CoreControllerMBean
- Throws:
ServiceNotAvailableException
setInitialBundleStartLevel
public void setInitialBundleStartLevel(int newlevel)
throws ServiceNotAvailableException
- Specified by:
setInitialBundleStartLevel in interface CoreControllerMBean
- Throws:
ServiceNotAvailableException - if StartLevel service not available, or RuntimeMBeanException that wraps an IllegalArgumentException, as specified
by the Start Level service.
getInitialBundleStartLevel
public int getInitialBundleStartLevel()
throws ServiceNotAvailableException
- Specified by:
getInitialBundleStartLevel in interface CoreControllerMBean
- Throws:
ServiceNotAvailableException
restartFramework
public void restartFramework()
throws NotImplementedException
- Specified by:
restartFramework in interface CoreControllerMBean
- Throws:
NotImplementedException
shutdownFramework
public void shutdownFramework()
throws NotImplementedException
- Specified by:
shutdownFramework in interface CoreControllerMBean
- Throws:
NotImplementedException
updateFramework
public void updateFramework()
throws NotImplementedException
- Specified by:
updateFramework in interface CoreControllerMBean
- Throws:
NotImplementedException
uninstallBundle
public void uninstallBundle(java.lang.String bundleSymbolicName)
throws BundleNotAvailableException,
org.osgi.framework.BundleException
- Specified by:
uninstallBundle in interface CoreControllerMBean
- Throws:
BundleNotAvailableException
org.osgi.framework.BundleException