|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.event.impl.NBEventImpl
public class NBEventImpl
This is the basic template event within the NaradaBrokering system. This event includes among other things, information regarding a)The event's headers b)The event's content synopsis c)The content payload
| Constructor Summary | |
|---|---|
NBEventImpl()
|
|
NBEventImpl(byte[] eventBytes)
|
|
| Method Summary | |
|---|---|
byte[] |
getBytes()
Generates a byte stream representation of the event |
byte[] |
getContentPayload()
Get the content Payload |
int |
getContentPayloadSize()
Get the payload size |
Object |
getContentSynopsis()
Retrieves the synopis associated with the content |
int |
getContentSynopsisType()
Returns the type of the content synopsis |
String |
getContentType()
Indicates the type of the content |
DistributionTraces |
getDistributionTraces()
Gets the distribution Traces associated with the event |
EventHeaders |
getEventHeaders()
Header information pertaining to the event |
EventProperties |
getEventProperties()
EventProperties associated with the event |
int |
getEventType()
Indicates the type of the event |
boolean |
hasDistributionTraces()
Indicates if the event has distribution traces |
boolean |
hasEventHeaders()
Indicates if this event has any event headers |
boolean |
hasEventProperties()
Indicates if this event has any user-defined properties |
static void |
main(String[] args)
A utility method to test the NBEvent implementation |
protected void |
setContentPayload(byte[] payload)
Set the payload |
protected void |
setContentSynopsisInfo(int contentSynopsisType,
Object contentSynopsis)
Set the content synopis information |
protected void |
setDistributionTraces(DistributionTraces distributionTraces)
Set the dissemination traces |
protected void |
setEventHeaders(EventHeaders eventHeaders)
Set the event headers |
protected void |
setEventType(int eventType)
Sets the event type information |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NBEventImpl()
public NBEventImpl(byte[] eventBytes)
| Method Detail |
|---|
protected void setEventType(int eventType)
protected void setContentSynopsisInfo(int contentSynopsisType,
Object contentSynopsis)
protected void setEventHeaders(EventHeaders eventHeaders)
protected void setContentPayload(byte[] payload)
protected void setDistributionTraces(DistributionTraces distributionTraces)
public int getEventType()
getEventType in interface NBEventpublic String getContentType()
getContentType in interface NBEventpublic boolean hasEventHeaders()
hasEventHeaders in interface NBEventpublic EventHeaders getEventHeaders()
getEventHeaders in interface NBEventpublic boolean hasEventProperties()
hasEventProperties in interface NBEventpublic EventProperties getEventProperties()
getEventProperties in interface NBEventpublic int getContentSynopsisType()
getContentSynopsisType in interface NBEventpublic Object getContentSynopsis()
getContentSynopsis in interface NBEventpublic int getContentPayloadSize()
getContentPayloadSize in interface NBEventpublic byte[] getContentPayload()
getContentPayload in interface NBEventpublic boolean hasDistributionTraces()
hasDistributionTraces in interface NBEventpublic DistributionTraces getDistributionTraces()
getDistributionTraces in interface NBEventpublic byte[] getBytes()
getBytes in interface NBEventpublic static void main(String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||