当前位置: 首页>>代码示例>>Java>>正文


Java StatementEventTypeRef类代码示例

本文整理汇总了Java中com.espertech.esper.core.service.StatementEventTypeRef的典型用法代码示例。如果您正苦于以下问题:Java StatementEventTypeRef类的具体用法?Java StatementEventTypeRef怎么用?Java StatementEventTypeRef使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


StatementEventTypeRef类属于com.espertech.esper.core.service包,在下文中一共展示了StatementEventTypeRef类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: undeployTypes

import com.espertech.esper.core.service.StatementEventTypeRef; //导入依赖的package包/类
public static List<EventType> undeployTypes(Set<String> referencedTypes, StatementEventTypeRef statementEventTypeRef, EventAdapterService eventAdapterService, FilterService filterService) {
    List<EventType> undeployedTypes = new ArrayList<EventType>();
    for (String typeName : referencedTypes) {

        boolean typeInUse = statementEventTypeRef.isInUse(typeName);
        if (typeInUse) {
            if (log.isDebugEnabled()) {
                log.debug("Event type '" + typeName + "' is in use, not removing type");
            }
            continue;
        }

        if (log.isDebugEnabled()) {
            log.debug("Event type '" + typeName + "' is no longer in use, removing type");
        }
        EventType type = eventAdapterService.getExistsTypeByName(typeName);
        if (type != null) {
            EventTypeSPI spi = (EventTypeSPI) type;
            if (!spi.getMetadata().isApplicationPreConfigured()) {
                eventAdapterService.removeType(typeName);
                undeployedTypes.add(spi);
                filterService.removeType(spi);
            }
        }
    }
    return undeployedTypes;
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:28,代码来源:EPLModuleUtil.java

示例2: EPDeploymentAdminImpl

import com.espertech.esper.core.service.StatementEventTypeRef; //导入依赖的package包/类
public EPDeploymentAdminImpl(EPAdministratorSPI epService, ManagedReadWriteLock eventProcessingRWLock, DeploymentStateService deploymentStateService, StatementEventTypeRef statementEventTypeRef, EventAdapterService eventAdapterService, StatementIsolationService statementIsolationService, FilterService filterService, TimeZone timeZone, ConfigurationEngineDefaults.ExceptionHandling.UndeployRethrowPolicy undeployRethrowPolicy) {
    this.epService = epService;
    this.eventProcessingRWLock = eventProcessingRWLock;
    this.deploymentStateService = deploymentStateService;
    this.statementEventTypeRef = statementEventTypeRef;
    this.eventAdapterService = eventAdapterService;
    this.statementIsolationService = statementIsolationService;
    this.filterService = filterService;
    this.timeZone = timeZone;
    this.undeployRethrowPolicy = undeployRethrowPolicy;
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:12,代码来源:EPDeploymentAdminImpl.java

示例3: undeployTypes

import com.espertech.esper.core.service.StatementEventTypeRef; //导入依赖的package包/类
public static List<EventType> undeployTypes(Set<String> referencedTypes, StatementEventTypeRef statementEventTypeRef, EventAdapterService eventAdapterService, FilterService filterService)
{
    List<EventType> undeployedTypes = new ArrayList<EventType>();
    for (String typeName : referencedTypes) {

        boolean typeInUse = statementEventTypeRef.isInUse(typeName);
        if (typeInUse) {
            if (log.isDebugEnabled()) {
                log.debug("Event type '" + typeName + "' is in use, not removing type");
            }
            continue;
        }

        if (log.isDebugEnabled()) {
            log.debug("Event type '" + typeName + "' is no longer in use, removing type");
        }
        EventType type = eventAdapterService.getExistsTypeByName(typeName);
        if (type != null) {
            EventTypeSPI spi = (EventTypeSPI) type;
            if (!spi.getMetadata().isApplicationPreConfigured()) {
                eventAdapterService.removeType(typeName);
                undeployedTypes.add(spi);
                filterService.removeType(spi);
            }
        }
    }
    return undeployedTypes;
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:29,代码来源:EPLModuleUtil.java

示例4: SelectExprEventTypeRegistry

import com.espertech.esper.core.service.StatementEventTypeRef; //导入依赖的package包/类
public SelectExprEventTypeRegistry(String statementName, StatementEventTypeRef statementEventTypeRef) {
    this.statementName = statementName;
    this.statementEventTypeRef = statementEventTypeRef;
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:5,代码来源:SelectExprEventTypeRegistry.java


注:本文中的com.espertech.esper.core.service.StatementEventTypeRef类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。