1 /*
2 * Copyright 1999-2004 The Apache Software Foundation.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 */
17 package org.apache.sandesha;
18
19 /***
20 * RMReport is generated at the end of the termination of each sequence.
21 *
22 * @author Chamikara Jayalath
23 * @author Jaliya Ekanyake
24 */
25 public class RMReport {
26
27 private boolean allAcked;
28 private int returns;
29 private String error;
30
31 public String getError() {
32 return error;
33 }
34
35 public void setError(String error) {
36 this.error = error;
37 }
38
39 public boolean isAllAcked() {
40 return this.allAcked;
41 }
42
43 public int getNumberOfReturnMessages() {
44 return this.returns;
45 }
46
47 public void setAllAcked(boolean acked) {
48 this.allAcked = acked;
49 }
50
51 public void setNoOfReturmMessages(int n) {
52 this.returns = n;
53 }
54
55 public void incrementReturnedMsgCount() {
56 this.returns++;
57 }
58
59 }