|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.service.client.impl.EventProducerImpl
public class EventProducerImpl
The Event producer implements the interface for the generation of events
| Constructor Summary | |
|---|---|
protected |
EventProducerImpl(int entityId,
int producerId,
QosServiceImpl qosServiceImpl)
|
| 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 generateEventId)
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 |
propagateRecoveryNotification(NBRecoveryNotification recoveryNotification)
|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected EventProducerImpl(int entityId,
int producerId,
QosServiceImpl qosServiceImpl)
| Method Detail |
|---|
public void setTemplateId(int templateId)
setTemplateId in interface EventProducerpublic void setDisableTimestamp(boolean disableTimestamp)
setDisableTimestamp in interface EventProducerpublic void setNTPTimestamp(boolean useNtpTimestamp)
setNTPTimestamp in interface EventProducerpublic void setHighResolutionTimestamp(boolean useHRtimestamp)
setHighResolutionTimestamp in interface EventProducerpublic void generateEventIdentifier(boolean generateEventId)
generateEventIdentifier in interface EventProducerpublic void setSuppressRedistributionToSource(boolean routeToSource)
setSuppressRedistributionToSource in interface EventProducerpublic void setTimeToLive(int timeToLive)
setTimeToLive in interface EventProducerpublic void setPersistent(boolean isPersistent)
setPersistent in interface EventProducerpublic void setTransient(boolean isTransient)
setTransient in interface EventProducerpublic void setPriority(int priority)
setPriority in interface EventProducerpublic void setFragmentationParameters(Properties props)
setFragmentationParameters in interface EventProducerpublic void setSecurityParameters(Properties props)
setSecurityParameters in interface EventProducerpublic void setCompressionParameters(Properties props)
setCompressionParameters in interface EventProducerpublic void setIntegrityParameters(Properties props)
setIntegrityParameters in interface EventProducer
public void setContentSynopsisInfo(int contentSynopsisType,
Object contentSynopsis)
setContentSynopsisInfo in interface EventProducer
public NBEvent generateEvent(byte[] payload)
throws ServiceException
generateEvent in interface EventProducerServiceException
public NBEvent generateEvent(int contentSynopsisType,
Object contentSynopsis,
byte[] payload)
throws ServiceException
generateEvent in interface EventProducerServiceException
public NBEvent generateEvent(int contentSynopsisType,
Object contentSynopsis,
EventID correlationId,
byte[] payload)
throws ServiceException
generateEvent in interface EventProducerServiceException
public NBEvent generateEvent(int contentSynopsisType,
Object contentSynopsis,
int templateId,
byte[] payload)
throws ServiceException
generateEvent in interface EventProducerServiceExceptionpublic int getTemplateId()
getTemplateId in interface EventProducerpublic int getEntityId()
getEntityId in interface EventProducerpublic boolean getDisableTimestamp()
getDisableTimestamp in interface EventProducerpublic boolean getNTPTimestamp()
getNTPTimestamp in interface EventProducerpublic boolean getSuppressRedistributionToSource()
getSuppressRedistributionToSource in interface EventProducerpublic int getTimeToLive()
getTimeToLive in interface EventProducerpublic boolean isPersistent()
isPersistent in interface EventProducerpublic boolean isTransient()
isTransient in interface EventProducerpublic int getPriority()
getPriority in interface EventProducerpublic Properties getFragmentationParameters()
getFragmentationParameters in interface EventProducerpublic Properties getSecurityParameters()
getSecurityParameters in interface EventProducerpublic Properties getCompressionParameters()
getCompressionParameters in interface EventProducerpublic Properties getIntegrityParameters()
getIntegrityParameters in interface EventProducerpublic int getContentSynopsisType()
getContentSynopsisType in interface EventProducerpublic Object getContentSynopsis()
getContentSynopsis in interface EventProducerpublic void close()
close in interface EventProducerpublic void setNBNotificationListener(NBNotificationListener nbNotificationListener)
setNBNotificationListener in interface EventProducer
public ProducerConstraints createProducerConstraints(TemplateInfo templateInfo)
throws ServiceException
createProducerConstraints in interface EventProducerServiceException
public void publishEvent(NBEvent nbEvent)
throws ServiceException
publishEvent in interface EventProducerServiceException
public void publishEvent(NBEvent nbEvent,
ProducerConstraints producerConstraints)
throws ServiceException
publishEvent in interface EventProducerServiceExceptionpublic boolean hasEventsToBePublished()
hasEventsToBePublished in interface EventProducerpublic int getNumberOfEventsToBePublished()
getNumberOfEventsToBePublished in interface EventProducer
public long recover(int templateId,
NBRecoveryListener recoveryListener)
throws ServiceException
recover in interface EventProducerServiceExceptionpublic void propagateRecoveryNotification(NBRecoveryNotification recoveryNotification)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||