public void TestClientInstrumentMetricsReportingDisableRuntime()
 {
     RegressionSession session = RegressionRunner.Session();
     ApplyMetricsConfig(session.Configuration, 10000, 10000);
     RegressionRunner.Run(session, new ClientInstrumentMetricsReportingDisableRuntime());
     session.Dispose();
 }
示例#2
0
 public void TestPatternMicrosecondResolutionCrontab()
 {
     RegressionSession session = RegressionRunner.Session();
     session.Configuration.Common.TimeSource.TimeUnit = TimeUnit.MICROSECONDS;
     RegressionRunner.Run(session, new PatternMicrosecondResolutionCrontab());
     session.Dispose();
 }
示例#3
0
 public void TestMax4Prevent()
 {
     RegressionSession session = RegressionRunner.Session();
     Configure(4, true, session.Configuration);
     RegressionRunner.Run(session, new PatternOperatorFollowedByMax4Prevent());
     session.Dispose();
 }
示例#4
0
 public void TestViewGroupMicroseconds()
 {
     RegressionSession session = RegressionRunner.Session();
     ConfigureMicroseconds(session);
     RegressionRunner.Run(session, new ViewGroup.ViewGroupReclaimWithFlipTime(5000000));
     session.Dispose();
 }
示例#5
0
 public void TestPatternObserverTimerScheduleTimeZoneEST()
 {
     RegressionSession session = RegressionRunner.Session();
     session.Configuration.Runtime.Expression.TimeZone = TimeZoneHelper.GetTimeZoneInfo("GMT-4:00");
     RegressionRunner.Run(session, new PatternObserverTimerScheduleTimeZoneEST());
     session.Dispose();
 }
示例#6
0
        public void TestEPLFromClauseMethodVariable()
        {
            RegressionSession session = RegressionRunner.Session();

            Configuration configuration = session.Configuration;
            configuration.Common.AddMethodRef(typeof(EPLFromClauseMethodVariable.MyStaticService), new ConfigurationCommonMethodRef());

            configuration.Common.AddImportType(typeof(EPLFromClauseMethodVariable.MyStaticService));
            configuration.Common.AddImportType(typeof(EPLFromClauseMethodVariable.MyNonConstantServiceVariableFactory));
            configuration.Common.AddImportType(typeof(EPLFromClauseMethodVariable.MyNonConstantServiceVariable));

            ConfigurationCommon common = configuration.Common;
            common.AddVariable("MyConstantServiceVariable", typeof(EPLFromClauseMethodVariable.MyConstantServiceVariable), new EPLFromClauseMethodVariable.MyConstantServiceVariable());
            common.AddVariable("MyNonConstantServiceVariable", typeof(EPLFromClauseMethodVariable.MyNonConstantServiceVariable), new EPLFromClauseMethodVariable.MyNonConstantServiceVariable("postfix"));
            common.AddVariable("MyNullMap", typeof(EPLFromClauseMethodVariable.MyMethodHandlerMap), null);
            common.AddVariable("MyMethodHandlerMap", typeof(EPLFromClauseMethodVariable.MyMethodHandlerMap), new EPLFromClauseMethodVariable.MyMethodHandlerMap("a", "b"));
            common.AddVariable("MyMethodHandlerOA", typeof(EPLFromClauseMethodVariable.MyMethodHandlerOA), new EPLFromClauseMethodVariable.MyMethodHandlerOA("a", "b"));

            configuration.Common.Logging.IsEnableQueryPlan = true;
            configuration.Common.AddEventType(typeof(SupportBean));
            configuration.Common.AddEventType(typeof(SupportBean_S0));
            configuration.Common.AddEventType(typeof(SupportBean_S1));
            configuration.Common.AddEventType(typeof(SupportBean_S2));

            RegressionRunner.Run(session, EPLFromClauseMethodVariable.Executions());

            session.Dispose();
        }
示例#7
0
 public void TestClientSubscriberDisallowed()
 {
     RegressionSession session = RegressionRunner.Session();
     session.Configuration.Common.AddEventType(typeof(SupportBean));
     RegressionRunner.Run(session, new ClientRuntimeSubscriberDisallowed());
     session.Dispose();
 }
示例#8
0
 public void TestContextInitTermPrioritized()
 {
     RegressionSession session = RegressionRunner.Session();
     ConfigurePrioritized(session.Configuration);
     RegressionRunner.Run(session, ContextInitTermPrioritized.Executions());
     session.Dispose();
 }
示例#9
0
 public void TestContextKeySegmentedPrioritized()
 {
     RegressionSession session = RegressionRunner.Session();
     ConfigurePrioritized(session.Configuration);
     RegressionRunner.Run(session, new ContextKeySegmentedPrioritized());
     session.Dispose();
 }
示例#10
0
        public void TestClientInstrumentMetricsReportingStmtGroups()
        {
            RegressionSession session = RegressionRunner.Session();
            session.Configuration.Compiler.ByteCode.AllowSubscriber = true;

            ApplyMetricsConfig(session.Configuration, -1, 7000);

            ConfigurationRuntimeMetricsReporting.StmtGroupMetrics groupOne = new ConfigurationRuntimeMetricsReporting.StmtGroupMetrics();
            groupOne.Interval = 8000;
            groupOne.AddIncludeLike("%GroupOne%");
            groupOne.IsReportInactive = true;
            session.Configuration.Runtime.MetricsReporting.AddStmtGroup("GroupOneStatements", groupOne);

            ConfigurationRuntimeMetricsReporting.StmtGroupMetrics groupTwo = new ConfigurationRuntimeMetricsReporting.StmtGroupMetrics();
            groupTwo.Interval = 6000;
            groupTwo.IsDefaultInclude = true;
            groupTwo.AddExcludeLike("%Default%");
            groupTwo.AddExcludeLike("%Metrics%");
            session.Configuration.Runtime.MetricsReporting.AddStmtGroup("GroupTwoNonDefaultStatements", groupTwo);

            ConfigurationRuntimeMetricsReporting.StmtGroupMetrics groupThree = new ConfigurationRuntimeMetricsReporting.StmtGroupMetrics();
            groupThree.Interval = -1;
            groupThree.AddIncludeLike("%Metrics%");
            session.Configuration.Runtime.MetricsReporting.AddStmtGroup("MetricsStatements", groupThree);

            RegressionRunner.Run(session, new ClientInstrumentMetricsReportingStmtGroups());

            session.Dispose();
        }
 public void TestResultSetOutputLimitChangeSetOpt()
 {
     RegressionSession session = RegressionRunner.Session();
     session.Configuration.Common.AddEventType(typeof(SupportBean));
     session.Configuration.Compiler.ViewResources.OutputLimitOpt = false;
     RegressionRunner.Run(session, new ResultSetOutputLimitChangeSetOpt(false));
     session.Dispose();
 }
示例#12
0
 public void TestEventBeanPropertyResolutionAccessorStyleGlobalPublic()
 {
     RegressionSession session = RegressionRunner.Session();
     session.Configuration.Common.EventMeta.DefaultAccessorStyle = AccessorStyle.PUBLIC;
     session.Configuration.Common.AddEventType(typeof(SupportLegacyBean));
     RegressionRunner.Run(session, new EventBeanPropertyResolutionAccessorStyleGlobalPublic());
     session.Dispose();
 }
示例#13
0
 public void TestViewTimeWinWSystemTime()
 {
     RegressionSession session = RegressionRunner.Session();
     session.Configuration.Common.AddEventType(typeof(SupportMarketDataBean));
     session.Configuration.Runtime.Threading.IsInternalTimerEnabled = true;
     RegressionRunner.Run(session, new ViewTimeWinWSystemTime());
     session.Dispose();
 }
示例#14
0
 public void TestResultSetAggregateExtInvalid()
 {
     RegressionSession session = RegressionRunner.Session();
     session.Configuration.Compiler.Expression.ExtendedAggregation = false;
     session.Configuration.Common.AddEventType(typeof(SupportBean));
     RegressionRunner.Run(session, new ResultSetAggregateExtInvalid());
     session.Dispose();
 }
 public void TestResultSetQueryTypeRowPerGroupReclaimMicrosecondResolution()
 {
     RegressionSession session = RegressionRunner.Session();
     session.Configuration.Common.AddEventType(typeof(SupportBean));
     session.Configuration.Common.TimeSource.TimeUnit = TimeUnit.MICROSECONDS;
     RegressionRunner.Run(session, new ResultSetQueryTypeRowPerGroupReclaimMicrosecondResolution(5000000));
     session.Dispose();
 }
示例#16
0
 public void TestEPLSubselectCorrelatedAggregationPerformance()
 {
     RegressionSession session = RegressionRunner.Session();
     session.Configuration.Runtime.Expression.IsSelfSubselectPreeval = false;
     session.Configuration.Common.AddEventType(typeof(SupportBean));
     RegressionRunner.Run(session, new EPLSubselectOrderOfEvalNoPreeval());
     session.Dispose();
 }
示例#17
0
 public void TestResultSetAggregateFilteredWMathContext()
 {
     RegressionSession session = RegressionRunner.Session();
     session.Configuration.Compiler.Expression.MathContext = new MathContext(MidpointRounding.AwayFromZero, 2);
     session.Configuration.Common.AddEventType(typeof(SupportBeanNumeric));
     RegressionRunner.Run(session, new ResultSetAggregateFilteredWMathContext());
     session.Dispose();
 }
示例#18
0
 public void testEPLScriptExpressionDisable()
 {
     RegressionSession session = RegressionRunner.Session();
     session.Configuration.Common.AddEventType<SupportBean>();
     session.Configuration.Compiler.Scripts.IsEnabled = false;
     RegressionRunner.Run(session, new EPLScriptExpressionDisable());
     session.Dispose();
 }
示例#19
0
 public void TestEventBeanPropertyResolutionCaseInsensitiveEngineDefault()
 {
     RegressionSession session = RegressionRunner.Session();
     session.Configuration.Common.EventMeta.ClassPropertyResolutionStyle = PropertyResolutionStyle.CASE_INSENSITIVE;
     session.Configuration.Common.AddEventType("BeanWCIED", typeof(SupportBean));
     RegressionRunner.Run(session, new EventBeanPropertyResolutionCaseInsensitiveEngineDefault());
     session.Dispose();
 }
示例#20
0
 public void TestEPLScriptExpressionConfiguration()
 {
     RegressionSession session = RegressionRunner.Session();
     session.Configuration.Common.AddEventType(typeof(SupportBean));
     session.Configuration.Compiler.Scripts.DefaultDialect = "dummy";
     RegressionRunner.Run(session, new EPLScriptExpressionConfiguration());
     session.Dispose();
 }
示例#21
0
 public void TestEventBeanPropertyResolutionCaseDistinctInsensitive()
 {
     RegressionSession session = RegressionRunner.Session();
     session.Configuration.Common.EventMeta.ClassPropertyResolutionStyle = PropertyResolutionStyle.DISTINCT_CASE_INSENSITIVE;
     session.Configuration.Common.AddEventType(typeof(SupportBeanDupProperty));
     RegressionRunner.Run(session, new EventBeanPropertyResolutionCaseDistinctInsensitive());
     session.Dispose();
 }
示例#22
0
 public void TestRowRecogIntervalMicrosecondResolution()
 {
     RegressionSession session = RegressionRunner.Session();
     session.Configuration.Common.AddEventType(typeof(SupportBean));
     session.Configuration.Common.TimeSource.TimeUnit = TimeUnit.MICROSECONDS;
     RegressionRunner.Run(session, new RowRecogIntervalResolution(10000000));
     session.Dispose();
 }
示例#23
0
 public void TestRowRecogMaxStatesEngineWide4Instance()
 {
     RegressionSession session = RegressionRunner.Session();
     Configure(session.Configuration);
     session.Configuration.Runtime.MatchRecognize.MaxStates = 4L;
     session.Configuration.Runtime.MatchRecognize.IsMaxStatesPreventStart = true;
     RegressionRunner.Run(session, new RowRecogMaxStatesEngineWide4Instance());
     session.Dispose();
 }
示例#24
0
 public void TestClientRuntimeAnnotationImportInvalid()
 {
     RegressionSession session = RegressionRunner.Session();
     session.Configuration.Common.AddAnnotationImportType(typeof(SupportEnum));
     session.Configuration.Common.AddAnnotationImportType(typeof(MyAnnotationValueEnumAttribute));
     session.Configuration.Common.AddEventType(typeof(SupportBean));
     RegressionRunner.Run(session, new ClientRuntimeStatementAnnotation.ClientRuntimeAnnotationImportInvalid());
     session.Dispose();
 }
 public void TestInfraTableMTGroupedMergeReadMergeWriteSecondaryIndexUpd()
 {
     RegressionSession session = RegressionRunner.Session();
     session.Configuration.Runtime.Execution.IsFairlock = true;
     session.Configuration.Common.AddEventType(typeof(SupportTopGroupSubGroupEvent));
     session.Configuration.Common.AddEventType(typeof(SupportBean));
     session.Configuration.Common.AddEventType(typeof(SupportBean_S0));
     RegressionRunner.Run(session, new InfraTableMTGroupedMergeReadMergeWriteSecondaryIndexUpd());
     session.Dispose();
 }
示例#26
0
 public void TestClientInstrumentInstrumentation()
 {
     RegressionSession session = RegressionRunner.Session();
     foreach (Type clazz in new Type[] { typeof(SupportBean) })
     {
         session.Configuration.Common.AddEventType(clazz);
     }
     RegressionRunner.Run(session, new ClientInstrumentInstrumentation());
     session.Dispose();
 }
 public void TestResultSetOutputLimitMicrosecondResolution()
 {
     RegressionSession session = RegressionRunner.Session();
     session.Configuration.Common.AddEventType(typeof(SupportBean));
     session.Configuration.Common.TimeSource.TimeUnit = TimeUnit.MICROSECONDS;
     RegressionRunner.Run(session,
         new ResultSetOutputLimitMicrosecondResolution(0, "1", 1000000, 1000000));
     RegressionRunner.Run(session,
         new ResultSetOutputLimitMicrosecondResolution(789123456789L, "0.1", 789123456789L + 100000, 100000));
     session.Dispose();
 }
示例#28
0
        public void TestEventBeanPropertyResolutionCaseInsensitiveConfigureType()
        {
            RegressionSession session = RegressionRunner.Session();

            ConfigurationCommonEventTypeBean beanWithCaseInsensitive = new ConfigurationCommonEventTypeBean();
            beanWithCaseInsensitive.PropertyResolutionStyle = PropertyResolutionStyle.CASE_INSENSITIVE;
            session.Configuration.Common.AddEventType("BeanWithCaseInsensitive", typeof(SupportBean), beanWithCaseInsensitive);

            RegressionRunner.Run(session, new EventBeanPropertyResolutionCaseInsensitiveConfigureType());
            session.Dispose();
        }
示例#29
0
 public void TestClientInstrumentMetricsReportingDisableStatement()
 {
     RegressionSession session = RegressionRunner.Session();
     ApplyMetricsConfig(session.Configuration, -1, 10000);
     ConfigurationRuntimeMetricsReporting.StmtGroupMetrics configOne = new ConfigurationRuntimeMetricsReporting.StmtGroupMetrics();
     configOne.Interval = -1;
     configOne.AddIncludeLike("%@METRIC%");
     session.Configuration.Runtime.MetricsReporting.AddStmtGroup("metrics", configOne);
     RegressionRunner.Run(session, new ClientInstrumentMetricsReportingDisableStatement());
     session.Dispose();
 }
示例#30
0
 public void TestClientInstrumentAudit()
 {
     RegressionSession session = RegressionRunner.Session();
     foreach (Type clazz in new Type[] { typeof(SupportBean), typeof(SupportBean_ST0), typeof(SupportBean_ST1) })
     {
         session.Configuration.Common.AddEventType(clazz);
     }
     session.Configuration.Runtime.Logging.AuditPattern = "[%u] [%d] [%s] [%i] [%c] %m";
     RegressionRunner.Run(session, ClientInstrumentAudit.Executions());
     session.Dispose();
 }