public class ServiceEventData
extends java.lang.Object
ServiceEventData represents ServiceEvent Type @see ServiceStateMBean.SERVICE_EVENT_TYPE
.
It is a codec for the CompositeData
representing an OSGi ServiceEvent.
Constructor and Description |
---|
ServiceEventData(ServiceEvent serviceEvent) |
Modifier and Type | Method and Description |
---|---|
static ServiceEventData |
from(javax.management.openmbean.CompositeData compositeData)
Returns a
ServiceEventData representation of the given compositeData |
long |
getBundleId() |
java.lang.String |
getBundleLocation() |
java.lang.String |
getBundleSymbolicName() |
int |
getEventType() |
long |
getServiceId() |
java.lang.String[] |
getServiceInterfaces() |
javax.management.openmbean.CompositeData |
toCompositeData()
Returns CompositeData representing a ServiceEvent typed by
ServiceStateMBean.SERVICE_EVENT_TYPE . |
public javax.management.openmbean.CompositeData toCompositeData()
ServiceStateMBean.SERVICE_EVENT_TYPE
.public static ServiceEventData from(javax.management.openmbean.CompositeData compositeData) throws java.lang.IllegalArgumentException
ServiceEventData
representation of the given compositeDatacompositeData
- java.lang.IllegalArgumentException
- if the compositeData is null or incorrect typepublic long getServiceId()
public java.lang.String[] getServiceInterfaces()
public long getBundleId()
public java.lang.String getBundleLocation()
public java.lang.String getBundleSymbolicName()
public int getEventType()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"