|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BundleStateMBeanExt
An extension to BundleStateMBean
.
Field Summary | |
---|---|
static String |
OBJECTNAME
The default object name: jboss.osgi:service=jmx,type=BundleState |
Method Summary | |
---|---|
CompositeData |
getBundle(long bundleId)
Answer the bundle state for a single bundle. |
String |
getDataFile(long bundleId,
String filename)
Get the string encoded file path in the persistent storage area provided for the given bundle. |
String |
getEntry(long bundleId,
String path)
Returns a string encoded URL to the entry at the specified path in the given bundle. |
TabularData |
getHeaders(long bundleId,
String locale)
Answer the headers for the bundle uniquely identified by the bundle id. |
CompositeData |
getProperty(long bundleId,
String key)
Answer the map of properties associated with this bundle |
String |
getResource(long bundleId,
String name)
Find the specified resource from the given bundle's class loader. |
long |
loadClass(long bundleId,
String name)
Loads the specified class using the class loader of the bundle with the given identifier. |
Methods inherited from interface org.osgi.jmx.framework.BundleStateMBean |
---|
getExportedPackages, getFragments, getHeaders, getHosts, getImportedPackages, getLastModified, getLocation, getRegisteredServices, getRequiredBundles, getRequiringBundles, getServicesInUse, getStartLevel, getState, getSymbolicName, getVersion, isFragment, isPersistentlyStarted, isRemovalPending, isRequired, listBundles |
Field Detail |
---|
static final String OBJECTNAME
Method Detail |
---|
CompositeData getBundle(long bundleId) throws IOException
BundleStateMBean.BUNDLE_TYPE
.
https://www.osgi.org/members/bugzilla/show_bug.cgi?id=1598
bundleId
- the bundle identifier
IOException
- if the operation fails
IllegalArgumentException
- if the bundle indicated does not existTabularData getHeaders(long bundleId, String locale) throws IOException
BundleStateMBean.HEADERS_TYPE
.
https://www.osgi.org/members/bugzilla/show_bug.cgi?id=1599
bundleId
- the unique identifier of the bundlelocale
- The locale name into which the header values are to be localized.
IOException
- if the operation fails
IllegalArgumentException
- if the bundle indicated does not existCompositeData getProperty(long bundleId, String key) throws IOException
bundleId
- the unique identifier of the bundlekey
- The name of the requested property.
IOException
- if the operation fails
IllegalArgumentException
- if the bundle indicated does not existfor the details of the CompositeType
https://www.osgi.org/members/bugzilla/show_bug.cgi?id=1600
long loadClass(long bundleId, String name) throws ClassNotFoundException, IOException
bundleId
- the unique identifier of the bundlename
- The name of the class to load
ClassNotFoundException
- If no such class can be found or if the given bundle is a fragment bundle
IOException
String getEntry(long bundleId, String path) throws IOException
bundleId
- the unique identifier of the bundlepath
- The path name of the entry
IOException
String getResource(long bundleId, String name) throws IOException
bundleId
- the unique identifier of the bundlename
- The name of the resource.
IOException
String getDataFile(long bundleId, String filename) throws IOException
bundleId
- the unique identifier of the bundlefilename
- A relative name to the file to be accessed
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |