org.apache.aries.jmx.blueprint.codec
Class OSGiBlueprintEvent

java.lang.Object
  extended by org.apache.aries.jmx.blueprint.codec.OSGiBlueprintEvent
All Implemented Interfaces:
TransferObject

public class OSGiBlueprintEvent
extends Object
implements TransferObject

This class represents the CODEC for the composite data representing a OSGi BlueprintEvent

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:

bundleId long
extenderBundleId long
eventType int
replay boolean
timestamp long
dependencies String[]
exceptionMessage String


Constructor Summary
OSGiBlueprintEvent(org.osgi.service.blueprint.container.BlueprintEvent event)
          Construct an OSGiBlueprintEvent from the supplied BlueprintEvent
OSGiBlueprintEvent(CompositeData data)
          Construct an OSGiBlueprintEvent from the CompositeData representing the event
OSGiBlueprintEvent(long bundleId, long extenderBundleId, int eventType, boolean replay, long timestamp, String[] dependencies, String exceptionMessage)
          Construct the OSGiBlueprintEvent
 
Method Summary
 CompositeData asCompositeData()
          Answer the receiver encoded as CompositeData
 long getBundleId()
           
 String[] getDependencies()
           
 int getEventType()
           
 String getExceptionMessage()
           
 long getExtenderBundleId()
           
 long getTimestamp()
           
 boolean isReplay()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OSGiBlueprintEvent

public OSGiBlueprintEvent(org.osgi.service.blueprint.container.BlueprintEvent event)
Construct an OSGiBlueprintEvent from the supplied BlueprintEvent

Parameters:
event - - the event to represent

OSGiBlueprintEvent

public OSGiBlueprintEvent(CompositeData data)
Construct an OSGiBlueprintEvent from the CompositeData representing the event

Parameters:
data - - the CompositeData representing the event.

OSGiBlueprintEvent

public OSGiBlueprintEvent(long bundleId,
                          long extenderBundleId,
                          int eventType,
                          boolean replay,
                          long timestamp,
                          String[] dependencies,
                          String exceptionMessage)
Construct the OSGiBlueprintEvent

Parameters:
bundleId -
extenderBundleId -
eventType -
replay -
timestamp -
dependencies -
exceptionMessage -
Method Detail

asCompositeData

public CompositeData asCompositeData()
Answer the receiver encoded as CompositeData

Specified by:
asCompositeData in interface TransferObject
Returns:
the CompositeData encoding of the receiver.

getBundleId

public long getBundleId()

getExtenderBundleId

public long getExtenderBundleId()

getEventType

public int getEventType()

isReplay

public boolean isReplay()

getTimestamp

public long getTimestamp()

getDependencies

public String[] getDependencies()

getExceptionMessage

public String getExceptionMessage()


Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.