|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.osgi.jmx.codec.OSGiService
public class OSGiService
This class represents the CODEC for the composite data representing an OSGi ServiceReference
It serves as both the documentation of the type structure and as the codification of the mechanism to convert to/from the CompositeData.
The structure of the composite data is:
Identifier | String |
ObjectClass | Array of String |
BundleIdentifier | long |
UsingBundles | Array of long |
Field Summary | |
---|---|
static javax.management.openmbean.CompositeType |
SERVICE
The CompositeType representation of the service |
static javax.management.openmbean.TabularType |
SERVICE_TABLE
The TabularType representation of a list of services |
Constructor Summary | |
---|---|
OSGiService(javax.management.openmbean.CompositeData data)
Construct an OSGiService encoded in the CompositeData |
|
OSGiService(long identifier,
java.lang.String[] interfaces,
long bundle,
long[] usingBundles)
Construct an OSGiService |
|
OSGiService(org.osgi.framework.ServiceReference reference)
Construct an OSGiService from the underlying ServiceReference |
Method Summary | |
---|---|
javax.management.openmbean.CompositeData |
asCompositeData()
Answer the receiver encoded as CompositeData |
long |
getBundle()
|
long |
getIdentifier()
|
java.lang.String[] |
getInterfaces()
|
long[] |
getUsingBundles()
|
static javax.management.openmbean.TabularData |
tableFrom(java.util.ArrayList<OSGiService> services)
Construct the TabularData representing a list of services |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final javax.management.openmbean.CompositeType SERVICE
public static final javax.management.openmbean.TabularType SERVICE_TABLE
Constructor Detail |
---|
public OSGiService(javax.management.openmbean.CompositeData data)
data
- - the CompositeData encoding the OSGiServicepublic OSGiService(long identifier, java.lang.String[] interfaces, long bundle, long[] usingBundles)
identifier
- interfaces
- bundle
- usingBundles
- public OSGiService(org.osgi.framework.ServiceReference reference)
reference
- - the reference of the serviceMethod Detail |
---|
public static javax.management.openmbean.TabularData tableFrom(java.util.ArrayList<OSGiService> services)
services
- - the list of services
public javax.management.openmbean.CompositeData asCompositeData()
public long getBundle()
public long getIdentifier()
public java.lang.String[] getInterfaces()
public long[] getUsingBundles()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |