|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.osgi.jmx.codec.OSGiServiceEvent
public class OSGiServiceEvent
This class represents the CODEC for the composite data representing a OSGi ServiceEvent
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 |
BundleIdentifier | long |
BundleLocation | String |
ObjectClass | Array of String |
EventType | int |
Field Summary | |
---|---|
static javax.management.openmbean.CompositeType |
SERVICE_EVENT
The CompositeType representation of the OSGiServiceEvent |
Constructor Summary | |
---|---|
OSGiServiceEvent(javax.management.openmbean.CompositeData data)
Construct an OSGiServiceEvent from the CompositeData representing the event |
|
OSGiServiceEvent(long serviceId,
long bundleId,
java.lang.String location,
java.lang.String[] interfaces,
int eventType)
Construct and OSGiServiceEvent |
|
OSGiServiceEvent(org.osgi.framework.ServiceEvent event)
|
Method Summary | |
---|---|
javax.management.openmbean.CompositeData |
asCompositeData()
Answer the receiver encoded as CompositeData |
long |
getBundleId()
|
int |
getEventType()
|
java.lang.String[] |
getInterfaces()
|
java.lang.String |
getLocation()
|
long |
getServiceId()
|
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_EVENT
Constructor Detail |
---|
public OSGiServiceEvent(javax.management.openmbean.CompositeData data)
data
- = the CompositeData representation of the eventpublic OSGiServiceEvent(long serviceId, long bundleId, java.lang.String location, java.lang.String[] interfaces, int eventType)
serviceId
- bundleId
- location
- interfaces
- eventType
- public OSGiServiceEvent(org.osgi.framework.ServiceEvent event)
Method Detail |
---|
public javax.management.openmbean.CompositeData asCompositeData()
public long getBundleId()
public int getEventType()
public java.lang.String[] getInterfaces()
public java.lang.String getLocation()
public long getServiceId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |