com.espertech.esper.event.vaevent
Interface ValueAddEventService

All Known Implementing Classes:
ValueAddEventServiceImpl

public interface ValueAddEventService

Service associating handling vaue-added event types, such a revision event types and variant stream event types.

Associates named windows and revision event types.


Method Summary
 void addRevisionEventType(String alias, ConfigurationRevisionEventType config, EventAdapterService eventAdapterService)
          Adds a new revision event types.
 void addVariantStream(String variantEventTypeAlias, ConfigurationVariantStream variantStreamConfig, EventAdapterService eventAdapterService)
          Adds a new variant stream.
 EventType createRevisionType(String namedWindowName, String alias, StatementStopService statementStopService, EventAdapterService eventAdapterService)
          Upon named window creation, create a unique revision event type that this window processes.
 ValueAddEventProcessor getValueAddProcessor(String alias)
          Gets a value-added event processor.
 EventType getValueAddUnderlyingType(String alias)
          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 alias provided and return the revision event type if found, or null if not found.
 void init(Map<String,ConfigurationRevisionEventType> revisionTypes, Map<String,ConfigurationVariantStream> variantStreams, EventAdapterService eventAdapterService)
          Called at initialization time, verifies configurations provided.
 boolean isRevisionTypeAlias(String alias)
          Upon named window creation, check if the alias used is a revision event type alias.
 

Method Detail

init

void init(Map<String,ConfigurationRevisionEventType> revisionTypes,
          Map<String,ConfigurationVariantStream> variantStreams,
          EventAdapterService eventAdapterService)
Called at initialization time, verifies configurations provided.

Parameters:
revisionTypes - is the revision types to add
variantStreams - is the variant streams to add
eventAdapterService - for obtaining event type information for each alias

addRevisionEventType

void addRevisionEventType(String alias,
                          ConfigurationRevisionEventType config,
                          EventAdapterService eventAdapterService)
Adds a new revision event types.

Parameters:
alias - to add
config - the revision event type configuration
eventAdapterService - for obtaining event type information for each alias

addVariantStream

void addVariantStream(String variantEventTypeAlias,
                      ConfigurationVariantStream variantStreamConfig,
                      EventAdapterService eventAdapterService)
                      throws ConfigurationException
Adds a new variant stream.

Parameters:
variantEventTypeAlias - the alias of the type
variantStreamConfig - the configs
eventAdapterService - for handling nested events
Throws:
ConfigurationException - if the configuration is invalid

getValueAddUnderlyingType

EventType getValueAddUnderlyingType(String alias)
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 alias provided and return the revision event type if found, or null if not found.

Parameters:
alias - to look up
Returns:
null if not found, of event type

createRevisionType

EventType createRevisionType(String namedWindowName,
                             String alias,
                             StatementStopService statementStopService,
                             EventAdapterService eventAdapterService)
Upon named window creation, create a unique revision event type that this window processes.

Parameters:
namedWindowName - name of window
alias - alias to use
statementStopService - for handling stops
eventAdapterService - for event type info
Returns:
revision event type

isRevisionTypeAlias

boolean isRevisionTypeAlias(String alias)
Upon named window creation, check if the alias used is a revision event type alias.

Parameters:
alias - to check
Returns:
true if revision event type, false if not

getValueAddProcessor

ValueAddEventProcessor getValueAddProcessor(String alias)
Gets a value-added event processor.

Parameters:
alias - of the value-add events
Returns:
processor

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com