001/**
002 * Licensed to the Apache Software Foundation (ASF) under one or more
003 * contributor license agreements.  See the NOTICE file distributed with
004 * this work for additional information regarding copyright ownership.
005 * The ASF licenses this file to You under the Apache License, Version 2.0
006 * (the "License"); you may not use this file except in compliance with
007 * the License.  You may obtain a copy of the License at
008 *
009 *      http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017package org.apache.camel.api.management.mbean;
018
019import org.apache.camel.api.management.ManagedAttribute;
020import org.apache.camel.api.management.ManagedOperation;
021
022public interface ManagedAggregateProcessorMBean extends ManagedProcessorMBean {
023
024    @ManagedAttribute(description = "The language for the expression")
025    String getCorrelationExpressionLanguage();
026
027    @ManagedAttribute(description = "Correlation Expression")
028    String getCorrelationExpression();
029
030    @ManagedAttribute(description = "Completion timeout in millis")
031    long getCompletionTimeout();
032
033    @ManagedAttribute(description = "The language for the expression")
034    String getCompletionTimeoutLanguage();
035
036    @ManagedAttribute(description = "Completion timeout expression")
037    String getCompletionTimeoutExpression();
038
039    @ManagedAttribute(description = "Completion interval in millis")
040    long getCompletionInterval();
041
042    @ManagedAttribute(description = "Completion size")
043    int getCompletionSize();
044
045    @ManagedAttribute(description = "The language for the expression")
046    String getCompletionSizeExpressionLanguage();
047
048    @ManagedAttribute(description = "Completion size expression")
049    String getCompletionSizeExpression();
050
051    @ManagedAttribute(description = "Complete from batch consumers")
052    boolean isCompletionFromBatchConsumer();
053
054    @ManagedAttribute(description = "Ignore invalid correlation keys")
055    boolean isIgnoreInvalidCorrelationKeys();
056
057    @ManagedAttribute(description = "Whether to close the correlation group on completion if this value is > 0.")
058    Integer getCloseCorrelationKeyOnCompletion();
059
060    @ManagedAttribute(description = "Parallel mode")
061    boolean isParallelProcessing();
062
063    @ManagedAttribute(description = "Optimistic locking")
064    boolean isOptimisticLocking();
065
066    @ManagedAttribute(description = "Whether or not to eager check for completion when a new incoming Exchange has been received")
067    boolean isEagerCheckCompletion();
068
069    @ManagedAttribute(description = "The language for the predicate")
070    String getCompletionPredicateLanguage();
071
072    @ManagedAttribute(description = "A Predicate to indicate when an aggregated exchange is complete")
073    String getCompletionPredicate();
074
075    @ManagedAttribute(description = "Whether or not exchanges which complete due to a timeout should be discarded")
076    boolean isDiscardOnCompletionTimeout();
077
078    @ManagedAttribute(description = "Indicates to complete all current aggregated exchanges when the context is stopped")
079    boolean isForceCompletionOnStop();
080
081    @ManagedAttribute(description = "Indicates to wait to complete all current and partial (pending) aggregated exchanges when the context is stopped")
082    boolean isCompleteAllOnStop();
083
084    @ManagedAttribute(description = "Number of completed exchanges which are currently in-flight")
085    int getInProgressCompleteExchanges();
086
087    @ManagedOperation(description = "Number of groups currently in the aggregation repository")
088    int aggregationRepositoryGroups();
089
090    @ManagedOperation(description = "To force completing a specific group by its key")
091    int forceCompletionOfGroup(String key);
092
093    @ManagedOperation(description = "To force complete of all groups")
094    int forceCompletionOfAllGroups();
095
096    @ManagedAttribute(description = "Current number of closed correlation keys in the memory cache")
097    int getClosedCorrelationKeysCacheSize();
098
099    @ManagedOperation(description = "Clear all the closed correlation keys stored in the cache")
100    void clearClosedCorrelationKeysCache();
101
102    @ManagedAttribute(description = "Total number of exchanges arrived into the aggregator")
103    long getTotalIn();
104
105    @ManagedAttribute(description = "Total number of exchanges completed and outgoing from the aggregator")
106    long getTotalCompleted();
107
108    @ManagedAttribute(description = "Total number of exchanged completed by completion size trigger")
109    long getCompletedBySize();
110
111    @ManagedAttribute(description = "Total number of exchanged completed by completion aggregation strategy trigger")
112    long getCompletedByStrategy();
113
114    @ManagedAttribute(description = "Total number of exchanged completed by completion interval (timeout) trigger")
115    long getCompletedByInterval();
116
117    @ManagedAttribute(description = "Total number of exchanged completed by completion timeout trigger")
118    long getCompletedByTimeout();
119
120    @ManagedAttribute(description = "Total number of exchanged completed by completion predicate trigger")
121    long getCompletedByPredicate();
122
123    @ManagedAttribute(description = "Total number of exchanged completed by completion batch consumer trigger")
124    long getCompletedByBatchConsumer();
125
126    @ManagedAttribute(description = "Total number of exchanged completed by completion force trigger")
127    long getCompletedByForce();
128
129    @ManagedOperation(description = " Reset the statistics counters")
130    void resetStatistics();
131
132    @ManagedAttribute(description = "Sets whether statistics is enabled")
133    boolean isStatisticsEnabled();
134
135    @ManagedAttribute(description = "Sets whether statistics is enabled")
136    void setStatisticsEnabled(boolean statisticsEnabled);
137
138}