public interface PartitionManager
| Modifier and Type | Interface and Description |
|---|---|
static class |
PartitionManager.Operation |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isDistributed()
Detects if PartitionManager is deployed on a distributed scenario.
|
void |
notifyData(Collection<Data> data)
Notify partition manager when a new collection of data has been received.
|
void |
notifyData(Data data)
Notify partition manager when a new data has been received.
|
void |
notifyEvent(Event event)
Notify partition manager when a new event has been received.
|
void |
notifyEvents(Collection<Event> events)
Notify partition manager when a new collection of events has been received.
|
void |
notifyTrigger(PartitionManager.Operation operation,
String tenantId,
String triggerId)
Notify partition manager when a trigger, dampening or condition has been added,updated or removed.
|
void |
registerDataListener(PartitionDataListener dataListener)
Register a listener to process patition events linked with data or events.
|
void |
registerTriggerListener(PartitionTriggerListener triggerListener)
Register a listener to process partition events linked with triggers.
|
boolean isDistributed()
PartitionTriggerListener and PartitionDataListener are ignored on non-distributed scenario.
notifyTrigger(org.hawkular.alerts.engine.service.PartitionManager.Operation, java.lang.String, java.lang.String), notifyData(org.hawkular.alerts.api.model.data.Data) and
notifyEvent(org.hawkular.alerts.api.model.event.Event) are ignored on non-distributed scenario.void notifyTrigger(PartitionManager.Operation operation, String tenantId, String triggerId)
operation - type of operation performed on the triggertenantId - Tenant where Trigger is storedtriggerId - Trigger idvoid registerTriggerListener(PartitionTriggerListener triggerListener)
triggerListener - the listenervoid notifyData(Data data)
data - the new data received by the enginevoid notifyData(Collection<Data> data)
data - the new data received by the enginevoid notifyEvent(Event event)
event - the new event received by the enginevoid notifyEvents(Collection<Event> events)
events - the new events received by the enginevoid registerDataListener(PartitionDataListener dataListener)
dataListener - the listenerCopyright © 2015–2016 Red Hat, Inc.. All rights reserved.