org.apache.felix.jmood.core
Class CoreController
java.lang.Object
org.apache.felix.jmood.core.CoreController
- All Implemented Interfaces:
- CoreControllerMBean
public class CoreController
- extends 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(String bundleSymbolicName)
throws BundleException,
BundleNotAvailableException
- Specified by:
startBundle in interface CoreControllerMBean
- Throws:
BundleException
BundleNotAvailableException
batchStartBundles
public void batchStartBundles(String[] bundleSymbolicNames)
throws BundleException,
BundleNotAvailableException
- Specified by:
batchStartBundles in interface CoreControllerMBean
- Throws:
BundleException
BundleNotAvailableException
stopBundle
public void stopBundle(String bundleSymbolicName)
throws BundleException,
BundleNotAvailableException
- Specified by:
stopBundle in interface CoreControllerMBean
- Throws:
BundleException
BundleNotAvailableException
batchStopBundles
public void batchStopBundles(String[] bundleSymbolicNames)
throws BundleException,
BundleNotAvailableException
- Specified by:
batchStopBundles in interface CoreControllerMBean
- Throws:
BundleException
BundleNotAvailableException
updateBundle
public void updateBundle(String bundleSymbolicName)
throws BundleException,
BundleNotAvailableException
- Specified by:
updateBundle in interface CoreControllerMBean
- Throws:
BundleException
BundleNotAvailableException
batchUpdateBundles
public void batchUpdateBundles(String[] bundleSymbolicNames)
throws BundleException,
BundleNotAvailableException
- Specified by:
batchUpdateBundles in interface CoreControllerMBean
- Throws:
BundleException
BundleNotAvailableException
updateBundleFromUrl
public void updateBundleFromUrl(String bundleSymbolicName,
String url)
throws BundleException,
BundleNotAvailableException,
MalformedURLException,
IOException
- Specified by:
updateBundleFromUrl in interface CoreControllerMBean
- Throws:
BundleException
BundleNotAvailableException
MalformedURLException
IOException
batchUpdateBundleFromUrl
public void batchUpdateBundleFromUrl(String[] bundleSymbolicNames,
String[] urls)
throws BundleException,
BundleNotAvailableException,
MalformedURLException,
IOException
- Specified by:
batchUpdateBundleFromUrl in interface CoreControllerMBean
- Throws:
BundleException
BundleNotAvailableException
MalformedURLException
IOException
installBundle
public void installBundle(String bundleLocation)
throws BundleException
- Specified by:
installBundle in interface CoreControllerMBean
- Throws:
BundleException
batchInstallBundle
public void batchInstallBundle(String[] bundleLocations)
throws BundleException
- Specified by:
batchInstallBundle in interface CoreControllerMBean
- Throws:
BundleException
setBundleStartLevel
public void setBundleStartLevel(String bundleSymbolicName,
int newlevel)
throws BundleNotAvailableException,
ServiceNotAvailableException
- Specified by:
setBundleStartLevel in interface CoreControllerMBean
- Throws:
BundleNotAvailableException
ServiceNotAvailableException
batchSetBundleStartLevel
public void batchSetBundleStartLevel(String[] bundleSymbolicNames,
int[] newlevels)
- Specified by:
batchSetBundleStartLevel in interface CoreControllerMBean
refreshPackages
public void refreshPackages(String[] bundleSymbolicNames)
throws BundleNotAvailableException,
ServiceNotAvailableException
- Specified by:
refreshPackages in interface CoreControllerMBean
- Throws:
BundleNotAvailableException
ServiceNotAvailableException
resolveBundles
public void resolveBundles(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(String bundleSymbolicName)
throws BundleNotAvailableException,
BundleException
- Specified by:
uninstallBundle in interface CoreControllerMBean
- Throws:
BundleNotAvailableException
BundleException
Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.