public interface ValueAddEventService
Associates named windows and revision event types.
Modifier and Type | Method and Description |
---|---|
void |
addRevisionEventType(java.lang.String name,
ConfigurationRevisionEventType config,
EventAdapterService eventAdapterService)
Adds a new revision event types.
|
void |
addVariantStream(java.lang.String variantEventTypeName,
ConfigurationVariantStream variantStreamConfig,
EventAdapterService eventAdapterService,
EventTypeIdGenerator eventTypeIdGenerator)
Adds a new variant stream.
|
EventType |
createRevisionType(java.lang.String namedWindowName,
java.lang.String typeName,
StatementStopService statementStopService,
EventAdapterService eventAdapterService,
EventTypeIdGenerator eventTypeIdGenerator)
Upon named window creation, create a unique revision event type that this window processes.
|
EventType[] |
getValueAddedTypes()
Returns all event types representing value-add event types.
|
ValueAddEventProcessor |
getValueAddProcessor(java.lang.String name)
Gets a value-added event processor.
|
EventType |
getValueAddUnderlyingType(java.lang.String name)
Upon named window creation, and during resolution of type specified as part of a named window create statement,
returns looks up the revision event type name provided and return the revision event type if found, or null if not found.
|
void |
init(java.util.Map<java.lang.String,ConfigurationRevisionEventType> revisionTypes,
java.util.Map<java.lang.String,ConfigurationVariantStream> variantStreams,
EventAdapterService eventAdapterService,
EventTypeIdGenerator eventTypeIdGenerator)
Called at initialization time, verifies configurations provided.
|
boolean |
isRevisionTypeName(java.lang.String name)
Upon named window creation, check if the name used is a revision event type name.
|
void init(java.util.Map<java.lang.String,ConfigurationRevisionEventType> revisionTypes, java.util.Map<java.lang.String,ConfigurationVariantStream> variantStreams, EventAdapterService eventAdapterService, EventTypeIdGenerator eventTypeIdGenerator)
revisionTypes
- is the revision types to addvariantStreams
- is the variant streams to addeventAdapterService
- for obtaining event type information for each nameeventTypeIdGenerator
- event type id providervoid addRevisionEventType(java.lang.String name, ConfigurationRevisionEventType config, EventAdapterService eventAdapterService)
name
- to addconfig
- the revision event type configurationeventAdapterService
- for obtaining event type information for each namevoid addVariantStream(java.lang.String variantEventTypeName, ConfigurationVariantStream variantStreamConfig, EventAdapterService eventAdapterService, EventTypeIdGenerator eventTypeIdGenerator) throws ConfigurationException
variantEventTypeName
- the name of the typevariantStreamConfig
- the configseventAdapterService
- for handling nested eventseventTypeIdGenerator
- event type id providerConfigurationException
- if the configuration is invalidEventType getValueAddUnderlyingType(java.lang.String name)
name
- to look upEventType createRevisionType(java.lang.String namedWindowName, java.lang.String typeName, StatementStopService statementStopService, EventAdapterService eventAdapterService, EventTypeIdGenerator eventTypeIdGenerator)
namedWindowName
- name of windowtypeName
- name to usestatementStopService
- for handling stopseventAdapterService
- for event type infoeventTypeIdGenerator
- event type id providerboolean isRevisionTypeName(java.lang.String name)
name
- to checkValueAddEventProcessor getValueAddProcessor(java.lang.String name)
name
- of the value-add eventsEventType[] getValueAddedTypes()