當前位置: 首頁>>代碼示例>>Java>>正文


Java AggregateDefinition類代碼示例

本文整理匯總了Java中org.apache.camel.model.AggregateDefinition的典型用法代碼示例。如果您正苦於以下問題:Java AggregateDefinition類的具體用法?Java AggregateDefinition怎麽用?Java AggregateDefinition使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


AggregateDefinition類屬於org.apache.camel.model包,在下文中一共展示了AggregateDefinition類的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: configure

import org.apache.camel.model.AggregateDefinition; //導入依賴的package包/類
@Override
public void configure() throws Exception {
    log.debug("Loading Bulk Ingest Process: @" + folder);
    fEPoint = endpoint(
            "file:" + folder + "?noop=false&sortBy=file:name&move=.done&delay=" + BULK_INGEST_POLL_INTERVAL,
            FileEndpoint.class);
    fEPoint.setFilter(new BulkIngestFileFilter());
    RouteDefinition route = from(fEPoint);
    route.setId(folder);
    SplitDefinition split = route.split().tokenizeXML("ingestDocument");
    split.streaming();
    AggregateDefinition aggregator = split.aggregate(constant(true), new BodyAggregator());
    aggregator.setParallelProcessing(BULK_PROCESSOR_MULTI_THREADED);
    aggregator.completionPredicate(new SplitPredicate(BULK_PROCESSOR_SPLIT_SIZE));
    ThreadsDefinition threads = aggregator.threads(BULK_PROCESSOR_THREADS_MIN, BULK_PROCESSOR_THREADS_MAX);
    bulkIngestNIndexProcessor = new BulkIngestNIndexProcessor(user, action);
    threads.process(bulkIngestNIndexProcessor);
    threads.setThreadName("bulkIngest");
    route.setErrorHandlerBuilder(DocStoreCamelContext.getInstance().getErrorHandler());
    log.info("Loaded Bulk Ingest Process: @" + folder);
}
 
開發者ID:VU-libtech,項目名稱:OLE-INST,代碼行數:22,代碼來源:BulkIngestNIndexRouteBuilder.java

示例2: traceAggregate

import org.apache.camel.model.AggregateDefinition; //導入依賴的package包/類
private void traceAggregate(TracedRouteNodes traced, Exchange exchange) {
    traced.addTraced(new AggregateRouteNode((AggregateDefinition) node.getParent()));
    traced.addTraced(new DefaultRouteNode(node, super.getProcessor()));
}
 
開發者ID:HydAu,項目名稱:Camel,代碼行數:5,代碼來源:TraceInterceptor.java

示例3: ManagedAggregateProcessor

import org.apache.camel.model.AggregateDefinition; //導入依賴的package包/類
public ManagedAggregateProcessor(CamelContext context, AggregateProcessor processor, AggregateDefinition definition) {
    super(context, processor, definition);
    this.processor = processor;
}
 
開發者ID:HydAu,項目名稱:Camel,代碼行數:5,代碼來源:ManagedAggregateProcessor.java

示例4: getDefinition

import org.apache.camel.model.AggregateDefinition; //導入依賴的package包/類
@Override
public AggregateDefinition getDefinition() {
    return (AggregateDefinition) super.getDefinition();
}
 
開發者ID:HydAu,項目名稱:Camel,代碼行數:5,代碼來源:ManagedAggregateProcessor.java

示例5: AggregateRouteNode

import org.apache.camel.model.AggregateDefinition; //導入依賴的package包/類
public AggregateRouteNode(AggregateDefinition aggregateDefinition) {
    this.aggregateDefinition = aggregateDefinition;
}
 
開發者ID:HydAu,項目名稱:Camel,代碼行數:4,代碼來源:AggregateRouteNode.java

示例6: findOutputComponents

