本文整理汇总了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;
}
示例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;
}
示例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;
}
示例4: SelectExprEventTypeRegistry
import com.espertech.esper.core.service.StatementEventTypeRef; //导入依赖的package包/类
public SelectExprEventTypeRegistry(String statementName, StatementEventTypeRef statementEventTypeRef) {
this.statementName = statementName;
this.statementEventTypeRef = statementEventTypeRef;
}