/// <summary>Constructor - takes the services context as argument. </summary> /// <param name="adminContext">administrative context</param> public EPAdministratorImpl(EPAdministratorContext adminContext) { _services = adminContext.Services; _configurationOperations = adminContext.ConfigurationOperations; _defaultStreamSelector = adminContext.DefaultStreamSelector; ConfigurationEngineDefaults.AlternativeContext alternativeContext = adminContext.Services.ConfigSnapshot.EngineDefaults.AlternativeContextConfig; StatementIdGenerator statementIdGenerator = null; if (alternativeContext != null && alternativeContext.StatementIdGeneratorFactory != null) { var statementIdGeneratorFactory = TypeHelper.Instantiate <StatementIdGeneratorFactory>(alternativeContext.StatementIdGeneratorFactory); statementIdGenerator = statementIdGeneratorFactory.Invoke(new StatementIdGeneratorFactoryContext(_services.EngineURI)); } _deploymentAdminService = new EPDeploymentAdminImpl( this, adminContext.Services.DeploymentStateService, adminContext.Services.StatementEventTypeRefService, adminContext.Services.EventAdapterService, adminContext.Services.StatementIsolationService, statementIdGenerator, adminContext.Services.FilterService, _services.ConfigSnapshot.EngineDefaults.ExpressionConfig.TimeZone); }
/// <summary> /// Ctor. /// </summary> /// <param name="epService">administrative SPI</param> /// <param name="deploymentStateService">deployment state maintenance service</param> /// <param name="statementEventTypeRef">maintains statement-eventtype relationship</param> /// <param name="eventAdapterService">event wrap service</param> /// <param name="statementIsolationService">for isolated statement execution</param> /// <param name="optionalStatementIdGenerator">The optional statement id generator.</param> /// <param name="filterService">The filter service.</param> /// <param name="timeZone">The time zone.</param> public EPDeploymentAdminImpl(EPAdministratorSPI epService, DeploymentStateService deploymentStateService, StatementEventTypeRef statementEventTypeRef, EventAdapterService eventAdapterService, StatementIsolationService statementIsolationService, StatementIdGenerator optionalStatementIdGenerator, FilterService filterService, TimeZoneInfo timeZone) { _epService = epService; _deploymentStateService = deploymentStateService; _statementEventTypeRef = statementEventTypeRef; _eventAdapterService = eventAdapterService; _statementIsolationService = statementIsolationService; _optionalStatementIdGenerator = optionalStatementIdGenerator; _filterService = filterService; _timeZone = timeZone; }