com.espertech.esper.runtime.internal.dataflow.op.epstatementsource.EPStatementSourceOp Maven / Gradle / Ivy
/*
***************************************************************************************
* Copyright (C) 2006 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.runtime.internal.dataflow.op.epstatementsource;
import com.espertech.esper.common.client.dataflow.annotations.DataFlowContext;
import com.espertech.esper.common.client.dataflow.core.EPDataFlowEPStatementFilter;
import com.espertech.esper.common.client.dataflow.core.EPDataFlowEPStatementFilterContext;
import com.espertech.esper.common.client.dataflow.core.EPDataFlowIRStreamCollector;
import com.espertech.esper.common.client.dataflow.util.EPDataFlowSignal;
import com.espertech.esper.common.internal.context.util.AgentInstanceContext;
import com.espertech.esper.common.internal.epl.dataflow.interfaces.*;
import com.espertech.esper.runtime.client.*;
import com.espertech.esper.runtime.internal.kernel.service.EPRuntimeSPI;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.LinkedBlockingQueue;
public class EPStatementSourceOp implements DataFlowSourceOperator, DataFlowOperatorLifecycle, DeploymentStateListener {
private static final Logger log = LoggerFactory.getLogger(EPStatementSourceOp.class);
private final EPStatementSourceFactory factory;
private final AgentInstanceContext agentInstanceContext;
private final String statementDeploymentId;
private final String statementName;
private final EPDataFlowEPStatementFilter statementFilter;
private final EPDataFlowIRStreamCollector collector;
private Map listeners = new HashMap();
@DataFlowContext
private EPDataFlowEmitter graphContext;
private LinkedBlockingQueue