public class CdiJmsBridge extends Object
DispatchToQueue stereotype and passes them to JMS queue or topic so that they can be handled asynchronously.MetricsCollector,
MetricCollectionTrigger| Constructor and Description |
|---|
CdiJmsBridge() |
| Modifier and Type | Method and Description |
|---|---|
void |
broadcastMessage(MetricsProcessingStartedEvent event)
Listens to
MetricsProcessingStartedEvent to deliver it to the JMS topic for internal processing |
void |
queueMessage(AllBatchesLoadedEvent event)
Listens to
AllBatchesLoadedEvent event and passes it to JMS queue /queue/AllBatchesLoadedQueue with variantID as a correlation identifier. |
void |
queueMessage(BatchLoadedEvent event)
Listens to
BatchLoadedEvent event and passes it to JMS queue /queue/BatchLoadedQueue with variantID as a correlation identifier. |
void |
queueMessage(TriggerMetricCollectionEvent event)
Listens to
TriggerMetricCollectionEvent event and passes it to JMS queue /queue/TriggerMetricCollectionQueue for internal processing. |
void |
queueMessage(TriggerVariantMetricCollectionEvent event)
Listens to
TriggerVariantMetricCollectionEvent event and passes it to JMS queue /queue/TriggerVariantMetricCollectionQueue for internal processing. |
public void queueMessage(@Observes
AllBatchesLoadedEvent event)
AllBatchesLoadedEvent event and passes it to JMS queue /queue/AllBatchesLoadedQueue with variantID as a correlation identifier.event - indicates that all batches for given variant were loadedpublic void queueMessage(@Observes
BatchLoadedEvent event)
BatchLoadedEvent event and passes it to JMS queue /queue/BatchLoadedQueue with variantID as a correlation identifier.event - indicates that batch of tokens was loadedpublic void queueMessage(@Observes
TriggerMetricCollectionEvent event)
TriggerMetricCollectionEvent event and passes it to JMS queue /queue/TriggerMetricCollectionQueue for internal processing.
Duplicate message detection is performed via pushMessageInformationId so that we ensure only one message for given push message is fired,
as we want don't want multiple workers processing metrics for given push message.
The delivery of this message is delayed so that some metrics are generated by it first start to poll respective queues.event - indicates that push message metric collection should be startedpublic void queueMessage(@Observes
TriggerVariantMetricCollectionEvent event)
TriggerVariantMetricCollectionEvent event and passes it to JMS queue /queue/TriggerVariantMetricCollectionQueue for internal processing.event - indicates that variant metric collection should be startedpublic void broadcastMessage(@Observes
MetricsProcessingStartedEvent event)
MetricsProcessingStartedEvent to deliver it to the JMS topic for internal processingevent - indicator that metrics processing has startedCopyright © 2016 JBoss by Red Hat. All Rights Reserved.