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 timeout checker interval in millis")
043    long getCompletionTimeoutCheckerInterval();
044
045    @ManagedAttribute(description = "Completion size")
046    int getCompletionSize();
047
048    @ManagedAttribute(description = "The language for the expression")
049    String getCompletionSizeExpressionLanguage();
050
051    @ManagedAttribute(description = "Completion size expression")
052    String getCompletionSizeExpression();
053
054    @ManagedAttribute(description = "Complete from batch consumers")
055    boolean isCompletionFromBatchConsumer();
056
057    @ManagedAttribute(description = "Ignore invalid correlation keys")
058    boolean isIgnoreInvalidCorrelationKeys();
059
060    @ManagedAttribute(description = "Whether to close the correlation group on completion if this value is > 0.")
061    Integer getCloseCorrelationKeyOnCompletion();
062
063    @ManagedAttribute(description = "Parallel mode")
064    boolean isParallelProcessing();
065
066    @ManagedAttribute(description = "Optimistic locking")
067    boolean isOptimisticLocking();
068
069    @ManagedAttribute(description = "Whether or not to eager check for completion when a new incoming Exchange has been received")
070    boolean isEagerCheckCompletion();
071
072    @ManagedAttribute(description = "The language for the predicate")
073    String getCompletionPredicateLanguage();
074
075    @ManagedAttribute(description = "A Predicate to indicate when an aggregated exchange is complete")
076    String getCompletionPredicate();
077
078    @ManagedAttribute(description = "Whether or not exchanges which complete due to a timeout should be discarded")
079    boolean isDiscardOnCompletionTimeout();
080
081    @ManagedAttribute(description = "Indicates to complete all current aggregated exchanges when the context is stopped")
082    boolean isForceCompletionOnStop();
083
084    @ManagedAttribute(description = "Indicates to wait to complete all current and partial (pending) aggregated exchanges when the context is stopped")
085    boolean isCompleteAllOnStop();
086
087    @ManagedAttribute(description = "Number of completed exchanges which are currently in-flight")
088    int getInProgressCompleteExchanges();
089
090    @ManagedOperation(description = "Number of groups currently in the aggregation repository")
091    int aggregationRepositoryGroups();
092
093    @ManagedOperation(description = "To force completing a specific group by its key")
094    int forceCompletionOfGroup(String key);
095
096    @ManagedOperation(description = "To force complete of all groups")
097    int forceCompletionOfAllGroups();
098
099    @ManagedAttribute(description = "Current number of closed correlation keys in the memory cache")
100    int getClosedCorrelationKeysCacheSize();
101
102    @ManagedOperation(description = "Clear all the closed correlation keys stored in the cache")
103    void clearClosedCorrelationKeysCache();
104
105    @ManagedAttribute(description = "Total number of exchanges arrived into the aggregator")
106    long getTotalIn();
107
108    @ManagedAttribute(description = "Total number of exchanges completed and outgoing from the aggregator")
109    long getTotalCompleted();
110
111    @ManagedAttribute(description = "Total number of exchanged completed by completion size trigger")
112    long getCompletedBySize();
113
114    @ManagedAttribute(description = "Total number of exchanged completed by completion aggregation strategy trigger")
115    long getCompletedByStrategy();
116
117    @ManagedAttribute(description = "Total number of exchanged completed by completion interval (timeout) trigger")
118    long getCompletedByInterval();
119
120    @ManagedAttribute(description = "Total number of exchanged completed by completion timeout trigger")
121    long getCompletedByTimeout();
122
123    @ManagedAttribute(description = "Total number of exchanged completed by completion predicate trigger")
124    long getCompletedByPredicate();
125
126    @ManagedAttribute(description = "Total number of exchanged completed by completion batch consumer trigger")
127    long getCompletedByBatchConsumer();
128
129    @ManagedAttribute(description = "Total number of exchanged completed by completion force trigger")
130    long getCompletedByForce();
131
132    @ManagedOperation(description = " Reset the statistics counters")
133    void resetStatistics();
134
135    @ManagedAttribute(description = "Sets whether statistics is enabled")
136    boolean isStatisticsEnabled();
137
138    @ManagedAttribute(description = "Sets whether statistics is enabled")
139    void setStatisticsEnabled(boolean statisticsEnabled);
140
141}