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 java.lang.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 java.lang.StringACTIVEConstant ACTIVE for theSTATEstatic javax.management.openmbean.CompositeTypeBUNDLE_EVENT_TYPEThe Composite Type that represents a bundle event.static javax.management.openmbean.CompositeTypeBUNDLE_TYPEThe Composite Type that represents a bundle.static javax.management.openmbean.TabularTypeBUNDLES_TYPEThe Tabular Type for a list of bundles.static java.lang.StringEVENTThe key EVENT, used inEVENT_ITEM.static ItemEVENT_ITEMThe item containing the event type.static java.lang.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 java.lang.StringFRAGMENTThe key FRAGMENT, used inFRAGMENT_ITEM.static ItemFRAGMENT_ITEMThe item containing the fragment status inBUNDLE_TYPE.static java.lang.StringFRAGMENTSThe key FRAGMENTS, used inFRAGMENTS_ITEM.static ItemFRAGMENTS_ITEMThe item containing the list of fragments the bundle is host to inBUNDLE_TYPE.static javax.management.openmbean.CompositeTypeHEADER_TYPEThe Composite Type describing an entry in bundle headers.static java.lang.StringHEADERSThe key HEADERS, used inHEADERS_ITEM.static ItemHEADERS_ITEMThe item containing the bundle headers inBUNDLE_TYPE.static javax.management.openmbean.TabularTypeHEADERS_TYPEThe Tabular Type describing the type of the Tabular Data value that is returned fromgetHeaders(long)method.static java.lang.StringHOSTSThe key HOSTS, used inHOSTS_ITEM.static ItemHOSTS_ITEMThe item containing the bundle identifiers representing the hosts inBUNDLE_TYPE.static java.lang.StringIDENTIFIERThe key IDENTIFIER, used inIDENTIFIER_ITEM.static ItemIDENTIFIER_ITEMThe item containing the bundle identifier inBUNDLE_TYPE.static java.lang.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 java.lang.StringINSTALLEDConstant INSTALLED for theSTATEstatic java.lang.StringKEYThe key KEY, used inKEY_ITEM.static ItemKEY_ITEMThe item describing the key of a bundle header entry.static java.lang.StringLAST_MODIFIEDThe key LAST_MODIFIED, used inLAST_MODIFIED_ITEM.static ItemLAST_MODIFIED_ITEMThe item containing the last modified time in theBUNDLE_TYPE.static java.lang.StringLOCATIONThe key LOCATION, used inLOCATION_ITEM.static ItemLOCATION_ITEMThe item containing the bundle location inBUNDLE_TYPE.static java.lang.StringOBJECTNAMEThe Object Name for a Bundle State MBean.static java.lang.StringPERSISTENTLY_STARTEDThe key PERSISTENTLY_STARTED, used inPERSISTENTLY_STARTED_ITEM.static ItemPERSISTENTLY_STARTED_ITEMThe item containing the indication of persistently started inBUNDLE_TYPE.static java.lang.StringREGISTERED_SERVICESThe key REGISTERED_SERVICES, used inREGISTERED_SERVICES_ITEM.static ItemREGISTERED_SERVICES_ITEMThe item containing the registered services of the bundle inBUNDLE_TYPE.static java.lang.StringREMOVAL_PENDINGThe key REMOVAL_PENDING, used inREMOVAL_PENDING_ITEM.static ItemREMOVAL_PENDING_ITEMThe item containing the indication of removal pending inBUNDLE_TYPE.static java.lang.StringREQUIREDThe key REQUIRED, used inREQUIRED_ITEM.static java.lang.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 java.lang.StringREQUIRING_BUNDLESThe key REQUIRING_BUNDLES, used inREQUIRING_BUNDLES_ITEM.static ItemREQUIRING_BUNDLES_ITEMThe item containing the bundles requiring this bundle inBUNDLE_TYPE.static java.lang.StringRESOLVEDConstant RESOLVED for theSTATEstatic java.lang.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 java.lang.StringSTART_LEVELThe key START_LEVEL, used inSTART_LEVEL_ITEM.static ItemSTART_LEVEL_ITEMThe item containing the start level inBUNDLE_TYPE.static java.lang.StringSTARTINGConstant STARTING for theSTATEstatic java.lang.StringSTATEThe key STATE, used inSTATE_ITEM.static ItemSTATE_ITEMThe item containing the bundle state inBUNDLE_TYPE.static java.lang.StringSTOPPINGConstant STOPPING for theSTATEstatic java.lang.StringSYMBOLIC_NAMEThe key SYMBOLIC_NAME, used inSYMBOLIC_NAME_ITEM.static ItemSYMBOLIC_NAME_ITEMThe item containing the symbolic name inBUNDLE_TYPE.static java.lang.StringUNINSTALLEDConstant UNINSTALLED for theSTATEstatic java.lang.StringUNKNOWNConstant UNKNOWN for theSTATEstatic java.lang.StringVALUEThe key VALUE, used inVALUE_ITEM.static ItemVALUE_ITEMThe item describing the value of a bundle header entry.static java.lang.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 javax.management.openmbean.CompositeDatagetBundle(long id)New!!long[]getBundleIds()java.lang.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 bundlejava.lang.StringgetHeader(long bundleId, java.lang.String key)java.lang.StringgetHeader(long bundleId, java.lang.String key, java.lang.String locale)javax.management.openmbean.TabularDatagetHeaders(long bundleId)Answer the headers for the bundle uniquely identified by the bundle id.javax.management.openmbean.TabularDatagetHeaders(long bundleId, java.lang.String locale)long[]getHosts(long fragment)Answer the list of bundle ids of the bundles which host a fragmentjava.lang.String[]getImportedPackages(long bundleId)Answer the array of the packages imported by this bundlelonggetLastModified(long bundleId)Answer the last modified time of a bundlejava.lang.StringgetLocation(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 bundlejava.lang.StringgetState(long bundleId)Answer the symbolic name of the state of the bundlejava.lang.StringgetSymbolicName(long bundleId)Answer the symbolic name of the bundlejava.lang.StringgetVersion(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 bundlejavax.management.openmbean.TabularDatalistBundles()Answer the bundle state of the system in tabular form.javax.management.openmbean.TabularDatalistBundles(java.lang.String... items)
-
-
-
Field Detail
-
OBJECTNAME
static final java.lang.String OBJECTNAME
The Object Name for a Bundle State MBean.- See Also:
- Constant Field Values
-
KEY
static final java.lang.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 java.lang.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 javax.management.openmbean.CompositeType HEADER_TYPE
The Composite Type describing an entry in bundle headers. It consists ofKEY_ITEMandVALUE_ITEM.
-
HEADERS_TYPE
static final javax.management.openmbean.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.String STATE
The key STATE, used inSTATE_ITEM.- See Also:
- Constant Field Values
-
INSTALLED
static final java.lang.String INSTALLED
Constant INSTALLED for theSTATE- See Also:
- Constant Field Values
-
RESOLVED
static final java.lang.String RESOLVED
Constant RESOLVED for theSTATE- See Also:
- Constant Field Values
-
STARTING
static final java.lang.String STARTING
Constant STARTING for theSTATE- See Also:
- Constant Field Values
-
ACTIVE
static final java.lang.String ACTIVE
Constant ACTIVE for theSTATE- See Also:
- Constant Field Values
-
STOPPING
static final java.lang.String STOPPING
Constant STOPPING for theSTATE- See Also:
- Constant Field Values
-
UNINSTALLED
static final java.lang.String UNINSTALLED
Constant UNINSTALLED for theSTATE- See Also:
- Constant Field Values
-
UNKNOWN
static final java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 javax.management.openmbean.CompositeType BUNDLE_EVENT_TYPE
The Composite Type that represents a bundle event. This composite consists of:
-
BUNDLE_TYPE
static final javax.management.openmbean.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 javax.management.openmbean.TabularType BUNDLES_TYPE
The Tabular Type for a list of bundles. The row type isBUNDLE_TYPEand the index isIDENTIFIER.
-
-
Method Detail
-
getBundle
javax.management.openmbean.CompositeData getBundle(long id) throws java.io.IOExceptionNew!!- Parameters:
id- The Bundle ID- Returns:
- The Bundle Data
- Throws:
java.io.IOException
-
getBundleIds
long[] getBundleIds() throws java.io.IOException- Throws:
java.io.IOException
-
getRequiredBundles
long[] getRequiredBundles(long bundleIdentifier) throws java.io.IOExceptionAnswer the list of identifiers of the bundles this bundle depends upon- Parameters:
bundleIdentifier- the bundle identifier- Returns:
- the list of bundle identifiers
- Throws:
java.io.IOException- if the operation failsjava.lang.IllegalArgumentException- if the bundle indicated does not exist
-
listBundles
javax.management.openmbean.TabularData listBundles() throws java.io.IOExceptionAnswer 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:
java.io.IOException
-
listBundles
javax.management.openmbean.TabularData listBundles(java.lang.String... items) throws java.io.IOException- Throws:
java.io.IOException
-
getExportedPackages
java.lang.String[] getExportedPackages(long bundleId) throws java.io.IOExceptionAnswer 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:
java.io.IOException- if the operation failsjava.lang.IllegalArgumentException- if the bundle indicated does not exist
-
getFragments
long[] getFragments(long bundleId) throws java.io.IOExceptionAnswer the list of the bundle ids of the fragments associated with this bundle- Parameters:
bundleId-- Returns:
- the array of bundle identifiers
- Throws:
java.io.IOException- if the operation failsjava.lang.IllegalArgumentException- if the bundle indicated does not exist
-
getHeaders
javax.management.openmbean.TabularData getHeaders(long bundleId) throws java.io.IOExceptionAnswer 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:
java.io.IOException- if the operation failsjava.lang.IllegalArgumentException- if the bundle indicated does not exist
-
getHeaders
javax.management.openmbean.TabularData getHeaders(long bundleId, java.lang.String locale) throws java.io.IOException- Throws:
java.io.IOException
-
getHeader
java.lang.String getHeader(long bundleId, java.lang.String key) throws java.io.IOException- Throws:
java.io.IOException
-
getHeader
java.lang.String getHeader(long bundleId, java.lang.String key, java.lang.String locale) throws java.io.IOException- Throws:
java.io.IOException
-
getHosts
long[] getHosts(long fragment) throws java.io.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:
java.io.IOException- if the operation failsjava.lang.IllegalArgumentException- if the bundle indicated does not exist
-
getImportedPackages
java.lang.String[] getImportedPackages(long bundleId) throws java.io.IOExceptionAnswer 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:
java.io.IOException- if the operation failsjava.lang.IllegalArgumentException- if the bundle indicated does not exist
-
getLastModified
long getLastModified(long bundleId) throws java.io.IOExceptionAnswer the last modified time of a bundle- Parameters:
bundleId- the unique identifier of a bundle- Returns:
- the last modified time
- Throws:
java.io.IOException- if the operation failsjava.lang.IllegalArgumentException- if the bundle indicated does not exist
-
getRegisteredServices
long[] getRegisteredServices(long bundleId) throws java.io.IOExceptionAnswer the list of service identifiers representing the services this bundle exports- Parameters:
bundleId- the bundle identifier- Returns:
- the list of service identifiers
- Throws:
java.io.IOException- if the operation failsjava.lang.IllegalArgumentException- if the bundle indicated does not exist
-
getRequiringBundles
long[] getRequiringBundles(long bundleIdentifier) throws java.io.IOExceptionAnswer the list of identifiers of the bundles which require this bundle- Parameters:
bundleIdentifier- the bundle identifier- Returns:
- the list of bundle identifiers
- Throws:
java.io.IOException- if the operation failsjava.lang.IllegalArgumentException- if the bundle indicated does not exist
-
getServicesInUse
long[] getServicesInUse(long bundleIdentifier) throws java.io.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:
java.io.IOException- if the operation failsjava.lang.IllegalArgumentException- if the bundle indicated does not exist
-
getStartLevel
int getStartLevel(long bundleId) throws java.io.IOExceptionAnswer the start level of the bundle- Parameters:
bundleId- the identifier of the bundle- Returns:
- the start level
- Throws:
java.io.IOException- if the operation failsjava.lang.IllegalArgumentException- if the bundle indicated does not exist
-
getState
java.lang.String getState(long bundleId) throws java.io.IOExceptionAnswer 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:
java.io.IOException- if the operation failsjava.lang.IllegalArgumentException- if the bundle indicated does not exist
-
getSymbolicName
java.lang.String getSymbolicName(long bundleId) throws java.io.IOExceptionAnswer the symbolic name of the bundle- Parameters:
bundleId- the identifier of the bundle- Returns:
- the symbolic name
- Throws:
java.io.IOException- if the operation failsjava.lang.IllegalArgumentException- if the bundle indicated does not exist
-
isActivationPolicyUsed
boolean isActivationPolicyUsed(long bundleId) throws java.io.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:
java.io.IOException- if the operation failsjava.lang.IllegalArgumentException- if the bundle indicated does not exist
-
isPersistentlyStarted
boolean isPersistentlyStarted(long bundleId) throws java.io.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:
java.io.IOException- if the operation failsjava.lang.IllegalArgumentException- if the bundle indicated does not exist
-
isFragment
boolean isFragment(long bundleId) throws java.io.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:
java.io.IOException- if the operation failsjava.lang.IllegalArgumentException- if the bundle indicated does not exist
-
isRemovalPending
boolean isRemovalPending(long bundleId) throws java.io.IOExceptionAnswer true if the bundle is pending removal- Parameters:
bundleId- the identifier of the bundle- Returns:
- true if the bundle is pending removal
- Throws:
java.io.IOException- if the operation failsjava.lang.IllegalArgumentException- if the bundle indicated does not exist
-
isRequired
boolean isRequired(long bundleId) throws java.io.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:
java.io.IOException- if the operation failsjava.lang.IllegalArgumentException- if the bundle indicated does not exist
-
getLocation
java.lang.String getLocation(long bundleId) throws java.io.IOExceptionAnswer the location of the bundle.- Parameters:
bundleId- the identifier of the bundle- Returns:
- The location string of this bundle
- Throws:
java.io.IOException- if the operation failsjava.lang.IllegalArgumentException- if the bundle indicated does not exist
-
getVersion
java.lang.String getVersion(long bundleId) throws java.io.IOExceptionAnswer the location of the bundle.- Parameters:
bundleId- the identifier of the bundle- Returns:
- The location string of this bundle
- Throws:
java.io.IOException- if the operation failsjava.lang.IllegalArgumentException- if the bundle indicated does not exist
-
-