com.espertech.esper.view.window
Class TimeBatchViewFactoryParams

java.lang.Object
  extended by com.espertech.esper.view.window.TimeBatchViewFactoryParams
Direct Known Subclasses:
TimeBatchViewFactory, TimeLengthBatchViewFactory

public class TimeBatchViewFactoryParams
extends java.lang.Object

Parameters for batch views that provides common data flow parameter parsing.


Field Summary
protected  EventType eventType
          Event type
protected static java.lang.String FORCE_UPDATE_KEYWORD
          Keyword for force update, i.e.
protected  boolean isForceUpdate
          Indicate whether to output only if there is data, or to keep outputting empty batches.
protected  boolean isStartEager
          Indicate whether to output only if there is data, or to keep outputting empty batches.
protected  long millisecondsBeforeExpiry
          Number of msec before batch fires (either interval or number of events).
protected static java.lang.String START_EAGER_KEYWORD
          Keyword for starting eager, i.e.
 
Constructor Summary
TimeBatchViewFactoryParams()
           
 
Method Summary
protected  void processExpiry(java.lang.Object parameter, java.lang.String errorMessage, java.lang.String errorMessage2)
          Process view expiry parameter
protected  void processKeywords(java.lang.Object keywords, java.lang.String errorMessage)
          Convert keywords into isForceUpdate and isStartEager members
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FORCE_UPDATE_KEYWORD

protected static final java.lang.String FORCE_UPDATE_KEYWORD
Keyword for force update, i.e. update if no data.

See Also:
Constant Field Values

START_EAGER_KEYWORD

protected static final java.lang.String START_EAGER_KEYWORD
Keyword for starting eager, i.e. start early.

See Also:
Constant Field Values

eventType

protected EventType eventType
Event type


millisecondsBeforeExpiry

protected long millisecondsBeforeExpiry
Number of msec before batch fires (either interval or number of events).


isForceUpdate

protected boolean isForceUpdate
Indicate whether to output only if there is data, or to keep outputting empty batches.


isStartEager

protected boolean isStartEager
Indicate whether to output only if there is data, or to keep outputting empty batches.

Constructor Detail

TimeBatchViewFactoryParams

public TimeBatchViewFactoryParams()
Method Detail

processExpiry

protected void processExpiry(java.lang.Object parameter,
                             java.lang.String errorMessage,
                             java.lang.String errorMessage2)
                      throws ViewParameterException
Process view expiry parameter

Parameters:
parameter - the parameter to parse
errorMessage - error text
errorMessage2 - error text
Throws:
ViewParameterException - if validation failed

processKeywords

protected void processKeywords(java.lang.Object keywords,
                               java.lang.String errorMessage)
                        throws ViewParameterException
Convert keywords into isForceUpdate and isStartEager members

Parameters:
keywords - flow control keyword string
errorMessage - error message
Throws:
ViewParameterException - if parsing failed

© 2006-2011 EsperTech Inc.
All rights reserved.
Visit us at espertech.com