public PollExecStrategyDBQuery( HistoricalEventViewableDatabaseFactory factory, AgentInstanceContext agentInstanceContext, ConnectionCache connectionCache) { _factory = factory; _agentInstanceContext = agentInstanceContext; _connectionCache = connectionCache; _dbInfoList = null; _outputTypes = factory.OutputTypes; _columnTypeConversionHook = factory.ColumnTypeConversionHook; _outputRowConversionHook = factory.OutputRowConversionHook; }
public HistoricalEventViewableDatabase( HistoricalEventViewableDatabaseFactory factory, PollExecStrategy pollExecStrategy, AgentInstanceContext agentInstanceContext) : base(factory, pollExecStrategy, agentInstanceContext) { try { DataCache = agentInstanceContext.DatabaseConfigService.GetDataCache( factory.DatabaseName, agentInstanceContext, factory.StreamNumber, factory.ScheduleCallbackId); } catch (DatabaseConfigException e) { throw new EPException("Failed to obtain cache: " + e.Message, e); } }