Package org.osgi.jmx.framework
Interface BundleStateMBean
-
public interface BundleStateMBeanThis MBean represents the Bundle state of the framework. This MBean also emits events that clients can use to get notified of the changes in the bundle state of the framework.
-
-
Field Summary
Fields Modifier and Type Field Description static StringACTIVATION_POLICY_USEDThe key ACTIVATION_POLICY_USED, used inACTIVATION_POLICY_USED_ITEM.static ItemACTIVATION_POLICY_USED_ITEMThe item containing the indication whether the bundle activation policy must be used inBUNDLE_TYPE.static StringACTIVEConstant ACTIVE for theSTATEstatic CompositeTypeBUNDLE_EVENT_TYPEThe Composite Type that represents a bundle event.static CompositeTypeBUNDLE_TYPEThe Composite Type that represents a bundle.static TabularTypeBUNDLES_TYPEThe Tabular Type for a list of bundles.static StringEVENTThe key EVENT, used inEVENT_ITEM.static ItemEVENT_ITEMThe item containing the event type.static StringEXPORTED_PACKAGESThe key EXPORTED_PACKAGES, used inEXPORTED_PACKAGES_ITEM.static ItemEXPORTED_PACKAGES_ITEMThe item containing the exported package names inBUNDLE_TYPE.The key isEXPORTED_PACKAGESand the the type isJmxConstants.STRING_ARRAY_TYPE.static StringFRAGMENTThe key FRAGMENT, used inFRAGMENT_ITEM.static ItemFRAGMENT_ITEMThe item containing the fragment status inBUNDLE_TYPE.static StringFRAGMENTSThe key FRAGMENTS, used inFRAGMENTS_ITEM.static ItemFRAGMENTS_ITEMThe item containing the list of fragments the bundle is host to inBUNDLE_TYPE.static CompositeTypeHEADER_TYPEThe Composite Type describing an entry in bundle headers.static StringHEADERSThe key HEADERS, used inHEADERS_ITEM.static ItemHEADERS_ITEMThe item containing the bundle headers inBUNDLE_TYPE.static TabularTypeHEADERS_TYPEThe Tabular Type describing the type of the Tabular Data value that is returned fromgetHeaders(long)method.static StringHOSTSThe key HOSTS, used inHOSTS_ITEM.static ItemHOSTS_ITEMThe item containing the bundle identifiers representing the hosts inBUNDLE_TYPE.static StringIDENTIFIERThe key IDENTIFIER, used inIDENTIFIER_ITEM.static ItemIDENTIFIER_ITEMThe item containing the bundle identifier inBUNDLE_TYPE.static StringIMPORTED_PACKAGESThe key IMPORTED_PACKAGES, used inEXPORTED_PACKAGES_ITEM.static ItemIMPORTED_PACKAGES_ITEMThe item containing the imported package names inBUNDLE_TYPE.The key isIMPORTED_PACKAGESand the the type isJmxConstants.STRING_ARRAY_TYPE.static StringINSTALLEDConstant INSTALLED for theSTATEstatic StringKEYThe key KEY, used inKEY_ITEM.static ItemKEY_ITEMThe item describing the key of a bundle header entry.static StringLAST_MODIFIEDThe key LAST_MODIFIED, used inLAST_MODIFIED_ITEM.static ItemLAST_MODIFIED_ITEMThe item containing the last modified time in theBUNDLE_TYPE.static StringLOCATIONThe key LOCATION, used inLOCATION_ITEM.static ItemLOCATION_ITEMThe item containing the bundle location inBUNDLE_TYPE.static StringOBJECTNAMEThe Object Name for a Bundle State MBean.static StringPERSISTENTLY_STARTEDThe key PERSISTENTLY_STARTED, used inPERSISTENTLY_STARTED_ITEM.static ItemPERSISTENTLY_STARTED_ITEMThe item containing the indication of persistently started inBUNDLE_TYPE.static StringREGISTERED_SERVICESThe key REGISTERED_SERVICES, used inREGISTERED_SERVICES_ITEM.static ItemREGISTERED_SERVICES_ITEMThe item containing the registered services of the bundle inBUNDLE_TYPE.static StringREMOVAL_PENDINGThe key REMOVAL_PENDING, used inREMOVAL_PENDING_ITEM.static ItemREMOVAL_PENDING_ITEMThe item containing the indication of removal pending inBUNDLE_TYPE.static StringREQUIREDThe key REQUIRED, used inREQUIRED_ITEM.static StringREQUIRED_BUNDLESThe key REQUIRED_BUNDLES, used inREQUIRED_BUNDLES_ITEM.static ItemREQUIRED_BUNDLES_ITEMThe item containing the required bundles inBUNDLE_TYPE.static ItemREQUIRED_ITEMThe item containing the required status inBUNDLE_TYPE.static StringREQUIRING_BUNDLESThe key REQUIRING_BUNDLES, used inREQUIRING_BUNDLES_ITEM.static ItemREQUIRING_BUNDLES_ITEMThe item containing the bundles requiring this bundle inBUNDLE_TYPE.static StringRESOLVEDConstant RESOLVED for theSTATEstatic StringSERVICES_IN_USEThe key SERVICES_IN_USE, used inSERVICES_IN_USE_ITEM.static ItemSERVICES_IN_USE_ITEMThe item containing the services in use by this bundle inBUNDLE_TYPE.static StringSTART_LEVELThe key START_LEVEL, used inSTART_LEVEL_ITEM.static ItemSTART_LEVEL_ITEMThe item containing the start level inBUNDLE_TYPE.static StringSTARTINGConstant STARTING for theSTATEstatic StringSTATEThe key STATE, used inSTATE_ITEM.static ItemSTATE_ITEMThe item containing the bundle state inBUNDLE_TYPE.static StringSTOPPINGConstant STOPPING for theSTATEstatic StringSYMBOLIC_NAMEThe key SYMBOLIC_NAME, used inSYMBOLIC_NAME_ITEM.static ItemSYMBOLIC_NAME_ITEMThe item containing the symbolic name inBUNDLE_TYPE.static StringUNINSTALLEDConstant UNINSTALLED for theSTATEstatic StringUNKNOWNConstant UNKNOWN for theSTATEstatic StringVALUEThe key VALUE, used inVALUE_ITEM.static ItemVALUE_ITEMThe item describing the value of a bundle header entry.static StringVERSIONThe key VERSION, used inVERSION_ITEM.static ItemVERSION_ITEMThe item containing the symbolic name inBUNDLE_TYPE.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompositeDatagetBundle(long id)New!!long[]getBundleIds()String[]getExportedPackages(long bundleId)Answer the list of exported packages for this bundle.long[]getFragments(long bundleId)Answer the list of the bundle ids of the fragments associated with this bundleStringgetHeader(long bundleId, String key)StringgetHeader(long bundleId, String key, String locale)TabularDatagetHeaders(long bundleId)Answer the headers for the bundle uniquely identified by the bundle id.TabularDatagetHeaders(long bundleId, String locale)long[]getHosts(long fragment)Answer the list of bundle ids of the bundles which host a fragmentString[]getImportedPackages(long bundleId)Answer the array of the packages imported by this bundlelonggetLastModified(long bundleId)Answer the last modified time of a bundleStringgetLocation(long bundleId)Answer the location of the bundle.long[]getRegisteredServices(long bundleId)Answer the list of service identifiers representing the services this bundle exportslong[]getRequiredBundles(long bundleIdentifier)Answer the list of identifiers of the bundles this bundle depends uponlong[]getRequiringBundles(long bundleIdentifier)Answer the list of identifiers of the bundles which require this bundlelong[]getServicesInUse(long bundleIdentifier)Answer the list of service identifiers which refer to the the services this bundle is usingintgetStartLevel(long bundleId)Answer the start level of the bundleStringgetState(long bundleId)Answer the symbolic name of the state of the bundleStringgetSymbolicName(long bundleId)Answer the symbolic name of the bundleStringgetVersion(long bundleId)Answer the location of the bundle.booleanisActivationPolicyUsed(long bundleId)Answer whether the specified bundle's autostart setting indicates that the activation policy declared in the bundle's manifest must be used.booleanisFragment(long bundleId)Answer whether the bundle is a fragment or notbooleanisPersistentlyStarted(long bundleId)Answer if the bundle is persistently started when its start level is reachedbooleanisRemovalPending(long bundleId)Answer true if the bundle is pending removalbooleanisRequired(long bundleId)Answer true if the bundle is required by another bundleTabularDatalistBundles()Answer the bundle state of the system in tabular form.TabularDatalistBundles(String... items)
-
-
-
Field Detail
-
OBJECTNAME
static final String OBJECTNAME
The Object Name for a Bundle State MBean.- See Also:
- Constant Field Values
-
KEY
static final String KEY
The key KEY, used inKEY_ITEM.- See Also:
- Constant Field Values
-
KEY_ITEM
static final Item KEY_ITEM
The item describing the key of a bundle header entry. The key isKEYand the type isSimpleType.STRING.
-
VALUE
static final String VALUE
The key VALUE, used inVALUE_ITEM.- See Also:
- Constant Field Values
-
VALUE_ITEM
static final Item VALUE_ITEM
The item describing the value of a bundle header entry. The key isVALUEand the type isSimpleType.STRING.
-
HEADER_TYPE
static final CompositeType HEADER_TYPE
The Composite Type describing an entry in bundle headers. It consists ofKEY_ITEMandVALUE_ITEM.
-
HEADERS_TYPE
static final TabularType HEADERS_TYPE
The Tabular Type describing the type of the Tabular Data value that is returned fromgetHeaders(long)method. The primary item isKEY_ITEM.
-
LOCATION
static final String LOCATION
The key LOCATION, used inLOCATION_ITEM.- See Also:
- Constant Field Values
-
LOCATION_ITEM
static final Item LOCATION_ITEM
The item containing the bundle location inBUNDLE_TYPE. The key isLOCATIONand the the type isSimpleType.STRING.
-
IDENTIFIER
static final String IDENTIFIER
The key IDENTIFIER, used inIDENTIFIER_ITEM.- See Also:
- Constant Field Values
-
IDENTIFIER_ITEM
static final Item IDENTIFIER_ITEM
The item containing the bundle identifier inBUNDLE_TYPE. The key isIDENTIFIERand the the type isSimpleType.LONG.
-
SYMBOLIC_NAME
static final String SYMBOLIC_NAME
The key SYMBOLIC_NAME, used inSYMBOLIC_NAME_ITEM.- See Also:
- Constant Field Values
-
SYMBOLIC_NAME_ITEM
static final Item SYMBOLIC_NAME_ITEM
The item containing the symbolic name inBUNDLE_TYPE. The key isSYMBOLIC_NAMEand the the type isSimpleType.STRING.
-
VERSION
static final String VERSION
The key VERSION, used inVERSION_ITEM.- See Also:
- Constant Field Values
-
VERSION_ITEM
static final Item VERSION_ITEM
The item containing the symbolic name inBUNDLE_TYPE. The key isSYMBOLIC_NAMEand the the type isSimpleType.STRING.
-
START_LEVEL
static final String START_LEVEL
The key START_LEVEL, used inSTART_LEVEL_ITEM.- See Also:
- Constant Field Values
-
START_LEVEL_ITEM
static final Item START_LEVEL_ITEM
The item containing the start level inBUNDLE_TYPE. The key isSTART_LEVELand the the type isSimpleType.INTEGER.
-
STATE
static final String STATE
The key STATE, used inSTATE_ITEM.- See Also:
- Constant Field Values
-
INSTALLED
static final String INSTALLED
Constant INSTALLED for theSTATE- See Also:
- Constant Field Values
-
RESOLVED
static final String RESOLVED
Constant RESOLVED for theSTATE- See Also:
- Constant Field Values
-
STARTING
static final String STARTING
Constant STARTING for theSTATE- See Also:
- Constant Field Values
-
ACTIVE
static final String ACTIVE
Constant ACTIVE for theSTATE- See Also:
- Constant Field Values
-
STOPPING
static final String STOPPING
Constant STOPPING for theSTATE- See Also:
- Constant Field Values
-
UNINSTALLED
static final String UNINSTALLED
Constant UNINSTALLED for theSTATE- See Also:
- Constant Field Values
-
UNKNOWN
static final String UNKNOWN
Constant UNKNOWN for theSTATE- See Also:
- Constant Field Values
-
STATE_ITEM
static final Item STATE_ITEM
The item containing the bundle state inBUNDLE_TYPE. The key isSTATEand the the type isSimpleType.STRING. The returned values must be one of the following strings:
-
LAST_MODIFIED
static final String LAST_MODIFIED
The key LAST_MODIFIED, used inLAST_MODIFIED_ITEM.- See Also:
- Constant Field Values
-
LAST_MODIFIED_ITEM
static final Item LAST_MODIFIED_ITEM
The item containing the last modified time in theBUNDLE_TYPE. The key isLAST_MODIFIEDand the the type isSimpleType.LONG.
-
ACTIVATION_POLICY_USED
static final String ACTIVATION_POLICY_USED
The key ACTIVATION_POLICY_USED, used inACTIVATION_POLICY_USED_ITEM.- See Also:
- Constant Field Values
-
ACTIVATION_POLICY_USED_ITEM
static final Item ACTIVATION_POLICY_USED_ITEM
The item containing the indication whether the bundle activation policy must be used inBUNDLE_TYPE. The key isACTIVATION_POLICY_USEDand the type isSimpleType.BOOLEAN.
-
PERSISTENTLY_STARTED
static final String PERSISTENTLY_STARTED
The key PERSISTENTLY_STARTED, used inPERSISTENTLY_STARTED_ITEM.- See Also:
- Constant Field Values
-
PERSISTENTLY_STARTED_ITEM
static final Item PERSISTENTLY_STARTED_ITEM
The item containing the indication of persistently started inBUNDLE_TYPE. The key isPERSISTENTLY_STARTEDand the the type isSimpleType.BOOLEAN.
-
REMOVAL_PENDING
static final String REMOVAL_PENDING
The key REMOVAL_PENDING, used inREMOVAL_PENDING_ITEM.- See Also:
- Constant Field Values
-
REMOVAL_PENDING_ITEM
static final Item REMOVAL_PENDING_ITEM
The item containing the indication of removal pending inBUNDLE_TYPE. The key isREMOVAL_PENDINGand the type isSimpleType.BOOLEAN.
-
REQUIRED
static final String REQUIRED
The key REQUIRED, used inREQUIRED_ITEM.- See Also:
- Constant Field Values
-
REQUIRED_ITEM
static final Item REQUIRED_ITEM
The item containing the required status inBUNDLE_TYPE. The key isREQUIREDand the the type isSimpleType.BOOLEAN.
-
FRAGMENT
static final String FRAGMENT
The key FRAGMENT, used inFRAGMENT_ITEM.- See Also:
- Constant Field Values
-
FRAGMENT_ITEM
static final Item FRAGMENT_ITEM
The item containing the fragment status inBUNDLE_TYPE. The key isFRAGMENTand the the type isSimpleType.BOOLEAN.
-
REGISTERED_SERVICES
static final String REGISTERED_SERVICES
The key REGISTERED_SERVICES, used inREGISTERED_SERVICES_ITEM.- See Also:
- Constant Field Values
-
REGISTERED_SERVICES_ITEM
static final Item REGISTERED_SERVICES_ITEM
The item containing the registered services of the bundle inBUNDLE_TYPE. The key isREGISTERED_SERVICESand the the type isJmxConstants.LONG_ARRAY_TYPE.
-
SERVICES_IN_USE
static final String SERVICES_IN_USE
The key SERVICES_IN_USE, used inSERVICES_IN_USE_ITEM.- See Also:
- Constant Field Values
-
SERVICES_IN_USE_ITEM
static final Item SERVICES_IN_USE_ITEM
The item containing the services in use by this bundle inBUNDLE_TYPE. The key isSERVICES_IN_USEand the the type isJmxConstants.LONG_ARRAY_TYPE.
-
HEADERS
static final String HEADERS
The key HEADERS, used inHEADERS_ITEM.- See Also:
- Constant Field Values
-
HEADERS_ITEM
static final Item HEADERS_ITEM
The item containing the bundle headers inBUNDLE_TYPE. The key isHEADERSand the the type isHEADERS_TYPE.
-
EXPORTED_PACKAGES
static final String EXPORTED_PACKAGES
The key EXPORTED_PACKAGES, used inEXPORTED_PACKAGES_ITEM.- See Also:
- Constant Field Values
-
EXPORTED_PACKAGES_ITEM
static final Item EXPORTED_PACKAGES_ITEM
The item containing the exported package names inBUNDLE_TYPE.The key isEXPORTED_PACKAGESand the the type isJmxConstants.STRING_ARRAY_TYPE.
-
IMPORTED_PACKAGES
static final String IMPORTED_PACKAGES
The key IMPORTED_PACKAGES, used inEXPORTED_PACKAGES_ITEM.- See Also:
- Constant Field Values
-
IMPORTED_PACKAGES_ITEM
static final Item IMPORTED_PACKAGES_ITEM
The item containing the imported package names inBUNDLE_TYPE.The key isIMPORTED_PACKAGESand the the type isJmxConstants.STRING_ARRAY_TYPE.
-
FRAGMENTS
static final String FRAGMENTS
The key FRAGMENTS, used inFRAGMENTS_ITEM.- See Also:
- Constant Field Values
-
FRAGMENTS_ITEM
static final Item FRAGMENTS_ITEM
The item containing the list of fragments the bundle is host to inBUNDLE_TYPE. The key isFRAGMENTSand the type isJmxConstants.LONG_ARRAY_TYPE.
-
HOSTS
static final String HOSTS
The key HOSTS, used inHOSTS_ITEM.- See Also:
- Constant Field Values
-
HOSTS_ITEM
static final Item HOSTS_ITEM
The item containing the bundle identifiers representing the hosts inBUNDLE_TYPE. The key isHOSTSand the type isJmxConstants.LONG_ARRAY_TYPE
-
REQUIRED_BUNDLES
static final String REQUIRED_BUNDLES
The key REQUIRED_BUNDLES, used inREQUIRED_BUNDLES_ITEM.- See Also:
- Constant Field Values
-
REQUIRED_BUNDLES_ITEM
static final Item REQUIRED_BUNDLES_ITEM
The item containing the required bundles inBUNDLE_TYPE. The key isREQUIRED_BUNDLESand the type isJmxConstants.LONG_ARRAY_TYPE
-
REQUIRING_BUNDLES
static final String REQUIRING_BUNDLES
The key REQUIRING_BUNDLES, used inREQUIRING_BUNDLES_ITEM.- See Also:
- Constant Field Values
-
REQUIRING_BUNDLES_ITEM
static final Item REQUIRING_BUNDLES_ITEM
The item containing the bundles requiring this bundle inBUNDLE_TYPE. The key isREQUIRING_BUNDLESand the type isJmxConstants.LONG_ARRAY_TYPE
-
EVENT
static final String EVENT
The key EVENT, used inEVENT_ITEM.- See Also:
- Constant Field Values
-
EVENT_ITEM
static final Item EVENT_ITEM
The item containing the event type. The key isEVENTand the type isSimpleType.INTEGER
-
BUNDLE_EVENT_TYPE
static final CompositeType BUNDLE_EVENT_TYPE
The Composite Type that represents a bundle event. This composite consists of:
-
BUNDLE_TYPE
static final CompositeType BUNDLE_TYPE
The Composite Type that represents a bundle. This composite consist of:EXPORTED_PACKAGESFRAGMENTFRAGMENTSHEADERSHOSTSIDENTIFIERIMPORTED_PACKAGESLAST_MODIFIEDLOCATIONACTIVATION_POLICY_USEDPERSISTENTLY_STARTEDREGISTERED_SERVICESREMOVAL_PENDINGREQUIREDREQUIRED_BUNDLESREQUIRING_BUNDLESSTART_LEVELSTATESERVICES_IN_USESYMBOLIC_NAMEVERSION
BUNDLES_TYPE.
-
BUNDLES_TYPE
static final TabularType BUNDLES_TYPE
The Tabular Type for a list of bundles. The row type isBUNDLE_TYPEand the index isIDENTIFIER.
-
-
Method Detail
-
getBundle
CompositeData getBundle(long id) throws IOException
New!!- Parameters:
id- The Bundle ID- Returns:
- The Bundle Data
- Throws:
IOException
-
getBundleIds
long[] getBundleIds() throws IOException- Throws:
IOException
-
getRequiredBundles
long[] getRequiredBundles(long bundleIdentifier) throws IOExceptionAnswer the list of identifiers of the bundles this bundle depends upon- Parameters:
bundleIdentifier- the bundle identifier- Returns:
- the list of bundle identifiers
- Throws:
IOException- if the operation failsIllegalArgumentException- if the bundle indicated does not exist
-
listBundles
TabularData listBundles() throws IOException
Answer the bundle state of the system in tabular form. Each row of the returned table represents a single bundle. The Tabular Data consists of Composite Data that is type byBUNDLES_TYPE.- Returns:
- the tabular representation of the bundle state
- Throws:
IOException
-
listBundles
TabularData listBundles(String... items) throws IOException
- Throws:
IOException
-
getExportedPackages
String[] getExportedPackages(long bundleId) throws IOException
Answer the list of exported packages for this bundle.- Parameters:
bundleId-- Returns:
- the array of package names, combined with their version in the format <packageName;version>
- Throws:
IOException- if the operation failsIllegalArgumentException- if the bundle indicated does not exist
-
getFragments
long[] getFragments(long bundleId) throws IOExceptionAnswer the list of the bundle ids of the fragments associated with this bundle- Parameters:
bundleId-- Returns:
- the array of bundle identifiers
- Throws:
IOException- if the operation failsIllegalArgumentException- if the bundle indicated does not exist
-
getHeaders
TabularData getHeaders(long bundleId) throws IOException
Answer the headers for the bundle uniquely identified by the bundle id. The Tabular Data is typed by theHEADERS_TYPE.- Parameters:
bundleId- the unique identifier of the bundle- Returns:
- the table of associated header key and values
- Throws:
IOException- if the operation failsIllegalArgumentException- if the bundle indicated does not exist
-
getHeaders
TabularData getHeaders(long bundleId, String locale) throws IOException
- Throws:
IOException
-
getHeader
String getHeader(long bundleId, String key) throws IOException
- Throws:
IOException
-
getHeader
String getHeader(long bundleId, String key, String locale) throws IOException
- Throws:
IOException
-
getHosts
long[] getHosts(long fragment) throws IOExceptionAnswer the list of bundle ids of the bundles which host a fragment- Parameters:
fragment- the bundle id of the fragment- Returns:
- the array of bundle identifiers
- Throws:
IOException- if the operation failsIllegalArgumentException- if the bundle indicated does not exist
-
getImportedPackages
String[] getImportedPackages(long bundleId) throws IOException
Answer the array of the packages imported by this bundle- Parameters:
bundleId- the bundle identifier- Returns:
- the array of package names, combined with their version in the format <packageName;version>
- Throws:
IOException- if the operation failsIllegalArgumentException- if the bundle indicated does not exist
-
getLastModified
long getLastModified(long bundleId) throws IOExceptionAnswer the last modified time of a bundle- Parameters:
bundleId- the unique identifier of a bundle- Returns:
- the last modified time
- Throws:
IOException- if the operation failsIllegalArgumentException- if the bundle indicated does not exist
-
getRegisteredServices
long[] getRegisteredServices(long bundleId) throws IOExceptionAnswer the list of service identifiers representing the services this bundle exports- Parameters:
bundleId- the bundle identifier- Returns:
- the list of service identifiers
- Throws:
IOException- if the operation failsIllegalArgumentException- if the bundle indicated does not exist
-
getRequiringBundles
long[] getRequiringBundles(long bundleIdentifier) throws IOExceptionAnswer the list of identifiers of the bundles which require this bundle- Parameters:
bundleIdentifier- the bundle identifier- Returns:
- the list of bundle identifiers
- Throws:
IOException- if the operation failsIllegalArgumentException- if the bundle indicated does not exist
-
getServicesInUse
long[] getServicesInUse(long bundleIdentifier) throws IOExceptionAnswer the list of service identifiers which refer to the the services this bundle is using- Parameters:
bundleIdentifier- the bundle identifier- Returns:
- the list of service identifiers
- Throws:
IOException- if the operation failsIllegalArgumentException- if the bundle indicated does not exist
-
getStartLevel
int getStartLevel(long bundleId) throws IOExceptionAnswer the start level of the bundle- Parameters:
bundleId- the identifier of the bundle- Returns:
- the start level
- Throws:
IOException- if the operation failsIllegalArgumentException- if the bundle indicated does not exist
-
getState
String getState(long bundleId) throws IOException
Answer the symbolic name of the state of the bundle- Parameters:
bundleId- the identifier of the bundle- Returns:
- the string name of the bundle state
- Throws:
IOException- if the operation failsIllegalArgumentException- if the bundle indicated does not exist
-
getSymbolicName
String getSymbolicName(long bundleId) throws IOException
Answer the symbolic name of the bundle- Parameters:
bundleId- the identifier of the bundle- Returns:
- the symbolic name
- Throws:
IOException- if the operation failsIllegalArgumentException- if the bundle indicated does not exist
-
isActivationPolicyUsed
boolean isActivationPolicyUsed(long bundleId) throws IOExceptionAnswer whether the specified bundle's autostart setting indicates that the activation policy declared in the bundle's manifest must be used.- Parameters:
bundleId- the identifier of the bundle- Returns:
- true if the bundle's autostart setting indicates the activation policy declared in the manifest must be used. false if the bundle must be eagerly activated.
- Throws:
IOException- if the operation failsIllegalArgumentException- if the bundle indicated does not exist
-
isPersistentlyStarted
boolean isPersistentlyStarted(long bundleId) throws IOExceptionAnswer if the bundle is persistently started when its start level is reached- Parameters:
bundleId- the identifier of the bundle- Returns:
- true if the bundle is persistently started
- Throws:
IOException- if the operation failsIllegalArgumentException- if the bundle indicated does not exist
-
isFragment
boolean isFragment(long bundleId) throws IOExceptionAnswer whether the bundle is a fragment or not- Parameters:
bundleId- the identifier of the bundle- Returns:
- true if the bundle is a fragment
- Throws:
IOException- if the operation failsIllegalArgumentException- if the bundle indicated does not exist
-
isRemovalPending
boolean isRemovalPending(long bundleId) throws IOExceptionAnswer true if the bundle is pending removal- Parameters:
bundleId- the identifier of the bundle- Returns:
- true if the bundle is pending removal
- Throws:
IOException- if the operation failsIllegalArgumentException- if the bundle indicated does not exist
-
isRequired
boolean isRequired(long bundleId) throws IOExceptionAnswer true if the bundle is required by another bundle- Parameters:
bundleId- the identifier of the bundle- Returns:
- true if the bundle is required by another bundle
- Throws:
IOException- if the operation failsIllegalArgumentException- if the bundle indicated does not exist
-
getLocation
String getLocation(long bundleId) throws IOException
Answer the location of the bundle.- Parameters:
bundleId- the identifier of the bundle- Returns:
- The location string of this bundle
- Throws:
IOException- if the operation failsIllegalArgumentException- if the bundle indicated does not exist
-
getVersion
String getVersion(long bundleId) throws IOException
Answer the location of the bundle.- Parameters:
bundleId- the identifier of the bundle- Returns:
- The location string of this bundle
- Throws:
IOException- if the operation failsIllegalArgumentException- if the bundle indicated does not exist
-
-