public long? GetExpectedEndTime(ContextManagerRealization realization) { var agentInstanceContext = realization.AgentInstanceContextCreate; var current = agentInstanceContext.SchedulingService.Time; var msec = TimePeriodCompute.DeltaAdd(current, null, true, agentInstanceContext); return current + msec; }
public ContextControllerInitTerm( ContextControllerInitTermFactory factory, ContextManagerRealization realization) { this.factory = factory; this.realization = realization; }
public ContextControllerKeyed( ContextManagerRealization realization, ContextControllerKeyedFactory factory) : base(realization) { this.factory = factory; }
public ContextControllerInitTermBase( ContextControllerInitTermFactory factory, ContextManagerRealization realization) : base(factory, realization) { initTermSvc = ContextControllerInitTermUtil.GetService(factory); }
public StatementAgentInstanceFactoryCreateContextResult( Viewable finalView, AgentInstanceStopCallback stopCallback, AgentInstanceContext agentInstanceContext, AggregationService optionalAggegationService, IDictionary<int, SubSelectFactoryResult> subselectStrategies, PriorEvalStrategy[] priorStrategies, PreviousGetterStrategy[] previousGetterStrategies, RowRecogPreviousStrategy regexExprPreviousEvalStrategy, IDictionary<int, ExprTableEvalStrategy> tableAccessStrategies, IList<StatementAgentInstancePreload> preloadList, ContextManagerRealization contextManagerRealization) : base( finalView, stopCallback, agentInstanceContext, optionalAggegationService, subselectStrategies, priorStrategies, previousGetterStrategies, regexExprPreviousEvalStrategy, tableAccessStrategies, preloadList) { this.contextManagerRealization = contextManagerRealization; }
public ContextControllerCategory( ContextManagerRealization realization, ContextControllerCategoryFactory factory) : base(realization) { this.factory = factory; }
public ContextControllerKeyedImpl( ContextControllerKeyedFactory factory, ContextManagerRealization realization) : base(realization, factory) { keyedSvc = ContextControllerKeyedUtil.GetService(factory, realization); }
public ContextControllerHashImpl( ContextControllerHashFactory factory, ContextManagerRealization realization) : base(realization, factory) { hashSvc = ContextControllerHashUtil.MakeService(factory, realization); }
public ContextControllerInitTermNonOverlap( ContextControllerInitTermFactory factory, ContextManagerRealization realization) : base( factory, realization) { }
protected internal static ContextControllerKeyedSvc GetService( ContextControllerKeyedFactory factory, ContextManagerRealization realization) { if (factory.FactoryEnv.IsRoot) { return new ContextControllerKeyedSvcLevelOne(); } return new ContextControllerKeyedSvcLevelAny(); }
public long? GetExpectedEndTime( ContextManagerRealization realization, ScheduleSpec[] scheduleSpecs) { var importService = realization.AgentInstanceContextCreate.ImportServiceRuntime; return ContextControllerInitTermUtil.ComputeScheduleMinimumNextOccurance( scheduleSpecs, realization.AgentInstanceContextCreate.TimeProvider.Time, importService); }
public long? GetExpectedEndTime( ContextManagerRealization realization, ScheduleSpec scheduleSpec) { var classpathImportService = realization.AgentInstanceContextCreate.ImportServiceRuntime; return ScheduleComputeHelper.ComputeNextOccurance( scheduleSpec, realization.AgentInstanceContextCreate.TimeProvider.Time, classpathImportService.TimeZone, classpathImportService.TimeAbacus); }
public static ContextControllerHashSvc MakeService( ContextControllerHashFactory factory, ContextManagerRealization realization) { var factories = realization.ContextManager.ContextDefinition.ControllerFactories; var preallocate = factory.HashSpec.IsPreallocate; if (factories.Length == 1) { return new ContextControllerHashSvcLevelOne(preallocate); } return new ContextControllerHashSvcLevelAny(preallocate); }
public ContextControllerCategoryImpl( ContextManagerRealization realization, ContextControllerCategoryFactory factory) : base(realization, factory) { if (factory.FactoryEnv.IsRoot) { CategorySvc = new ContextControllerCategorySvcLevelOne(); } else { CategorySvc = new ContextControllerCategorySvcLevelAny(); } }
public ContextControllerInitTermOverlap( ContextControllerInitTermFactory factory, ContextManagerRealization realization) : base(factory, realization) { if (factory.InitTermSpec.DistinctEval != null) { if (factory.FactoryEnv.NumNestingLevels == 1) { distinctSvc = new ContextControllerInitTermDistinctSvcNonNested(); } else { distinctSvc = new ContextControllerInitTermDistinctSvcNested(); } eventsPerStreamDistinct = new EventBean[1]; distinctLastTriggerEvents = new LRUCache<object, EventBean>(16); } else { distinctSvc = null; distinctLastTriggerEvents = null; eventsPerStreamDistinct = null; } }
public abstract ContextController Create(ContextManagerRealization contextManagerRealization);
public ContextControllerBase(ContextManagerRealization realization) { this.realization = realization; }
public override ContextController Create(ContextManagerRealization contextManagerRealization) { return new ContextControllerCategoryImpl(contextManagerRealization, this); }