View Javadoc

1   /*
2   * Copyright  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.kandula;
18  
19  /***
20   * @author <a href="mailto:thilina@opensource.lk"> Thilina Gunarathne </a>
21   */
22  public abstract interface Status {
23  	interface CoordinatorStatus {
24  		
25  		static final int STATUS_ABORTING = 9;
26  		
27  		static final int STATUS_ACTIVE = 0;
28  		
29  		static final int STATUS_COMMITTING = 8;
30  		
31  		static final int STATUS_NONE = 6;
32  		
33  		static final int STATUS_PREPARED = 14;
34  		
35  		static final int STATUS_PREPARED_SUCCESS = 13;
36  		
37  		static final int STATUS_PREPARING = 10;
38  		
39  		static final int STATUS_PREPARING_DURABLE = 11;
40  		
41  		static final int STATUS_PREPARING_VOLATILE = 12;
42  		
43  		static final int STATUS_READ_ONLY = 23;
44  		
45  	}
46  	
47  	// TODO remove the inner interfaces..
48  	interface ParticipantStatus {
49  		
50  		static final int STATUS_ABORTED = 22;
51  		
52  		static final int STATUS_COMMITED = 24;
53  		
54  		static final int STATUS_DURABLE_PREPARING = 21;
55  		
56  		static final int STATUS_READ_ONLY = 23;
57  		
58  		static final int STATUS_VOLATILE_PREPARING = 20;
59  		
60  	}
61  }