KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jotm > ControlImpl_Stub


1 // Stub class generated by rmic, do not edit.
2
// Contents subject to change without notice.
3

4 package org.objectweb.jotm;
5
6 public final class ControlImpl_Stub
7     extends java.rmi.server.RemoteStub JavaDoc
8     implements org.objectweb.jotm.Control, org.objectweb.jotm.Resource, org.objectweb.jotm.Coordinator, org.objectweb.jotm.Terminator, org.objectweb.jotm.RecoveryCoordinator
9 {
10     private static final long serialVersionUID = 2;
11     
12     private static java.lang.reflect.Method JavaDoc $method_commit_0;
13     private static java.lang.reflect.Method JavaDoc $method_commit_1;
14     private static java.lang.reflect.Method JavaDoc $method_commit_one_phase_2;
15     private static java.lang.reflect.Method JavaDoc $method_forget_3;
16     private static java.lang.reflect.Method JavaDoc $method_get_coordinator_4;
17     private static java.lang.reflect.Method JavaDoc $method_get_status_5;
18     private static java.lang.reflect.Method JavaDoc $method_get_terminator_6;
19     private static java.lang.reflect.Method JavaDoc $method_get_transaction_name_7;
20     private static java.lang.reflect.Method JavaDoc $method_is_same_transaction_8;
21     private static java.lang.reflect.Method JavaDoc $method_prepare_9;
22     private static java.lang.reflect.Method JavaDoc $method_register_resource_10;
23     private static java.lang.reflect.Method JavaDoc $method_register_synchronization_11;
24     private static java.lang.reflect.Method JavaDoc $method_replay_completion_12;
25     private static java.lang.reflect.Method JavaDoc $method_rollback_13;
26     private static java.lang.reflect.Method JavaDoc $method_rollback_only_14;
27     
28     static {
29     try {
30         $method_commit_0 = org.objectweb.jotm.Resource.class.getMethod("commit", new java.lang.Class JavaDoc[] {});
31         $method_commit_1 = org.objectweb.jotm.Terminator.class.getMethod("commit", new java.lang.Class JavaDoc[] {boolean.class});
32         $method_commit_one_phase_2 = org.objectweb.jotm.Resource.class.getMethod("commit_one_phase", new java.lang.Class JavaDoc[] {});
33         $method_forget_3 = org.objectweb.jotm.Resource.class.getMethod("forget", new java.lang.Class JavaDoc[] {});
34         $method_get_coordinator_4 = org.objectweb.jotm.Control.class.getMethod("get_coordinator", new java.lang.Class JavaDoc[] {});
35         $method_get_status_5 = org.objectweb.jotm.Coordinator.class.getMethod("get_status", new java.lang.Class JavaDoc[] {});
36         $method_get_terminator_6 = org.objectweb.jotm.Control.class.getMethod("get_terminator", new java.lang.Class JavaDoc[] {});
37         $method_get_transaction_name_7 = org.objectweb.jotm.Coordinator.class.getMethod("get_transaction_name", new java.lang.Class JavaDoc[] {});
38         $method_is_same_transaction_8 = org.objectweb.jotm.Coordinator.class.getMethod("is_same_transaction", new java.lang.Class JavaDoc[] {org.objectweb.jotm.Coordinator.class});
39         $method_prepare_9 = org.objectweb.jotm.Resource.class.getMethod("prepare", new java.lang.Class JavaDoc[] {});
40         $method_register_resource_10 = org.objectweb.jotm.Coordinator.class.getMethod("register_resource", new java.lang.Class JavaDoc[] {org.objectweb.jotm.Resource.class});
41         $method_register_synchronization_11 = org.objectweb.jotm.Coordinator.class.getMethod("register_synchronization", new java.lang.Class JavaDoc[] {org.objectweb.jotm.RemoteSynchro.class});
42         $method_replay_completion_12 = org.objectweb.jotm.RecoveryCoordinator.class.getMethod("replay_completion", new java.lang.Class JavaDoc[] {org.objectweb.jotm.Resource.class});
43         $method_rollback_13 = org.objectweb.jotm.Terminator.class.getMethod("rollback", new java.lang.Class JavaDoc[] {});
44         $method_rollback_only_14 = org.objectweb.jotm.Coordinator.class.getMethod("rollback_only", new java.lang.Class JavaDoc[] {});
45     } catch (java.lang.NoSuchMethodException JavaDoc e) {
46         throw new java.lang.NoSuchMethodError JavaDoc(
47         "stub class initialization failed");
48     }
49     }
50     
51     // constructors
52
public ControlImpl_Stub(java.rmi.server.RemoteRef JavaDoc ref) {
53     super(ref);
54     }
55     
56     // methods from remote interfaces
57

58     // implementation of commit()
59
public void commit()
60     throws java.rmi.RemoteException JavaDoc
61     {
62     try {
63         ref.invoke(this, $method_commit_0, null, 8461082169793485964L);
64     } catch (java.lang.RuntimeException JavaDoc e) {
65         throw e;
66     } catch (java.rmi.RemoteException JavaDoc e) {
67         throw e;
68     } catch (java.lang.Exception JavaDoc e) {
69         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
70     }
71     }
72     
73     // implementation of commit(boolean)
74
public void commit(boolean $param_boolean_1)
75     throws java.rmi.RemoteException JavaDoc
76     {
77     try {
78         ref.invoke(this, $method_commit_1, new java.lang.Object JavaDoc[] {new java.lang.Boolean JavaDoc($param_boolean_1)}, 2945961306823414787L);
79     } catch (java.lang.RuntimeException JavaDoc e) {
80         throw e;
81     } catch (java.rmi.RemoteException JavaDoc e) {
82         throw e;
83     } catch (java.lang.Exception JavaDoc e) {
84         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
85     }
86     }
87     
88     // implementation of commit_one_phase()
89
public void commit_one_phase()
90     throws java.rmi.RemoteException JavaDoc
91     {
92     try {
93         ref.invoke(this, $method_commit_one_phase_2, null, -371926797834829192L);
94     } catch (java.lang.RuntimeException JavaDoc e) {
95         throw e;
96     } catch (java.rmi.RemoteException JavaDoc e) {
97         throw e;
98     } catch (java.lang.Exception JavaDoc e) {
99         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
100     }
101     }
102     
103     // implementation of forget()
104
public void forget()
105     throws java.rmi.RemoteException JavaDoc
106     {
107     try {
108         ref.invoke(this, $method_forget_3, null, -4650867798493072124L);
109     } catch (java.lang.RuntimeException JavaDoc e) {
110         throw e;
111     } catch (java.rmi.RemoteException JavaDoc e) {
112         throw e;
113     } catch (java.lang.Exception JavaDoc e) {
114         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
115     }
116     }
117     
118     // implementation of get_coordinator()
119
public org.objectweb.jotm.Coordinator get_coordinator()
120     throws java.rmi.RemoteException JavaDoc
121     {
122     try {
123         Object JavaDoc $result = ref.invoke(this, $method_get_coordinator_4, null, -2556463666917818919L);
124         return ((org.objectweb.jotm.Coordinator) $result);
125     } catch (java.lang.RuntimeException JavaDoc e) {
126         throw e;
127     } catch (java.rmi.RemoteException JavaDoc e) {
128         throw e;
129     } catch (java.lang.Exception JavaDoc e) {
130         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
131     }
132     }
133     
134     // implementation of get_status()
135
public int get_status()
136     throws java.rmi.RemoteException JavaDoc
137     {
138     try {
139         Object JavaDoc $result = ref.invoke(this, $method_get_status_5, null, -3515893588298561604L);
140         return ((java.lang.Integer JavaDoc) $result).intValue();
141     } catch (java.lang.RuntimeException JavaDoc e) {
142         throw e;
143     } catch (java.rmi.RemoteException JavaDoc e) {
144         throw e;
145     } catch (java.lang.Exception JavaDoc e) {
146         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
147     }
148     }
149     
150     // implementation of get_terminator()
151
public org.objectweb.jotm.Terminator get_terminator()
152     throws java.rmi.RemoteException JavaDoc
153     {
154     try {
155         Object JavaDoc $result = ref.invoke(this, $method_get_terminator_6, null, 6245030945652038599L);
156         return ((org.objectweb.jotm.Terminator) $result);
157     } catch (java.lang.RuntimeException JavaDoc e) {
158         throw e;
159     } catch (java.rmi.RemoteException JavaDoc e) {
160         throw e;
161     } catch (java.lang.Exception JavaDoc e) {
162         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
163     }
164     }
165     
166     // implementation of get_transaction_name()
167
public java.lang.String JavaDoc get_transaction_name()
168     throws java.rmi.RemoteException JavaDoc
169     {
170     try {
171         Object JavaDoc $result = ref.invoke(this, $method_get_transaction_name_7, null, 2441324298584236377L);
172         return ((java.lang.String JavaDoc) $result);
173     } catch (java.lang.RuntimeException JavaDoc e) {
174         throw e;
175     } catch (java.rmi.RemoteException JavaDoc e) {
176         throw e;
177     } catch (java.lang.Exception JavaDoc e) {
178         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
179     }
180     }
181     
182     // implementation of is_same_transaction(Coordinator)
183
public boolean is_same_transaction(org.objectweb.jotm.Coordinator $param_Coordinator_1)
184     throws java.rmi.RemoteException JavaDoc
185     {
186     try {
187         Object JavaDoc $result = ref.invoke(this, $method_is_same_transaction_8, new java.lang.Object JavaDoc[] {$param_Coordinator_1}, -5310190759861196234L);
188         return ((java.lang.Boolean JavaDoc) $result).booleanValue();
189     } catch (java.lang.RuntimeException JavaDoc e) {
190         throw e;
191     } catch (java.rmi.RemoteException JavaDoc e) {
192         throw e;
193     } catch (java.lang.Exception JavaDoc e) {
194         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
195     }
196     }
197     
198     // implementation of prepare()
199
public int prepare()
200     throws java.rmi.RemoteException JavaDoc
201     {
202     try {
203         Object JavaDoc $result = ref.invoke(this, $method_prepare_9, null, 8637559118677609209L);
204         return ((java.lang.Integer JavaDoc) $result).intValue();
205     } catch (java.lang.RuntimeException JavaDoc e) {
206         throw e;
207     } catch (java.rmi.RemoteException JavaDoc e) {
208         throw e;
209     } catch (java.lang.Exception JavaDoc e) {
210         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
211     }
212     }
213     
214     // implementation of register_resource(Resource)
215
public org.objectweb.jotm.RecoveryCoordinator register_resource(org.objectweb.jotm.Resource $param_Resource_1)
216     throws java.rmi.RemoteException JavaDoc
217     {
218     try {
219         Object JavaDoc $result = ref.invoke(this, $method_register_resource_10, new java.lang.Object JavaDoc[] {$param_Resource_1}, 19538403643173114L);
220         return ((org.objectweb.jotm.RecoveryCoordinator) $result);
221     } catch (java.lang.RuntimeException JavaDoc e) {
222         throw e;
223     } catch (java.rmi.RemoteException JavaDoc e) {
224         throw e;
225     } catch (java.lang.Exception JavaDoc e) {
226         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
227     }
228     }
229     
230     // implementation of register_synchronization(RemoteSynchro)
231
public void register_synchronization(org.objectweb.jotm.RemoteSynchro $param_RemoteSynchro_1)
232     throws java.rmi.RemoteException JavaDoc
233     {
234     try {
235         ref.invoke(this, $method_register_synchronization_11, new java.lang.Object JavaDoc[] {$param_RemoteSynchro_1}, 5121809405887137951L);
236     } catch (java.lang.RuntimeException JavaDoc e) {
237         throw e;
238     } catch (java.rmi.RemoteException JavaDoc e) {
239         throw e;
240     } catch (java.lang.Exception JavaDoc e) {
241         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
242     }
243     }
244     
245     // implementation of replay_completion(Resource)
246
public int replay_completion(org.objectweb.jotm.Resource $param_Resource_1)
247     throws java.rmi.RemoteException JavaDoc
248     {
249     try {
250         Object JavaDoc $result = ref.invoke(this, $method_replay_completion_12, new java.lang.Object JavaDoc[] {$param_Resource_1}, 4630294820823977130L);
251         return ((java.lang.Integer JavaDoc) $result).intValue();
252     } catch (java.lang.RuntimeException JavaDoc e) {
253         throw e;
254     } catch (java.rmi.RemoteException JavaDoc e) {
255         throw e;
256     } catch (java.lang.Exception JavaDoc e) {
257         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
258     }
259     }
260     
261     // implementation of rollback()
262
public void rollback()
263     throws java.rmi.RemoteException JavaDoc
264     {
265     try {
266         ref.invoke(this, $method_rollback_13, null, -2202008398766919932L);
267     } catch (java.lang.RuntimeException JavaDoc e) {
268         throw e;
269     } catch (java.rmi.RemoteException JavaDoc e) {
270         throw e;
271     } catch (java.lang.Exception JavaDoc e) {
272         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
273     }
274     }
275     
276     // implementation of rollback_only()
277
public void rollback_only()
278     throws java.rmi.RemoteException JavaDoc
279     {
280     try {
281         ref.invoke(this, $method_rollback_only_14, null, -2932638446068477232L);
282     } catch (java.lang.RuntimeException JavaDoc e) {
283         throw e;
284     } catch (java.rmi.RemoteException JavaDoc e) {
285         throw e;
286     } catch (java.lang.Exception JavaDoc e) {
287         throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
288     }
289     }
290 }
291
Popular Tags