com.espertech.esper.pattern.observer.ObserverFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of esper Show documentation
Show all versions of esper Show documentation
Complex event processing and event series analysis component
/**************************************************************************************
* Copyright (C) 2006-2015 EsperTech Inc. All rights reserved. *
* http://www.espertech.com/esper *
* http://www.espertech.com *
* ---------------------------------------------------------------------------------- *
* The software in this package is published under the terms of the GPL license *
* a copy of which has been included with this distribution in the license.txt file. *
**************************************************************************************/
package com.espertech.esper.pattern.observer;
import com.espertech.esper.epl.expression.core.ExprNode;
import com.espertech.esper.epl.expression.core.ExprValidationContext;
import com.espertech.esper.pattern.*;
import java.util.List;
/**
* Interface for factories for making observer instances.
*/
public interface ObserverFactory
{
/**
* Sets the observer object parameters.
* @param observerParameters is a list of parameters
* @param convertor for converting partial pattern matches to event-per-stream for expressions
* @param validationContext
* @throws ObserverParameterException thrown to indicate a parameter problem
*/
public void setObserverParameters(List observerParameters, MatchedEventConvertor convertor, ExprValidationContext validationContext) throws ObserverParameterException;
/**
* Make an observer instance.
*
*
* @param context - services that may be required by observer implementation
* @param beginState - start state for observer
* @param observerEventEvaluator - receiver for events observed
* @param stateNodeId - optional id for the associated pattern state node
* @param observerState - state node for observer
* @param isFilterChildNonQuitting
* @return observer instance
*/
public EventObserver makeObserver(PatternAgentInstanceContext context,
MatchedEventMap beginState,
ObserverEventEvaluator observerEventEvaluator,
EvalStateNodeNumber stateNodeId,
Object observerState,
boolean isFilterChildNonQuitting);
public boolean isNonRestarting();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy