|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.event.vaevent.ValueAddEventServiceImpl
public class ValueAddEventServiceImpl
Service for handling revision event types.
Each named window instance gets a dedicated revision processor.
Field Summary | |
---|---|
protected java.util.Map<java.lang.String,ValueAddEventProcessor> |
processorsByNamedWindow
Map of named window name and processor. |
protected java.util.Map<java.lang.String,RevisionSpec> |
specificationsByRevisionName
Map of revision event name and revision compiled specification. |
protected java.util.Map<java.lang.String,ValueAddEventProcessor> |
variantProcessors
Map of revision event stream and variant stream processor. |
Constructor Summary | |
---|---|
ValueAddEventServiceImpl()
Ctor. |
Method Summary | |
---|---|
void |
addRevisionEventType(java.lang.String revisioneventTypeName,
ConfigurationRevisionEventType config,
EventAdapterService eventAdapterService)
Adds a new revision event types. |
void |
addVariantStream(java.lang.String variantStreamname,
ConfigurationVariantStream variantStreamConfig,
EventAdapterService eventAdapterService,
EventTypeIdGenerator eventTypeIdGenerator)
Adds a new variant stream. |
EventType |
createRevisionType(java.lang.String namedWindowName,
java.lang.String name,
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> configRevision,
java.util.Map<java.lang.String,ConfigurationVariantStream> configVariant,
EventAdapterService eventAdapterService,
EventTypeIdGenerator eventTypeIdGenerator)
Called at initialization time, verifies configurations provided. |
boolean |
isRevisionTypeName(java.lang.String revisionTypeName)
Upon named window creation, check if the name used is a revision event type name. |
protected static RevisionSpec |
validateRevision(java.lang.String revisioneventTypeName,
ConfigurationRevisionEventType config,
EventAdapterService eventAdapterService)
Valiate the revision configuration. |
static VariantSpec |
validateVariantStream(java.lang.String variantStreamname,
ConfigurationVariantStream variantStreamConfig,
EventAdapterService eventAdapterService)
Validate the variant stream definition. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final java.util.Map<java.lang.String,RevisionSpec> specificationsByRevisionName
protected final java.util.Map<java.lang.String,ValueAddEventProcessor> processorsByNamedWindow
protected final java.util.Map<java.lang.String,ValueAddEventProcessor> variantProcessors
Constructor Detail |
---|
public ValueAddEventServiceImpl()
Method Detail |
---|
public EventType[] getValueAddedTypes()
ValueAddEventService
getValueAddedTypes
in interface ValueAddEventService
public void init(java.util.Map<java.lang.String,ConfigurationRevisionEventType> configRevision, java.util.Map<java.lang.String,ConfigurationVariantStream> configVariant, EventAdapterService eventAdapterService, EventTypeIdGenerator eventTypeIdGenerator) throws ConfigurationException
ValueAddEventService
init
in interface ValueAddEventService
configRevision
- is the revision types to addconfigVariant
- is the variant streams to addeventAdapterService
- for obtaining event type information for each name
ConfigurationException
public void addRevisionEventType(java.lang.String revisioneventTypeName, ConfigurationRevisionEventType config, EventAdapterService eventAdapterService) throws ConfigurationException
ValueAddEventService
addRevisionEventType
in interface ValueAddEventService
revisioneventTypeName
- to addconfig
- the revision event type configurationeventAdapterService
- for obtaining event type information for each name
ConfigurationException
public void addVariantStream(java.lang.String variantStreamname, ConfigurationVariantStream variantStreamConfig, EventAdapterService eventAdapterService, EventTypeIdGenerator eventTypeIdGenerator) throws ConfigurationException
ValueAddEventService
addVariantStream
in interface ValueAddEventService
variantStreamname
- the name of the typevariantStreamConfig
- the configseventAdapterService
- for handling nested events
ConfigurationException
- if the configuration is invalidpublic static VariantSpec validateVariantStream(java.lang.String variantStreamname, ConfigurationVariantStream variantStreamConfig, EventAdapterService eventAdapterService)
variantStreamname
- the stream namevariantStreamConfig
- the configuration informationeventAdapterService
- the event adapters
public EventType createRevisionType(java.lang.String namedWindowName, java.lang.String name, StatementStopService statementStopService, EventAdapterService eventAdapterService, EventTypeIdGenerator eventTypeIdGenerator)
ValueAddEventService
createRevisionType
in interface ValueAddEventService
namedWindowName
- name of windowname
- name to usestatementStopService
- for handling stopseventAdapterService
- for event type info
public ValueAddEventProcessor getValueAddProcessor(java.lang.String name)
ValueAddEventService
getValueAddProcessor
in interface ValueAddEventService
name
- of the value-add events
public EventType getValueAddUnderlyingType(java.lang.String name)
ValueAddEventService
getValueAddUnderlyingType
in interface ValueAddEventService
name
- to look up
public boolean isRevisionTypeName(java.lang.String revisionTypeName)
ValueAddEventService
isRevisionTypeName
in interface ValueAddEventService
revisionTypeName
- to check
protected static RevisionSpec validateRevision(java.lang.String revisioneventTypeName, ConfigurationRevisionEventType config, EventAdapterService eventAdapterService) throws ConfigurationException
revisioneventTypeName
- name of revision typesconfig
- configures revision typeeventAdapterService
- event adapters
ConfigurationException
- if the configs are invalid
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |