org.apache.felix.jmood.core
Class ManagedBundle
java.lang.Object
org.apache.felix.jmood.core.ManagedBundle
- All Implemented Interfaces:
- ManagedBundleMBean
public class ManagedBundle
- extends Object
- implements ManagedBundleMBean
This class implements the MBean interface. In order to obtain
the string representation of bundles, services and packages
it uses the CoreUtils static methods.
- See Also:
InstrumentationSupport
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ManagedBundle
public ManagedBundle(Bundle bundle,
AgentContext ac)
getBundleId
public long getBundleId()
- Specified by:
getBundleId
in interface ManagedBundleMBean
getExportedPackages
public String[] getExportedPackages()
throws ServiceNotAvailableException
- Specified by:
getExportedPackages
in interface ManagedBundleMBean
- Throws:
ServiceNotAvailableException
getFragments
public String[] getFragments()
throws ServiceNotAvailableException
- Specified by:
getFragments
in interface ManagedBundleMBean
- Throws:
ServiceNotAvailableException
getHeaders
public Hashtable getHeaders()
- Specified by:
getHeaders
in interface ManagedBundleMBean
getHosts
public String[] getHosts()
throws ServiceNotAvailableException
- Specified by:
getHosts
in interface ManagedBundleMBean
- Throws:
ServiceNotAvailableException
getImportedPackages
public String[] getImportedPackages()
throws ServiceNotAvailableException
- Specified by:
getImportedPackages
in interface ManagedBundleMBean
- Throws:
ServiceNotAvailableException
getLastModified
public long getLastModified()
- Specified by:
getLastModified
in interface ManagedBundleMBean
getRegisteredServices
public String[] getRegisteredServices()
- Specified by:
getRegisteredServices
in interface ManagedBundleMBean
getBundleDependencies
public String[] getBundleDependencies()
throws ServiceNotAvailableException
- Specified by:
getBundleDependencies
in interface ManagedBundleMBean
- Throws:
ServiceNotAvailableException
getRequiringBundles
public String[] getRequiringBundles()
throws ServiceNotAvailableException
- Specified by:
getRequiringBundles
in interface ManagedBundleMBean
- Throws:
ServiceNotAvailableException
getServicesInUse
public String[] getServicesInUse()
- Specified by:
getServicesInUse
in interface ManagedBundleMBean
getStartLevel
public int getStartLevel()
throws ServiceNotAvailableException
- Specified by:
getStartLevel
in interface ManagedBundleMBean
- Throws:
ServiceNotAvailableException
setStartLevel
public void setStartLevel(int level)
throws ServiceNotAvailableException
- Throws:
ServiceNotAvailableException
getState
public String getState()
- Specified by:
getState
in interface ManagedBundleMBean
getSymbolicName
public String getSymbolicName()
- Specified by:
getSymbolicName
in interface ManagedBundleMBean
isBundlePersistentlyStarted
public boolean isBundlePersistentlyStarted()
throws ServiceNotAvailableException
- Specified by:
isBundlePersistentlyStarted
in interface ManagedBundleMBean
- Throws:
ServiceNotAvailableException
isFragment
public boolean isFragment()
throws ServiceNotAvailableException
- Specified by:
isFragment
in interface ManagedBundleMBean
- Throws:
ServiceNotAvailableException
isRemovalPending
public boolean isRemovalPending()
throws ServiceNotAvailableException
- Specified by:
isRemovalPending
in interface ManagedBundleMBean
- Throws:
ServiceNotAvailableException
isRequired
public boolean isRequired()
throws ServiceNotAvailableException
- Specified by:
isRequired
in interface ManagedBundleMBean
- Throws:
ServiceNotAvailableException
start
public void start()
throws BundleException
- Specified by:
start
in interface ManagedBundleMBean
- Throws:
BundleException
stop
public void stop()
throws BundleException
- Specified by:
stop
in interface ManagedBundleMBean
- Throws:
BundleException
update
public void update()
throws BundleException
- Specified by:
update
in interface ManagedBundleMBean
- Throws:
BundleException
updateFromUrl
public void updateFromUrl(String url)
throws MalformedURLException,
BundleException,
IOException
- Specified by:
updateFromUrl
in interface ManagedBundleMBean
- Throws:
MalformedURLException
BundleException
IOException
refreshBundle
public void refreshBundle()
throws BundleNotAvailableException,
ServiceNotAvailableException
- Specified by:
refreshBundle
in interface ManagedBundleMBean
- Throws:
BundleNotAvailableException
ServiceNotAvailableException
resolveBundle
public void resolveBundle()
throws BundleNotAvailableException,
ServiceNotAvailableException
- Specified by:
resolveBundle
in interface ManagedBundleMBean
- Throws:
BundleNotAvailableException
ServiceNotAvailableException
uninstall
public void uninstall()
throws BundleException
- Specified by:
uninstall
in interface ManagedBundleMBean
- Throws:
BundleException
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.