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     */
017    package org.apache.camel.util;
018    
019    import javax.xml.bind.annotation.XmlAccessType;
020    import javax.xml.bind.annotation.XmlAccessorType;
021    import javax.xml.bind.annotation.XmlAttribute;
022    import javax.xml.bind.annotation.XmlRootElement;
023    
024    /**
025     * A model of a route stat dump from {@link org.apache.camel.api.management.mbean.ManagedRouteMBean#dumpRouteAsXml()}.
026     */
027    @XmlRootElement(name = "processorStat")
028    @XmlAccessorType(XmlAccessType.FIELD)
029    public final class ProcessorStatDump {
030    
031        @XmlAttribute
032        private String id;
033    
034        @XmlAttribute
035        private Integer index;
036    
037        @XmlAttribute
038        private Long exchangesCompleted;
039    
040        @XmlAttribute
041        private Long exchangesFailed;
042    
043        @XmlAttribute
044        private Long failuresHandled;
045    
046        @XmlAttribute
047        private Long redeliveries;
048    
049        @XmlAttribute
050        private Long minProcessingTime;
051    
052        @XmlAttribute
053        private Long maxProcessingTime;
054    
055        @XmlAttribute
056        private Long totalProcessingTime;
057    
058        @XmlAttribute
059        private Long lastProcessingTime;
060    
061        @XmlAttribute
062        private Long deltaProcessingTime;
063    
064        @XmlAttribute
065        private Long meanProcessingTime;
066    
067        @XmlAttribute
068        private Long accumulatedProcessingTime;
069    
070        @XmlAttribute
071        private String resetTimestamp;
072    
073        @XmlAttribute
074        private String firstExchangeCompletedTimestamp;
075    
076        @XmlAttribute
077        private String firstExchangeCompletedExchangeId;
078    
079        @XmlAttribute
080        private String firstExchangeFailureTimestamp;
081    
082        @XmlAttribute
083        private String firstExchangeFailureExchangeId;
084    
085        @XmlAttribute
086        private String lastExchangeCompletedTimestamp;
087    
088        @XmlAttribute
089        private String lastExchangeCompletedExchangeId;
090    
091        @XmlAttribute
092        private String lastExchangeFailureTimestamp;
093    
094        @XmlAttribute
095        private String lastExchangeFailureExchangeId;
096    
097        public String getId() {
098            return id;
099        }
100    
101        public void setId(String id) {
102            this.id = id;
103        }
104    
105        public Integer getIndex() {
106            return index;
107        }
108    
109        public void setIndex(Integer index) {
110            this.index = index;
111        }
112    
113        public Long getExchangesCompleted() {
114            return exchangesCompleted;
115        }
116    
117        public void setExchangesCompleted(Long exchangesCompleted) {
118            this.exchangesCompleted = exchangesCompleted;
119        }
120    
121        public Long getExchangesFailed() {
122            return exchangesFailed;
123        }
124    
125        public void setExchangesFailed(Long exchangesFailed) {
126            this.exchangesFailed = exchangesFailed;
127        }
128    
129        public Long getFailuresHandled() {
130            return failuresHandled;
131        }
132    
133        public void setFailuresHandled(Long failuresHandled) {
134            this.failuresHandled = failuresHandled;
135        }
136    
137        public Long getRedeliveries() {
138            return redeliveries;
139        }
140    
141        public void setRedeliveries(Long redeliveries) {
142            this.redeliveries = redeliveries;
143        }
144    
145        public Long getMinProcessingTime() {
146            return minProcessingTime;
147        }
148    
149        public void setMinProcessingTime(Long minProcessingTime) {
150            this.minProcessingTime = minProcessingTime;
151        }
152    
153        public Long getMaxProcessingTime() {
154            return maxProcessingTime;
155        }
156    
157        public void setMaxProcessingTime(Long maxProcessingTime) {
158            this.maxProcessingTime = maxProcessingTime;
159        }
160    
161        public Long getTotalProcessingTime() {
162            return totalProcessingTime;
163        }
164    
165        public void setTotalProcessingTime(Long totalProcessingTime) {
166            this.totalProcessingTime = totalProcessingTime;
167        }
168    
169        public Long getLastProcessingTime() {
170            return lastProcessingTime;
171        }
172    
173        public void setLastProcessingTime(Long lastProcessingTime) {
174            this.lastProcessingTime = lastProcessingTime;
175        }
176    
177        public Long getDeltaProcessingTime() {
178            return deltaProcessingTime;
179        }
180    
181        public void setDeltaProcessingTime(Long deltaProcessingTime) {
182            this.deltaProcessingTime = deltaProcessingTime;
183        }
184    
185        public Long getMeanProcessingTime() {
186            return meanProcessingTime;
187        }
188    
189        public void setMeanProcessingTime(Long meanProcessingTime) {
190            this.meanProcessingTime = meanProcessingTime;
191        }
192    
193        public Long getAccumulatedProcessingTime() {
194            return accumulatedProcessingTime;
195        }
196    
197        public void setAccumulatedProcessingTime(Long accumulatedProcessingTime) {
198            this.accumulatedProcessingTime = accumulatedProcessingTime;
199        }
200    
201        public String getResetTimestamp() {
202            return resetTimestamp;
203        }
204    
205        public void setResetTimestamp(String resetTimestamp) {
206            this.resetTimestamp = resetTimestamp;
207        }
208    
209        public String getFirstExchangeCompletedTimestamp() {
210            return firstExchangeCompletedTimestamp;
211        }
212    
213        public void setFirstExchangeCompletedTimestamp(String firstExchangeCompletedTimestamp) {
214            this.firstExchangeCompletedTimestamp = firstExchangeCompletedTimestamp;
215        }
216    
217        public String getFirstExchangeCompletedExchangeId() {
218            return firstExchangeCompletedExchangeId;
219        }
220    
221        public void setFirstExchangeCompletedExchangeId(String firstExchangeCompletedExchangeId) {
222            this.firstExchangeCompletedExchangeId = firstExchangeCompletedExchangeId;
223        }
224    
225        public String getFirstExchangeFailureTimestamp() {
226            return firstExchangeFailureTimestamp;
227        }
228    
229        public void setFirstExchangeFailureTimestamp(String firstExchangeFailureTimestamp) {
230            this.firstExchangeFailureTimestamp = firstExchangeFailureTimestamp;
231        }
232    
233        public String getFirstExchangeFailureExchangeId() {
234            return firstExchangeFailureExchangeId;
235        }
236    
237        public void setFirstExchangeFailureExchangeId(String firstExchangeFailureExchangeId) {
238            this.firstExchangeFailureExchangeId = firstExchangeFailureExchangeId;
239        }
240    
241        public String getLastExchangeCompletedTimestamp() {
242            return lastExchangeCompletedTimestamp;
243        }
244    
245        public void setLastExchangeCompletedTimestamp(String lastExchangeCompletedTimestamp) {
246            this.lastExchangeCompletedTimestamp = lastExchangeCompletedTimestamp;
247        }
248    
249        public String getLastExchangeCompletedExchangeId() {
250            return lastExchangeCompletedExchangeId;
251        }
252    
253        public void setLastExchangeCompletedExchangeId(String lastExchangeCompletedExchangeId) {
254            this.lastExchangeCompletedExchangeId = lastExchangeCompletedExchangeId;
255        }
256    
257        public String getLastExchangeFailureTimestamp() {
258            return lastExchangeFailureTimestamp;
259        }
260    
261        public void setLastExchangeFailureTimestamp(String lastExchangeFailureTimestamp) {
262            this.lastExchangeFailureTimestamp = lastExchangeFailureTimestamp;
263        }
264    
265        public String getLastExchangeFailureExchangeId() {
266            return lastExchangeFailureExchangeId;
267        }
268    
269        public void setLastExchangeFailureExchangeId(String lastExchangeFailureExchangeId) {
270            this.lastExchangeFailureExchangeId = lastExchangeFailureExchangeId;
271        }
272    
273    }