|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface EventProducer
The Event producer provides an interface for the generation of events
| Method Summary | |
|---|---|
void |
close()
Close the Event Producer |
ProducerConstraints |
createProducerConstraints(TemplateInfo templateInfo)
Create producer constraints associated with a certain template |
NBEvent |
generateEvent(byte[] payload)
Generate NBEvent based on the specified information |
NBEvent |
generateEvent(int contentSynopsisType,
Object contentSynopsis,
byte[] payload)
Generate NBEvent based on the specified information |
NBEvent |
generateEvent(int contentSynopsisType,
Object contentSynopsis,
EventID correlationId,
byte[] payload)
Generate NBEvent based on the specified information |
NBEvent |
generateEvent(int contentSynopsisType,
Object contentSynopsis,
int templateId,
byte[] payload)
Generate NBEvent based on the specified information |
void |
generateEventIdentifier(boolean generateId)
Enable the generation of event identifiers for published events |
Properties |
getCompressionParameters()
Get the compression parameters |
Object |
getContentSynopsis()
Get the content synopsis |
int |
getContentSynopsisType()
Get the content synopsis type |
boolean |
getDisableTimestamp()
Determine if generation of timestamps is disabled on the event |
int |
getEntityId()
Get the entity identifier |
Properties |
getFragmentationParameters()
Get the fragmentation parameters |
Properties |
getIntegrityParameters()
Set the integrity parameters |
boolean |
getNTPTimestamp()
Determine if the generation of NTP timestamps has been enabled. |
int |
getNumberOfEventsToBePublished()
Check number of events to be published |
int |
getPriority()
gets the priority of the generated events |
Properties |
getSecurityParameters()
Get the security parameters |
boolean |
getSuppressRedistributionToSource()
Checks if redistribution of an event back to its source is specified |
int |
getTemplateId()
Get the template identifier |
int |
getTimeToLive()
Get the time to live |
boolean |
hasEventsToBePublished()
CHeck if there are pending events to be published |
boolean |
isPersistent()
Checks if producer generate persistent events |
boolean |
isTransient()
Checks if producer generate transient events |
void |
publishEvent(NBEvent nbEvent)
Publish an event |
void |
publishEvent(NBEvent nbEvent,
ProducerConstraints producerConstraints)
Publish an event based on the specified Qos constraints |
long |
recover(int templateId,
NBRecoveryListener recoveryListener)
This is called by an entity to recover from failures or prolonged disconnects |
void |
setCompressionParameters(Properties props)
Set the compression parameters |
void |
setContentSynopsisInfo(int contentSynopsisType,
Object contentSynopsis)
Set the content synopsis information |
void |
setDisableTimestamp(boolean disableTimestamp)
Disables the generation of timestamps on the event |
void |
setFragmentationParameters(Properties props)
Set the fragmentation parameters |
void |
setHighResolutionTimestamp(boolean useHRtimestamp)
Enable or disable the use of high-resolution timers for timestamps. |
void |
setIntegrityParameters(Properties props)
Set the integrity parameters |
void |
setNBNotificationListener(NBNotificationListener nbNotificationListener)
Sets the notification listener for this producer |
void |
setNTPTimestamp(boolean useNtpTimestamp)
Enable or disable the generation of NTP timestamps for messages. |
void |
setPersistent(boolean isPersistent)
Sets the producer to generate persistent events |
void |
setPriority(int priority)
Sets the priority of the event |
void |
setSecurityParameters(Properties props)
Set the security parameters |
void |
setSuppressRedistributionToSource(boolean routeToSource)
Prevents the redistribution of an event back to its source |
void |
setTemplateId(int templateId)
Set the template identifier |
void |
setTimeToLive(int timeToLive)
Set the time to live |
void |
setTransient(boolean isTransient)
Sets the producer to generate transient events |
| Method Detail |
|---|
void setTemplateId(int templateId)
void setDisableTimestamp(boolean disableTimestamp)
void setNTPTimestamp(boolean useNtpTimestamp)
void setHighResolutionTimestamp(boolean useHRtimestamp)
void generateEventIdentifier(boolean generateId)
void setSuppressRedistributionToSource(boolean routeToSource)
void setTimeToLive(int timeToLive)
void setPersistent(boolean isPersistent)
void setTransient(boolean isTransient)
void setPriority(int priority)
void setFragmentationParameters(Properties props)
void setSecurityParameters(Properties props)
void setCompressionParameters(Properties props)
void setIntegrityParameters(Properties props)
void setContentSynopsisInfo(int contentSynopsisType,
Object contentSynopsis)
NBEvent generateEvent(byte[] payload)
throws ServiceException
ServiceException
NBEvent generateEvent(int contentSynopsisType,
Object contentSynopsis,
byte[] payload)
throws ServiceException
ServiceException
NBEvent generateEvent(int contentSynopsisType,
Object contentSynopsis,
EventID correlationId,
byte[] payload)
throws ServiceException
ServiceException
NBEvent generateEvent(int contentSynopsisType,
Object contentSynopsis,
int templateId,
byte[] payload)
throws ServiceException
ServiceExceptionint getTemplateId()
int getEntityId()
boolean getDisableTimestamp()
boolean getNTPTimestamp()
boolean getSuppressRedistributionToSource()
int getTimeToLive()
boolean isPersistent()
boolean isTransient()
int getPriority()
Properties getFragmentationParameters()
Properties getSecurityParameters()
Properties getCompressionParameters()
Properties getIntegrityParameters()
int getContentSynopsisType()
Object getContentSynopsis()
void close()
void setNBNotificationListener(NBNotificationListener nbNotificationListener)
ProducerConstraints createProducerConstraints(TemplateInfo templateInfo)
throws ServiceException
ServiceException
void publishEvent(NBEvent nbEvent)
throws ServiceException
ServiceException
void publishEvent(NBEvent nbEvent,
ProducerConstraints producerConstraints)
throws ServiceException
ServiceExceptionboolean hasEventsToBePublished()
int getNumberOfEventsToBePublished()
long recover(int templateId,
NBRecoveryListener recoveryListener)
throws ServiceException
ServiceException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||