org.apache.aries.jmx.codec
Class ServiceEventData
java.lang.Object
org.apache.aries.jmx.codec.ServiceEventData
public class ServiceEventData
- extends Object
ServiceEventData represents ServiceEvent Type @see ServiceStateMBean.SERVICE_EVENT_TYPE
.
It is a codec for the CompositeData
representing an OSGi ServiceEvent.
- Version:
- $Rev: 896239 $ $Date: 2010-01-05 22:02:23 +0000 (Tue, 05 Jan 2010) $
Constructor Summary |
ServiceEventData(org.osgi.framework.ServiceEvent serviceEvent)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceEventData
public ServiceEventData(org.osgi.framework.ServiceEvent serviceEvent)
toCompositeData
public CompositeData toCompositeData()
- Returns CompositeData representing a ServiceEvent typed by
ServiceStateMBean.SERVICE_EVENT_TYPE
.
- Returns:
from
public static ServiceEventData from(CompositeData compositeData)
throws IllegalArgumentException
- Returns a
ServiceEventData
representation of the given compositeData
- Parameters:
compositeData
-
- Returns:
-
- Throws:
IllegalArgumentException
- if the compositeData is null or incorrect type
getServiceId
public long getServiceId()
getServiceInterfaces
public String[] getServiceInterfaces()
getBundleId
public long getBundleId()
getBundleLocation
public String getBundleLocation()
getBundleSymbolicName
public String getBundleSymbolicName()
getEventType
public int getEventType()
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.