public class FanoutEventProcessor extends EventProcessorImpl
EventProcessorImpl.DateTypebundleContext, catalog, EQUATORIAL_RADIUS_IN_METERS, eventAdmin, preDelivery, preSubscriptionEVENT_METACARD, EVENT_OLD_METACARD, EVENT_TIME, EVENTS_TOPIC_CREATED, EVENTS_TOPIC_DELETED, EVENTS_TOPIC_UPDATED| Constructor and Description |
|---|
FanoutEventProcessor(org.osgi.framework.BundleContext bundleContext,
org.osgi.service.event.EventAdmin eventAdmin,
List<PreSubscriptionPlugin> preSubscription,
List<PreDeliveryPlugin> preDelivery,
CatalogFramework catalog) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
init() |
void |
notifyCreated(Metacard newMetacard)
|
void |
notifyDeleted(Metacard oldMetacard)
|
void |
notifyUpdated(Metacard newMetacard,
Metacard oldMetacard)
|
createSubscription, createSubscription, deleteSubscription, handleEvent, postEvent, process, process, process, processEntry, updateSubscriptionpublic FanoutEventProcessor(org.osgi.framework.BundleContext bundleContext,
org.osgi.service.event.EventAdmin eventAdmin,
List<PreSubscriptionPlugin> preSubscription,
List<PreDeliveryPlugin> preDelivery,
CatalogFramework catalog)
public void init()
init in class EventProcessorImplpublic void destroy()
destroy in class EventProcessorImplpublic void notifyCreated(Metacard newMetacard)
EventProcessorEventProcessor that a Metacard (or equivalent) has been created in
a RemoteSource.
Implementations of this method must:
PreDeliveryPlugin.processCreate(Metacard) method for
all of the registered PreDeliveryPlugins
DeliveryMethod.created(Metacard) method of the DeliveryMethod of
matching Subscriptions with the new Metacard created.
notifyCreated in interface EventProcessornotifyCreated in class EventProcessorImplnewMetacard - the newly created MetacardRemoteSource,
FederatedSource,
ConnectedSourcepublic void notifyUpdated(Metacard newMetacard, Metacard oldMetacard)
EventProcessorEventProcessor that a Metacard (or equivalent) has been updated in
a RemoteSource.
Implementations of this method must:
PreDeliveryPlugin.processUpdateHit(ddf.catalog.operation.Update)
method of all registered PreDeliveryPlugins when a Metacard has been updated and the new version matches a Subscription
Call PreDeliveryPlugin.processUpdateMiss(ddf.catalog.operation.Update)
method of all registered PreDeliveryPlugins when a Metacard has been updated and the new version matches a Subscription but the old
version does not
DeliveryMethod with the updated Metacard.
notifyUpdated in interface EventProcessornotifyUpdated in class EventProcessorImplnewMetacard - the new version of the MetacardoldMetacard - the previous version of the Metacard (optional, pass null if
not relevant)FederatedSource,
RemoteSource,
ConnectedSourcepublic void notifyDeleted(Metacard oldMetacard)
EventProcessorEventProcessor that a Metacard (or equivalent) has been deleted in
a RemoteSource.
Implementations of this method must:
Metacard is fully populated) call all active matching
Subscriptions associated DeliveryMethod.deleted(Metacard) with the Metacard that was deleted.
Metacard only has Metacard.getId(), call all
active Subscriptions.
notifyDeleted in interface EventProcessornotifyDeleted in class EventProcessorImploldMetacard - the deleted MetacardRemoteSource,
FederatedSource,
ConnectedSourceThis work is licensed under a Creative Commons Attribution 4.0 International License.