1 4 package org.objectweb.jotm; 5 6 public final class ControlImpl_Stub 7 extends java.rmi.server.RemoteStub 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 $method_commit_0; 13 private static java.lang.reflect.Method $method_commit_1; 14 private static java.lang.reflect.Method $method_commit_one_phase_2; 15 private static java.lang.reflect.Method $method_forget_3; 16 private static java.lang.reflect.Method $method_get_coordinator_4; 17 private static java.lang.reflect.Method $method_get_status_5; 18 private static java.lang.reflect.Method $method_get_terminator_6; 19 private static java.lang.reflect.Method $method_get_transaction_name_7; 20 private static java.lang.reflect.Method $method_is_same_transaction_8; 21 private static java.lang.reflect.Method $method_prepare_9; 22 private static java.lang.reflect.Method $method_register_resource_10; 23 private static java.lang.reflect.Method $method_register_synchronization_11; 24 private static java.lang.reflect.Method $method_replay_completion_12; 25 private static java.lang.reflect.Method $method_rollback_13; 26 private static java.lang.reflect.Method $method_rollback_only_14; 27 28 static { 29 try { 30 $method_commit_0 = org.objectweb.jotm.Resource.class.getMethod("commit", new java.lang.Class [] {}); 31 $method_commit_1 = org.objectweb.jotm.Terminator.class.getMethod("commit", new java.lang.Class [] {boolean.class}); 32 $method_commit_one_phase_2 = org.objectweb.jotm.Resource.class.getMethod("commit_one_phase", new java.lang.Class [] {}); 33 $method_forget_3 = org.objectweb.jotm.Resource.class.getMethod("forget", new java.lang.Class [] {}); 34 $method_get_coordinator_4 = org.objectweb.jotm.Control.class.getMethod("get_coordinator", new java.lang.Class [] {}); 35 $method_get_status_5 = org.objectweb.jotm.Coordinator.class.getMethod("get_status", new java.lang.Class [] {}); 36 $method_get_terminator_6 = org.objectweb.jotm.Control.class.getMethod("get_terminator", new java.lang.Class [] {}); 37 $method_get_transaction_name_7 = org.objectweb.jotm.Coordinator.class.getMethod("get_transaction_name", new java.lang.Class [] {}); 38 $method_is_same_transaction_8 = org.objectweb.jotm.Coordinator.class.getMethod("is_same_transaction", new java.lang.Class [] {org.objectweb.jotm.Coordinator.class}); 39 $method_prepare_9 = org.objectweb.jotm.Resource.class.getMethod("prepare", new java.lang.Class [] {}); 40 $method_register_resource_10 = org.objectweb.jotm.Coordinator.class.getMethod("register_resource", new java.lang.Class [] {org.objectweb.jotm.Resource.class}); 41 $method_register_synchronization_11 = org.objectweb.jotm.Coordinator.class.getMethod("register_synchronization", new java.lang.Class [] {org.objectweb.jotm.RemoteSynchro.class}); 42 $method_replay_completion_12 = org.objectweb.jotm.RecoveryCoordinator.class.getMethod("replay_completion", new java.lang.Class [] {org.objectweb.jotm.Resource.class}); 43 $method_rollback_13 = org.objectweb.jotm.Terminator.class.getMethod("rollback", new java.lang.Class [] {}); 44 $method_rollback_only_14 = org.objectweb.jotm.Coordinator.class.getMethod("rollback_only", new java.lang.Class [] {}); 45 } catch (java.lang.NoSuchMethodException e) { 46 throw new java.lang.NoSuchMethodError ( 47 "stub class initialization failed"); 48 } 49 } 50 51 public ControlImpl_Stub(java.rmi.server.RemoteRef ref) { 53 super(ref); 54 } 55 56 58 public void commit() 60 throws java.rmi.RemoteException 61 { 62 try { 63 ref.invoke(this, $method_commit_0, null, 8461082169793485964L); 64 } catch (java.lang.RuntimeException e) { 65 throw e; 66 } catch (java.rmi.RemoteException e) { 67 throw e; 68 } catch (java.lang.Exception e) { 69 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 70 } 71 } 72 73 public void commit(boolean $param_boolean_1) 75 throws java.rmi.RemoteException 76 { 77 try { 78 ref.invoke(this, $method_commit_1, new java.lang.Object [] {new java.lang.Boolean ($param_boolean_1)}, 2945961306823414787L); 79 } catch (java.lang.RuntimeException e) { 80 throw e; 81 } catch (java.rmi.RemoteException e) { 82 throw e; 83 } catch (java.lang.Exception e) { 84 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 85 } 86 } 87 88 public void commit_one_phase() 90 throws java.rmi.RemoteException 91 { 92 try { 93 ref.invoke(this, $method_commit_one_phase_2, null, -371926797834829192L); 94 } catch (java.lang.RuntimeException e) { 95 throw e; 96 } catch (java.rmi.RemoteException e) { 97 throw e; 98 } catch (java.lang.Exception e) { 99 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 100 } 101 } 102 103 public void forget() 105 throws java.rmi.RemoteException 106 { 107 try { 108 ref.invoke(this, $method_forget_3, null, -4650867798493072124L); 109 } catch (java.lang.RuntimeException e) { 110 throw e; 111 } catch (java.rmi.RemoteException e) { 112 throw e; 113 } catch (java.lang.Exception e) { 114 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 115 } 116 } 117 118 public org.objectweb.jotm.Coordinator get_coordinator() 120 throws java.rmi.RemoteException 121 { 122 try { 123 Object $result = ref.invoke(this, $method_get_coordinator_4, null, -2556463666917818919L); 124 return ((org.objectweb.jotm.Coordinator) $result); 125 } catch (java.lang.RuntimeException e) { 126 throw e; 127 } catch (java.rmi.RemoteException e) { 128 throw e; 129 } catch (java.lang.Exception e) { 130 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 131 } 132 } 133 134 public int get_status() 136 throws java.rmi.RemoteException 137 { 138 try { 139 Object $result = ref.invoke(this, $method_get_status_5, null, -3515893588298561604L); 140 return ((java.lang.Integer ) $result).intValue(); 141 } catch (java.lang.RuntimeException e) { 142 throw e; 143 } catch (java.rmi.RemoteException e) { 144 throw e; 145 } catch (java.lang.Exception e) { 146 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 147 } 148 } 149 150 public org.objectweb.jotm.Terminator get_terminator() 152 throws java.rmi.RemoteException 153 { 154 try { 155 Object $result = ref.invoke(this, $method_get_terminator_6, null, 6245030945652038599L); 156 return ((org.objectweb.jotm.Terminator) $result); 157 } catch (java.lang.RuntimeException e) { 158 throw e; 159 } catch (java.rmi.RemoteException e) { 160 throw e; 161 } catch (java.lang.Exception e) { 162 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 163 } 164 } 165 166 public java.lang.String get_transaction_name() 168 throws java.rmi.RemoteException 169 { 170 try { 171 Object $result = ref.invoke(this, $method_get_transaction_name_7, null, 2441324298584236377L); 172 return ((java.lang.String ) $result); 173 } catch (java.lang.RuntimeException e) { 174 throw e; 175 } catch (java.rmi.RemoteException e) { 176 throw e; 177 } catch (java.lang.Exception e) { 178 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 179 } 180 } 181 182 public boolean is_same_transaction(org.objectweb.jotm.Coordinator $param_Coordinator_1) 184 throws java.rmi.RemoteException 185 { 186 try { 187 Object $result = ref.invoke(this, $method_is_same_transaction_8, new java.lang.Object [] {$param_Coordinator_1}, -5310190759861196234L); 188 return ((java.lang.Boolean ) $result).booleanValue(); 189 } catch (java.lang.RuntimeException e) { 190 throw e; 191 } catch (java.rmi.RemoteException e) { 192 throw e; 193 } catch (java.lang.Exception e) { 194 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 195 } 196 } 197 198 public int prepare() 200 throws java.rmi.RemoteException 201 { 202 try { 203 Object $result = ref.invoke(this, $method_prepare_9, null, 8637559118677609209L); 204 return ((java.lang.Integer ) $result).intValue(); 205 } catch (java.lang.RuntimeException e) { 206 throw e; 207 } catch (java.rmi.RemoteException e) { 208 throw e; 209 } catch (java.lang.Exception e) { 210 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 211 } 212 } 213 214 public org.objectweb.jotm.RecoveryCoordinator register_resource(org.objectweb.jotm.Resource $param_Resource_1) 216 throws java.rmi.RemoteException 217 { 218 try { 219 Object $result = ref.invoke(this, $method_register_resource_10, new java.lang.Object [] {$param_Resource_1}, 19538403643173114L); 220 return ((org.objectweb.jotm.RecoveryCoordinator) $result); 221 } catch (java.lang.RuntimeException e) { 222 throw e; 223 } catch (java.rmi.RemoteException e) { 224 throw e; 225 } catch (java.lang.Exception e) { 226 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 227 } 228 } 229 230 public void register_synchronization(org.objectweb.jotm.RemoteSynchro $param_RemoteSynchro_1) 232 throws java.rmi.RemoteException 233 { 234 try { 235 ref.invoke(this, $method_register_synchronization_11, new java.lang.Object [] {$param_RemoteSynchro_1}, 5121809405887137951L); 236 } catch (java.lang.RuntimeException e) { 237 throw e; 238 } catch (java.rmi.RemoteException e) { 239 throw e; 240 } catch (java.lang.Exception e) { 241 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 242 } 243 } 244 245 public int replay_completion(org.objectweb.jotm.Resource $param_Resource_1) 247 throws java.rmi.RemoteException 248 { 249 try { 250 Object $result = ref.invoke(this, $method_replay_completion_12, new java.lang.Object [] {$param_Resource_1}, 4630294820823977130L); 251 return ((java.lang.Integer ) $result).intValue(); 252 } catch (java.lang.RuntimeException e) { 253 throw e; 254 } catch (java.rmi.RemoteException e) { 255 throw e; 256 } catch (java.lang.Exception e) { 257 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 258 } 259 } 260 261 public void rollback() 263 throws java.rmi.RemoteException 264 { 265 try { 266 ref.invoke(this, $method_rollback_13, null, -2202008398766919932L); 267 } catch (java.lang.RuntimeException e) { 268 throw e; 269 } catch (java.rmi.RemoteException e) { 270 throw e; 271 } catch (java.lang.Exception e) { 272 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 273 } 274 } 275 276 public void rollback_only() 278 throws java.rmi.RemoteException 279 { 280 try { 281 ref.invoke(this, $method_rollback_only_14, null, -2932638446068477232L); 282 } catch (java.lang.RuntimeException e) { 283 throw e; 284 } catch (java.rmi.RemoteException e) { 285 throw e; 286 } catch (java.lang.Exception e) { 287 throw new java.rmi.UnexpectedException ("undeclared checked exception", e); 288 } 289 } 290 } 291 | Popular Tags |