import org.apache.camel.model.AggregateDefinition; //導入依賴的package包/類
@SuppressWarnings({"rawtypes"})
private void findOutputComponents(List<ProcessorDefinition<?>> defs, Set<String> components, Set<String> languages, Set<String> dataformats) {
    if (defs != null) {
        for (ProcessorDefinition<?> def : defs) {
            if (def instanceof SendDefinition) {
                findUriComponent(((SendDefinition) def).getUri(), components);
            }
            if (def instanceof MarshalDefinition) {
                findDataFormat(((MarshalDefinition) def).getDataFormatType(), dataformats);
            }
            if (def instanceof UnmarshalDefinition) {
                findDataFormat(((UnmarshalDefinition) def).getDataFormatType(), dataformats);
            }
            if (def instanceof ExpressionNode) {
                findLanguage(((ExpressionNode) def).getExpression(), languages);
            }
            if (def instanceof ResequenceDefinition) {
                findLanguage(((ResequenceDefinition) def).getExpression(), languages);
            }
            if (def instanceof AggregateDefinition) {
                findLanguage(((AggregateDefinition) def).getExpression(), languages);
                findLanguage(((AggregateDefinition) def).getCorrelationExpression(), languages);
                findLanguage(((AggregateDefinition) def).getCompletionPredicate(), languages);
                findLanguage(((AggregateDefinition) def).getCompletionTimeoutExpression(), languages);
                findLanguage(((AggregateDefinition) def).getCompletionSizeExpression(), languages);
            }
            if (def instanceof CatchDefinition) {
                findLanguage(((CatchDefinition) def).getHandled(), languages);
            }
            if (def instanceof OnExceptionDefinition) {
                findLanguage(((OnExceptionDefinition) def).getRetryWhile(), languages);
                findLanguage(((OnExceptionDefinition) def).getHandled(), languages);
                findLanguage(((OnExceptionDefinition) def).getContinued(), languages);
            }
            if (def instanceof SortDefinition) {
                findLanguage(((SortDefinition) def).getExpression(), languages);
            }
            if (def instanceof WireTapDefinition) {
                findLanguage(((WireTapDefinition<?>) def).getNewExchangeExpression(), languages);
            }
            findOutputComponents(def.getOutputs(), components, languages, dataformats);
        }
    }
}
 
開發者ID:HydAu,項目名稱:Camel,代碼行數:45,代碼來源:CamelNamespaceHandler.java

示例7: aggregationStrategy

import org.apache.camel.model.AggregateDefinition; //導入依賴的package包/類
public static AggregateDefinition aggregationStrategy(AggregateDefinition self,
        Closure<Exchange> aggregationLogic) {
    return self.aggregationStrategy(toAggregationStrategy(aggregationLogic));
}
 
開發者ID:HydAu,項目名稱:Camel,代碼行數:5,代碼來源:CamelGroovyMethods.java

示例8: aggregate

import org.apache.camel.model.AggregateDefinition; //導入依賴的package包/類
public static AggregateDefinition aggregate(ProcessorDefinition<?> self,
        Closure<?> correlationExpression) {
    return self.aggregate(toExpression(correlationExpression));
}
 
開發者ID:HydAu,項目名稱:Camel,代碼行數:5,代碼來源:CamelGroovyMethods.java

示例9: completionSize

import org.apache.camel.model.AggregateDefinition; //導入依賴的package包/類
public static AggregateDefinition completionSize(AggregateDefinition self, Closure<?> expression) {
    return self.completionSize(toExpression(expression));
}
 
開發者ID:HydAu,項目名稱:Camel,代碼行數:4,代碼來源:CamelGroovyMethods.java

示例10: completionTimeout

import org.apache.camel.model.AggregateDefinition; //導入依賴的package包/類
public static AggregateDefinition completionTimeout(AggregateDefinition self,
        Closure<?> expression) {
    return self.completionTimeout(toExpression(expression));
}
 
開發者ID:HydAu,項目名稱:Camel,代碼行數:5,代碼來源:CamelGroovyMethods.java

示例11: completionPredicate

import org.apache.camel.model.AggregateDefinition; //導入依賴的package包/類
public static AggregateDefinition completionPredicate(AggregateDefinition self,
        Closure<?> predicate) {
    return self.completionPredicate(toExpression(predicate));
}
 
開發者ID:HydAu,項目名稱:Camel,代碼行數:5,代碼來源:CamelGroovyMethods.java


注:本文中的org.apache.camel.model.AggregateDefinition類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。