|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ServiceStateMBean
This MBean represents the Service state of the framework. This MBean also emits events that clients can use to get notified of the changes in the service state of the framework.
See OSGiBundleEvent for the precise definition of the CompositeData for the notification sent.
Field Summary | |
---|---|
static java.lang.String |
BUNDLE_IDENTIFIER
The name of the item containing the bundle identifier in the CompositeData |
static java.lang.String |
BUNDLE_LOCATION
The name of the item containing the bundle location in the CompositeData |
static java.lang.String |
EVENT_TYPE
The name of the item containing the event type in the CompositeData |
static java.lang.String |
OBJECT_CLASS
The name of the item containing the interfaces of the service in the CompositeData |
static java.lang.String[] |
SERVICE
The item names in the CompositeData representing the service |
static java.lang.String[] |
SERVICE_EVENT
The item names in the CompositeData representing the ServiceEvent |
static java.lang.String |
SERVICE_EVENT_TYPE
The type of the JMX event raised in response to ServiceEvent in the underlying OSGi container |
static java.lang.String |
SERVICE_ID
The name of the item containing the service identifier in the CompositeData |
static java.lang.String |
USING_BUNDLES
The name of the item containing the bundles using the service in the CompositeData |
Method Summary | |
---|---|
long |
getBundle(long serviceId)
Answer the bundle identifier of the bundle which registered the service |
javax.management.openmbean.TabularData |
getProperties(long serviceId)
Answer the map of credentials associated with this service |
java.lang.String[] |
getServiceInterfaces(long serviceId)
Answer the list of interfaces that this service implements |
javax.management.openmbean.TabularData |
getServices()
Answer the service state of the system in tabular form |
long[] |
getUsingBundles(long serviceId)
Answer the list of identifers of the bundles that use the service |
Field Detail |
---|
static final java.lang.String BUNDLE_IDENTIFIER
static final java.lang.String BUNDLE_LOCATION
static final java.lang.String EVENT_TYPE
static final java.lang.String OBJECT_CLASS
static final java.lang.String SERVICE_EVENT_TYPE
static final java.lang.String SERVICE_ID
static final java.lang.String USING_BUNDLES
static final java.lang.String[] SERVICE
static final java.lang.String[] SERVICE_EVENT
Method Detail |
---|
java.lang.String[] getServiceInterfaces(long serviceId) throws java.io.IOException
serviceId
- - the identifier of the service
java.io.IOException
- if the operation fails
java.lang.IllegalArgumentException
- if the service indicated does not existlong getBundle(long serviceId) throws java.io.IOException
serviceId
- - the identifier of the service
java.io.IOException
- if the operation fails
java.lang.IllegalArgumentException
- if the service indicated does not existjavax.management.openmbean.TabularData getProperties(long serviceId) throws java.io.IOException
serviceId
- - the identifier of the service
org.osgi.framework.Constants
interface
java.io.IOException
- if the operation fails
java.lang.IllegalArgumentException
- if the service indicated does not existfor the details of the TabularType
For each propery entry, the following row is returned
- Property Key - the string key
- Property Value - the stringified version of the property value
- Property Value Type - the type of the property value
javax.management.openmbean.TabularData getServices()
java.io.IOException
for the details of the TabularType
Each row of the returned table represents a single service. For each
service, the following row is returned
- identifier - long
- interfaces - String[]
- bundle - long
- using bundles - long[]
See OSGiService for the precise definition of the
CompositeType that defines each row of the table.
long[] getUsingBundles(long serviceId) throws java.io.IOException
serviceId
- - the identifier of the service
java.io.IOException
- if the operation fails
java.lang.IllegalArgumentException
- if the service indicated does not exist
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |