本文整理汇总了Java中com.espertech.esper.epl.spec.PluggableObjectCollection类的典型用法代码示例。如果您正苦于以下问题:Java PluggableObjectCollection类的具体用法?Java PluggableObjectCollection怎么用?Java PluggableObjectCollection使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PluggableObjectCollection类属于com.espertech.esper.epl.spec包,在下文中一共展示了PluggableObjectCollection类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createService
import com.espertech.esper.epl.spec.PluggableObjectCollection; //导入依赖的package包/类
private ViewResolutionService createService(String[] namespaces, String[] names, String[] classNames)
{
List<ConfigurationPlugInView> configs = new LinkedList<ConfigurationPlugInView>();
for (int i = 0; i < namespaces.length; i++)
{
ConfigurationPlugInView config = new ConfigurationPlugInView();
config.setNamespace(namespaces[i]);
config.setName(names[i]);
config.setFactoryClassName(classNames[i]);
configs.add(config);
}
PluggableObjectCollection desc = new PluggableObjectCollection();
desc.addViews(configs, Collections.<ConfigurationPlugInVirtualDataWindow>emptyList());
PluggableObjectRegistryImpl registry = new PluggableObjectRegistryImpl(new PluggableObjectCollection[] {desc});
return new ViewResolutionServiceImpl(registry, null, null);
}
示例2: ConfigurationOperationsImpl
import com.espertech.esper.epl.spec.PluggableObjectCollection; //导入依赖的package包/类
public ConfigurationOperationsImpl(EventAdapterService eventAdapterService,
EventTypeIdGenerator eventTypeIdGenerator,
EngineImportService engineImportService,
VariableService variableService,
EngineSettingsService engineSettingsService,
ValueAddEventService valueAddEventService,
MetricReportingService metricReportingService,
StatementEventTypeRef statementEventTypeRef,
StatementVariableRef statementVariableRef,
PluggableObjectCollection plugInViews,
FilterService filterService,
PatternSubexpressionPoolEngineSvc patternSubexpressionPoolSvc,
MatchRecognizeStatePoolEngineSvc matchRecognizeStatePoolEngineSvc,
TableService tableService,
Map<String, Object> transientConfiguration) {
this.eventAdapterService = eventAdapterService;
this.eventTypeIdGenerator = eventTypeIdGenerator;
this.engineImportService = engineImportService;
this.variableService = variableService;
this.engineSettingsService = engineSettingsService;
this.valueAddEventService = valueAddEventService;
this.metricReportingService = metricReportingService;
this.statementEventTypeRef = statementEventTypeRef;
this.statementVariableRef = statementVariableRef;
this.plugInViews = plugInViews;
this.filterService = filterService;
this.patternSubexpressionPoolSvc = patternSubexpressionPoolSvc;
this.matchRecognizeStatePoolEngineSvc = matchRecognizeStatePoolEngineSvc;
this.tableService = tableService;
this.transientConfiguration = transientConfiguration;
}
示例3: setUp
import com.espertech.esper.epl.spec.PluggableObjectCollection; //导入依赖的package包/类
public void setUp() {
List<ConfigurationPlugInPatternObject> init = new ArrayList<ConfigurationPlugInPatternObject>();
init.add(makeGuardSpec("g", "h", SupportGuardFactory.class.getName()));
init.add(makeObserverSpec("a", "b", SupportObserverFactory.class.getName()));
PluggableObjectCollection desc = new PluggableObjectCollection();
desc.addPatternObjects(init, SupportEngineImportServiceFactory.make());
desc.addObjects(PatternObjectHelper.getBuiltinPatternObjects());
service = new PatternObjectResolutionServiceImpl(desc);
}
示例4: tryInvalid
import com.espertech.esper.epl.spec.PluggableObjectCollection; //导入依赖的package包/类
private void tryInvalid(List<ConfigurationPlugInPatternObject> config) {
try {
PluggableObjectCollection desc = new PluggableObjectCollection();
desc.addPatternObjects(config, SupportEngineImportServiceFactory.make());
service = new PatternObjectResolutionServiceImpl(desc);
fail();
} catch (ConfigurationException ex) {
// expected
}
}
示例5: createService
import com.espertech.esper.epl.spec.PluggableObjectCollection; //导入依赖的package包/类
private ViewResolutionService createService(String[] namespaces, String[] names, String[] classNames) {
List<ConfigurationPlugInView> configs = new LinkedList<ConfigurationPlugInView>();
for (int i = 0; i < namespaces.length; i++) {
ConfigurationPlugInView config = new ConfigurationPlugInView();
config.setNamespace(namespaces[i]);
config.setName(names[i]);
config.setFactoryClassName(classNames[i]);
configs.add(config);
}
PluggableObjectCollection desc = new PluggableObjectCollection();
desc.addViews(configs, Collections.<ConfigurationPlugInVirtualDataWindow>emptyList(), SupportEngineImportServiceFactory.make());
PluggableObjectRegistryImpl registry = new PluggableObjectRegistryImpl(new PluggableObjectCollection[]{desc});
return new ViewResolutionServiceImpl(registry, null, null);
}
示例6: ConfigurationOperationsImpl
import com.espertech.esper.epl.spec.PluggableObjectCollection; //导入依赖的package包/类
/**
* Ctor.
* @param eventAdapterService is the event wrapper and type service
* @param engineImportService for imported aggregation functions and static functions
* @param variableService - provides access to variable values
* @param engineSettingsService - some engine settings are writable
* @param valueAddEventService - update event handling
* @param metricReportingService - for metric reporting
* @param statementEventTypeRef - statement to event type reference holding
* @param statementVariableRef - statement to variable reference holding
*/
public ConfigurationOperationsImpl(EventAdapterService eventAdapterService,
EventTypeIdGenerator eventTypeIdGenerator,
EngineImportService engineImportService,
VariableService variableService,
EngineSettingsService engineSettingsService,
ValueAddEventService valueAddEventService,
MetricReportingService metricReportingService,
StatementEventTypeRef statementEventTypeRef,
StatementVariableRef statementVariableRef,
PluggableObjectCollection plugInViews,
FilterService filterService,
PatternSubexpressionPoolEngineSvc patternSubexpressionPoolSvc)
{
this.eventAdapterService = eventAdapterService;
this.eventTypeIdGenerator = eventTypeIdGenerator;
this.engineImportService = engineImportService;
this.variableService = variableService;
this.engineSettingsService = engineSettingsService;
this.valueAddEventService = valueAddEventService;
this.metricReportingService = metricReportingService;
this.statementEventTypeRef = statementEventTypeRef;
this.statementVariableRef = statementVariableRef;
this.plugInViews = plugInViews;
this.filterService = filterService;
this.patternSubexpressionPoolSvc = patternSubexpressionPoolSvc;
}
示例7: setUp
import com.espertech.esper.epl.spec.PluggableObjectCollection; //导入依赖的package包/类
public void setUp()
{
List<ConfigurationPlugInPatternObject> init = new ArrayList<ConfigurationPlugInPatternObject>();
init.add(makeGuardSpec("g", "h", SupportGuardFactory.class.getName()));
init.add(makeObserverSpec("a", "b", SupportObserverFactory.class.getName()));
PluggableObjectCollection desc = new PluggableObjectCollection();
desc.addPatternObjects(init);
desc.addObjects(PatternObjectHelper.getBuiltinPatternObjects());
service = new PatternObjectResolutionServiceImpl(desc);
}
示例8: tryInvalid
import com.espertech.esper.epl.spec.PluggableObjectCollection; //导入依赖的package包/类
private void tryInvalid(List<ConfigurationPlugInPatternObject> config)
{
try
{
PluggableObjectCollection desc = new PluggableObjectCollection();
desc.addPatternObjects(config);
service = new PatternObjectResolutionServiceImpl(desc);
fail();
}
catch (ConfigurationException ex)
{
// expected
}
}
示例9: makeContext
import com.espertech.esper.epl.spec.PluggableObjectCollection; //导入依赖的package包/类
public static StatementContext makeContext(int statementId, SchedulingService stub) {
Configuration config = new Configuration();
config.getEngineDefaults().getViewResources().setAllowMultipleExpiryPolicies(true);
TimeSourceServiceImpl timeSourceService = new TimeSourceServiceImpl();
StatementContextEngineServices stmtEngineServices = new StatementContextEngineServices("engURI",
SupportEventAdapterService.getService(),
new NamedWindowMgmtServiceImpl(false, null),
null, new TableServiceImpl(),
new EngineSettingsService(new Configuration().getEngineDefaults(), new URI[0]),
new ValueAddEventServiceImpl(),
config,
null,
null,
null,
null,
new StatementEventTypeRefImpl(), null, null, null, null, null, new ViewServicePreviousFactoryImpl(), null, new PatternNodeFactoryImpl(), new FilterBooleanExpressionFactoryImpl(), timeSourceService, SupportEngineImportServiceFactory.make(), AggregationFactoryFactoryDefault.INSTANCE, new SchedulingServiceImpl(timeSourceService), null);
return new StatementContext(stmtEngineServices,
stub,
new ScheduleBucket(1),
new EPStatementHandle(statementId, "name1", "epl1", StatementType.SELECT, "epl1", false, null, 0, false, false, new MultiMatchHandlerFactoryImpl().getDefaultHandler()),
new ViewResolutionServiceImpl(new PluggableObjectRegistryImpl(new PluggableObjectCollection[]{ViewEnumHelper.getBuiltinViews()}), null, null),
new PatternObjectResolutionServiceImpl(null),
null,
null,
null,
null,
new StatementResultServiceImpl("name", null, null, new ThreadingServiceImpl(new ConfigurationEngineDefaults.Threading())), // statement result svc
null,
null,
null,
null,
null,
null,
null,
false,
null,
null,
AggregationServiceFactoryServiceImpl.DEFAULT_FACTORY,
false,
null, new StatementSemiAnonymousTypeRegistryImpl(), 0);
}
示例10: setUp
import com.espertech.esper.epl.spec.PluggableObjectCollection; //导入依赖的package包/类
public void setUp() {
PluggableObjectRegistryImpl registry = new PluggableObjectRegistryImpl(new PluggableObjectCollection[]{ViewEnumHelper.getBuiltinViews()});
service = new ViewResolutionServiceImpl(registry, null, null);
}
示例11: getBuiltinPatternObjects
import com.espertech.esper.epl.spec.PluggableObjectCollection; //导入依赖的package包/类
/**
* Returns the built-in pattern objects.
* @return collection of built-in pattern objects.
*/
public static PluggableObjectCollection getBuiltinPatternObjects()
{
return builtinPatternObjects;
}
示例12: getBuiltinViews
import com.espertech.esper.epl.spec.PluggableObjectCollection; //导入依赖的package包/类
/**
* Returns a collection of plug-in views.
* @return built-in view definitions
*/
public static PluggableObjectCollection getBuiltinViews()
{
return builtinViews;
}
示例13: getPlugInViews
import com.espertech.esper.epl.spec.PluggableObjectCollection; //导入依赖的package包/类
/**
* Information to resolve plug-in view namespace and name.
* @return plug-in view information
*/
public PluggableObjectCollection getPlugInViews()
{
return plugInViews;
}
示例14: getPlugInPatternObjects
import com.espertech.esper.epl.spec.PluggableObjectCollection; //导入依赖的package包/类
/**
* Information to resolve plug-in pattern object namespace and name.
* @return plug-in pattern object information
*/
public PluggableObjectCollection getPlugInPatternObjects()
{
return plugInPatternObjects;
}
示例15: setUp
import com.espertech.esper.epl.spec.PluggableObjectCollection; //导入依赖的package包/类
public void setUp()
{
PluggableObjectRegistryImpl registry = new PluggableObjectRegistryImpl(new PluggableObjectCollection[] {ViewEnumHelper.getBuiltinViews()});
service = new ViewResolutionServiceImpl(registry, null, null);
}