org.apache.aries.jmx.framework
Class Framework
java.lang.Object
org.apache.aries.jmx.framework.Framework
- All Implemented Interfaces:
- FrameworkMBean
public class Framework
- extends Object
- implements FrameworkMBean
Framework represents FrameworkMBean implementation.
- Version:
- $Rev: 1005056 $ $Date: 2010-10-06 15:30:02 +0100 (Wed, 06 Oct 2010) $
- See Also:
FrameworkMBean
| Fields inherited from interface org.osgi.jmx.framework.FrameworkMBean |
BATCH_ACTION_RESULT_TYPE, BATCH_INSTALL_RESULT_TYPE, BUNDLE_IN_ERROR, BUNDLE_IN_ERROR_ID_ITEM, BUNDLE_IN_ERROR_LOCATION_ITEM, COMPLETED, COMPLETED_ITEM, ERROR, ERROR_ITEM, OBJECTNAME, REMAINING, REMAINING_ID_ITEM, REMAINING_LOCATION_ITEM, SUCCESS, SUCCESS_ITEM |
|
Constructor Summary |
Framework(org.osgi.framework.BundleContext context,
org.osgi.service.startlevel.StartLevel startLevel,
org.osgi.service.packageadmin.PackageAdmin packageAdmin)
Constructs new FrameworkMBean. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Framework
public Framework(org.osgi.framework.BundleContext context,
org.osgi.service.startlevel.StartLevel startLevel,
org.osgi.service.packageadmin.PackageAdmin packageAdmin)
- Constructs new FrameworkMBean.
- Parameters:
context - bundle context of jmx bundle.startLevel - @see StartLevel service reference.packageAdmin - @see PackageAdmin service reference.
getFrameworkStartLevel
public int getFrameworkStartLevel()
throws IOException
- Specified by:
getFrameworkStartLevel in interface FrameworkMBean
- Throws:
IOException- See Also:
FrameworkMBean.getFrameworkStartLevel()
getInitialBundleStartLevel
public int getInitialBundleStartLevel()
throws IOException
- Specified by:
getInitialBundleStartLevel in interface FrameworkMBean
- Throws:
IOException- See Also:
FrameworkMBean.getInitialBundleStartLevel()
installBundle
public long installBundle(String location)
throws IOException
- Specified by:
installBundle in interface FrameworkMBean
- Throws:
IOException- See Also:
FrameworkMBean.installBundle(java.lang.String)
installBundleFromURL
public long installBundleFromURL(String location,
String url)
throws IOException
- Specified by:
installBundleFromURL in interface FrameworkMBean
- Throws:
IOException- See Also:
FrameworkMBean.installBundleFromURL(String, String)
createStream
public InputStream createStream(String url)
throws IOException
- Throws:
IOException
installBundles
public CompositeData installBundles(String[] locations)
throws IOException
- Specified by:
installBundles in interface FrameworkMBean
- Throws:
IOException- See Also:
FrameworkMBean.installBundles(java.lang.String[])
installBundlesFromURL
public CompositeData installBundlesFromURL(String[] locations,
String[] urls)
throws IOException
- Specified by:
installBundlesFromURL in interface FrameworkMBean
- Throws:
IOException- See Also:
FrameworkMBean.installBundlesFromURL(String[], String[])
refreshBundle
public void refreshBundle(long bundleIdentifier)
throws IOException
- Specified by:
refreshBundle in interface FrameworkMBean
- Throws:
IOException- See Also:
FrameworkMBean.refreshBundle(long)
refreshBundles
public void refreshBundles(long[] bundleIdentifiers)
throws IOException
- Specified by:
refreshBundles in interface FrameworkMBean
- Throws:
IOException- See Also:
FrameworkMBean.refreshBundles(long[])
resolveBundle
public boolean resolveBundle(long bundleIdentifier)
throws IOException
- Specified by:
resolveBundle in interface FrameworkMBean
- Throws:
IOException- See Also:
FrameworkMBean.resolveBundle(long)
resolveBundles
public boolean resolveBundles(long[] bundleIdentifiers)
throws IOException
- Specified by:
resolveBundles in interface FrameworkMBean
- Throws:
IOException- See Also:
FrameworkMBean.resolveBundles(long[])
restartFramework
public void restartFramework()
throws IOException
- Specified by:
restartFramework in interface FrameworkMBean
- Throws:
IOException- See Also:
FrameworkMBean.restartFramework()
setBundleStartLevel
public void setBundleStartLevel(long bundleIdentifier,
int newlevel)
throws IOException
- Specified by:
setBundleStartLevel in interface FrameworkMBean
- Throws:
IOException- See Also:
FrameworkMBean.setBundleStartLevel(long, int)
setBundleStartLevels
public CompositeData setBundleStartLevels(long[] bundleIdentifiers,
int[] newlevels)
throws IOException
- Specified by:
setBundleStartLevels in interface FrameworkMBean
- Throws:
IOException- See Also:
FrameworkMBean.setBundleStartLevels(long[], int[])
setFrameworkStartLevel
public void setFrameworkStartLevel(int newlevel)
throws IOException
- Specified by:
setFrameworkStartLevel in interface FrameworkMBean
- Throws:
IOException- See Also:
FrameworkMBean.setFrameworkStartLevel(int)
setInitialBundleStartLevel
public void setInitialBundleStartLevel(int newlevel)
throws IOException
- Specified by:
setInitialBundleStartLevel in interface FrameworkMBean
- Throws:
IOException- See Also:
FrameworkMBean.setInitialBundleStartLevel(int)
shutdownFramework
public void shutdownFramework()
throws IOException
- Specified by:
shutdownFramework in interface FrameworkMBean
- Throws:
IOException- See Also:
FrameworkMBean.shutdownFramework()
startBundle
public void startBundle(long bundleIdentifier)
throws IOException
- Specified by:
startBundle in interface FrameworkMBean
- Throws:
IOException- See Also:
FrameworkMBean.startBundle(long)
startBundles
public CompositeData startBundles(long[] bundleIdentifiers)
throws IOException
- Specified by:
startBundles in interface FrameworkMBean
- Throws:
IOException- See Also:
FrameworkMBean.startBundles(long[])
stopBundle
public void stopBundle(long bundleIdentifier)
throws IOException
- Specified by:
stopBundle in interface FrameworkMBean
- Throws:
IOException- See Also:
FrameworkMBean.stopBundle(long)
stopBundles
public CompositeData stopBundles(long[] bundleIdentifiers)
throws IOException
- Specified by:
stopBundles in interface FrameworkMBean
- Throws:
IOException- See Also:
FrameworkMBean.stopBundles(long[])
uninstallBundle
public void uninstallBundle(long bundleIdentifier)
throws IOException
- Specified by:
uninstallBundle in interface FrameworkMBean
- Throws:
IOException- See Also:
FrameworkMBean.uninstallBundle(long)
uninstallBundles
public CompositeData uninstallBundles(long[] bundleIdentifiers)
throws IOException
- Specified by:
uninstallBundles in interface FrameworkMBean
- Throws:
IOException- See Also:
FrameworkMBean.uninstallBundles(long[])
updateBundle
public void updateBundle(long bundleIdentifier)
throws IOException
- Specified by:
updateBundle in interface FrameworkMBean
- Throws:
IOException- See Also:
FrameworkMBean.updateBundle(long)
updateBundleFromURL
public void updateBundleFromURL(long bundleIdentifier,
String url)
throws IOException
- Specified by:
updateBundleFromURL in interface FrameworkMBean
- Throws:
IOException- See Also:
FrameworkMBean.updateBundleFromURL(long, String)
updateBundles
public CompositeData updateBundles(long[] bundleIdentifiers)
throws IOException
- Specified by:
updateBundles in interface FrameworkMBean
- Throws:
IOException- See Also:
FrameworkMBean.updateBundles(long[])
updateBundlesFromURL
public CompositeData updateBundlesFromURL(long[] bundleIdentifiers,
String[] urls)
throws IOException
- Specified by:
updateBundlesFromURL in interface FrameworkMBean
- Throws:
IOException- See Also:
FrameworkMBean.updateBundlesFromURL(long[], String[])
updateFramework
public void updateFramework()
throws IOException
- Specified by:
updateFramework in interface FrameworkMBean
- Throws:
IOException- See Also:
FrameworkMBean.updateFramework()
Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.