00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 package cast.examples.autogen;
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 public final class _WordServerAsComponentDelD extends Ice._ObjectDelD implements _WordServerAsComponentDel
00024 {
00025 public String
00026 getNewWord(java.util.Map<String, String> __ctx)
00027 throws IceInternal.LocalExceptionWrapper
00028 {
00029 final Ice.Current __current = new Ice.Current();
00030 __initCurrent(__current, "getNewWord", Ice.OperationMode.Normal, __ctx);
00031 final Ice.StringHolder __result = new Ice.StringHolder();
00032 IceInternal.Direct __direct = null;
00033 try
00034 {
00035 __direct = new IceInternal.Direct(__current)
00036 {
00037 public Ice.DispatchStatus run(Ice.Object __obj)
00038 {
00039 WordServerAsComponent __servant = null;
00040 try
00041 {
00042 __servant = (WordServerAsComponent)__obj;
00043 }
00044 catch(ClassCastException __ex)
00045 {
00046 throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
00047 }
00048 __result.value = __servant.getNewWord(__current);
00049 return Ice.DispatchStatus.DispatchOK;
00050 }
00051 };
00052 try
00053 {
00054 Ice.DispatchStatus __status = __direct.servant().__collocDispatch(__direct);
00055 if(__status == Ice.DispatchStatus.DispatchUserException)
00056 {
00057 __direct.throwUserException();
00058 }
00059 assert __status == Ice.DispatchStatus.DispatchOK;
00060 return __result.value;
00061 }
00062 finally
00063 {
00064 __direct.destroy();
00065 }
00066 }
00067 catch(Ice.SystemException __ex)
00068 {
00069 throw __ex;
00070 }
00071 catch(java.lang.Throwable __ex)
00072 {
00073 IceInternal.LocalExceptionWrapper.throwWrapper(__ex);
00074 }
00075 return __result.value;
00076 }
00077
00078 public void
00079 beat(java.util.Map<String, String> __ctx)
00080 throws IceInternal.LocalExceptionWrapper
00081 {
00082 final Ice.Current __current = new Ice.Current();
00083 __initCurrent(__current, "beat", Ice.OperationMode.Idempotent, __ctx);
00084 IceInternal.Direct __direct = null;
00085 try
00086 {
00087 __direct = new IceInternal.Direct(__current)
00088 {
00089 public Ice.DispatchStatus run(Ice.Object __obj)
00090 {
00091 WordServerAsComponent __servant = null;
00092 try
00093 {
00094 __servant = (WordServerAsComponent)__obj;
00095 }
00096 catch(ClassCastException __ex)
00097 {
00098 throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
00099 }
00100 __servant.beat(__current);
00101 return Ice.DispatchStatus.DispatchOK;
00102 }
00103 };
00104 try
00105 {
00106 Ice.DispatchStatus __status = __direct.servant().__collocDispatch(__direct);
00107 if(__status == Ice.DispatchStatus.DispatchUserException)
00108 {
00109 __direct.throwUserException();
00110 }
00111 assert __status == Ice.DispatchStatus.DispatchOK;
00112 }
00113 finally
00114 {
00115 __direct.destroy();
00116 }
00117 }
00118 catch(Ice.SystemException __ex)
00119 {
00120 throw __ex;
00121 }
00122 catch(java.lang.Throwable __ex)
00123 {
00124 IceInternal.LocalExceptionWrapper.throwWrapper(__ex);
00125 }
00126 }
00127
00128 public void
00129 configure(final java.util.Map<java.lang.String, java.lang.String> config, java.util.Map<String, String> __ctx)
00130 throws IceInternal.LocalExceptionWrapper
00131 {
00132 final Ice.Current __current = new Ice.Current();
00133 __initCurrent(__current, "configure", Ice.OperationMode.Normal, __ctx);
00134 IceInternal.Direct __direct = null;
00135 try
00136 {
00137 __direct = new IceInternal.Direct(__current)
00138 {
00139 public Ice.DispatchStatus run(Ice.Object __obj)
00140 {
00141 WordServerAsComponent __servant = null;
00142 try
00143 {
00144 __servant = (WordServerAsComponent)__obj;
00145 }
00146 catch(ClassCastException __ex)
00147 {
00148 throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
00149 }
00150 __servant.configure(config, __current);
00151 return Ice.DispatchStatus.DispatchOK;
00152 }
00153 };
00154 try
00155 {
00156 Ice.DispatchStatus __status = __direct.servant().__collocDispatch(__direct);
00157 if(__status == Ice.DispatchStatus.DispatchUserException)
00158 {
00159 __direct.throwUserException();
00160 }
00161 assert __status == Ice.DispatchStatus.DispatchOK;
00162 }
00163 finally
00164 {
00165 __direct.destroy();
00166 }
00167 }
00168 catch(Ice.SystemException __ex)
00169 {
00170 throw __ex;
00171 }
00172 catch(java.lang.Throwable __ex)
00173 {
00174 IceInternal.LocalExceptionWrapper.throwWrapper(__ex);
00175 }
00176 }
00177
00178 public void
00179 destroy(java.util.Map<String, String> __ctx)
00180 throws IceInternal.LocalExceptionWrapper
00181 {
00182 final Ice.Current __current = new Ice.Current();
00183 __initCurrent(__current, "destroy", Ice.OperationMode.Normal, __ctx);
00184 IceInternal.Direct __direct = null;
00185 try
00186 {
00187 __direct = new IceInternal.Direct(__current)
00188 {
00189 public Ice.DispatchStatus run(Ice.Object __obj)
00190 {
00191 WordServerAsComponent __servant = null;
00192 try
00193 {
00194 __servant = (WordServerAsComponent)__obj;
00195 }
00196 catch(ClassCastException __ex)
00197 {
00198 throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
00199 }
00200 __servant.destroy(__current);
00201 return Ice.DispatchStatus.DispatchOK;
00202 }
00203 };
00204 try
00205 {
00206 Ice.DispatchStatus __status = __direct.servant().__collocDispatch(__direct);
00207 if(__status == Ice.DispatchStatus.DispatchUserException)
00208 {
00209 __direct.throwUserException();
00210 }
00211 assert __status == Ice.DispatchStatus.DispatchOK;
00212 }
00213 finally
00214 {
00215 __direct.destroy();
00216 }
00217 }
00218 catch(Ice.SystemException __ex)
00219 {
00220 throw __ex;
00221 }
00222 catch(java.lang.Throwable __ex)
00223 {
00224 IceInternal.LocalExceptionWrapper.throwWrapper(__ex);
00225 }
00226 }
00227
00228 public String
00229 getID(java.util.Map<String, String> __ctx)
00230 throws IceInternal.LocalExceptionWrapper
00231 {
00232 final Ice.Current __current = new Ice.Current();
00233 __initCurrent(__current, "getID", Ice.OperationMode.Idempotent, __ctx);
00234 final Ice.StringHolder __result = new Ice.StringHolder();
00235 IceInternal.Direct __direct = null;
00236 try
00237 {
00238 __direct = new IceInternal.Direct(__current)
00239 {
00240 public Ice.DispatchStatus run(Ice.Object __obj)
00241 {
00242 WordServerAsComponent __servant = null;
00243 try
00244 {
00245 __servant = (WordServerAsComponent)__obj;
00246 }
00247 catch(ClassCastException __ex)
00248 {
00249 throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
00250 }
00251 __result.value = __servant.getID(__current);
00252 return Ice.DispatchStatus.DispatchOK;
00253 }
00254 };
00255 try
00256 {
00257 Ice.DispatchStatus __status = __direct.servant().__collocDispatch(__direct);
00258 if(__status == Ice.DispatchStatus.DispatchUserException)
00259 {
00260 __direct.throwUserException();
00261 }
00262 assert __status == Ice.DispatchStatus.DispatchOK;
00263 return __result.value;
00264 }
00265 finally
00266 {
00267 __direct.destroy();
00268 }
00269 }
00270 catch(Ice.SystemException __ex)
00271 {
00272 throw __ex;
00273 }
00274 catch(java.lang.Throwable __ex)
00275 {
00276 IceInternal.LocalExceptionWrapper.throwWrapper(__ex);
00277 }
00278 return __result.value;
00279 }
00280
00281 public void
00282 run(java.util.Map<String, String> __ctx)
00283 throws IceInternal.LocalExceptionWrapper
00284 {
00285 final Ice.Current __current = new Ice.Current();
00286 __initCurrent(__current, "run", Ice.OperationMode.Normal, __ctx);
00287 IceInternal.Direct __direct = null;
00288 try
00289 {
00290 __direct = new IceInternal.Direct(__current)
00291 {
00292 public Ice.DispatchStatus run(Ice.Object __obj)
00293 {
00294 WordServerAsComponent __servant = null;
00295 try
00296 {
00297 __servant = (WordServerAsComponent)__obj;
00298 }
00299 catch(ClassCastException __ex)
00300 {
00301 throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
00302 }
00303 __servant.run(__current);
00304 return Ice.DispatchStatus.DispatchOK;
00305 }
00306 };
00307 try
00308 {
00309 Ice.DispatchStatus __status = __direct.servant().__collocDispatch(__direct);
00310 if(__status == Ice.DispatchStatus.DispatchUserException)
00311 {
00312 __direct.throwUserException();
00313 }
00314 assert __status == Ice.DispatchStatus.DispatchOK;
00315 }
00316 finally
00317 {
00318 __direct.destroy();
00319 }
00320 }
00321 catch(Ice.SystemException __ex)
00322 {
00323 throw __ex;
00324 }
00325 catch(java.lang.Throwable __ex)
00326 {
00327 IceInternal.LocalExceptionWrapper.throwWrapper(__ex);
00328 }
00329 }
00330
00331 public void
00332 setComponentManager(final cast.interfaces.ComponentManagerPrx man, java.util.Map<String, String> __ctx)
00333 throws IceInternal.LocalExceptionWrapper
00334 {
00335 final Ice.Current __current = new Ice.Current();
00336 __initCurrent(__current, "setComponentManager", Ice.OperationMode.Normal, __ctx);
00337 IceInternal.Direct __direct = null;
00338 try
00339 {
00340 __direct = new IceInternal.Direct(__current)
00341 {
00342 public Ice.DispatchStatus run(Ice.Object __obj)
00343 {
00344 WordServerAsComponent __servant = null;
00345 try
00346 {
00347 __servant = (WordServerAsComponent)__obj;
00348 }
00349 catch(ClassCastException __ex)
00350 {
00351 throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
00352 }
00353 __servant.setComponentManager(man, __current);
00354 return Ice.DispatchStatus.DispatchOK;
00355 }
00356 };
00357 try
00358 {
00359 Ice.DispatchStatus __status = __direct.servant().__collocDispatch(__direct);
00360 if(__status == Ice.DispatchStatus.DispatchUserException)
00361 {
00362 __direct.throwUserException();
00363 }
00364 assert __status == Ice.DispatchStatus.DispatchOK;
00365 }
00366 finally
00367 {
00368 __direct.destroy();
00369 }
00370 }
00371 catch(Ice.SystemException __ex)
00372 {
00373 throw __ex;
00374 }
00375 catch(java.lang.Throwable __ex)
00376 {
00377 IceInternal.LocalExceptionWrapper.throwWrapper(__ex);
00378 }
00379 }
00380
00381 public void
00382 setID(final String id, java.util.Map<String, String> __ctx)
00383 throws IceInternal.LocalExceptionWrapper
00384 {
00385 final Ice.Current __current = new Ice.Current();
00386 __initCurrent(__current, "setID", Ice.OperationMode.Normal, __ctx);
00387 IceInternal.Direct __direct = null;
00388 try
00389 {
00390 __direct = new IceInternal.Direct(__current)
00391 {
00392 public Ice.DispatchStatus run(Ice.Object __obj)
00393 {
00394 WordServerAsComponent __servant = null;
00395 try
00396 {
00397 __servant = (WordServerAsComponent)__obj;
00398 }
00399 catch(ClassCastException __ex)
00400 {
00401 throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
00402 }
00403 __servant.setID(id, __current);
00404 return Ice.DispatchStatus.DispatchOK;
00405 }
00406 };
00407 try
00408 {
00409 Ice.DispatchStatus __status = __direct.servant().__collocDispatch(__direct);
00410 if(__status == Ice.DispatchStatus.DispatchUserException)
00411 {
00412 __direct.throwUserException();
00413 }
00414 assert __status == Ice.DispatchStatus.DispatchOK;
00415 }
00416 finally
00417 {
00418 __direct.destroy();
00419 }
00420 }
00421 catch(Ice.SystemException __ex)
00422 {
00423 throw __ex;
00424 }
00425 catch(java.lang.Throwable __ex)
00426 {
00427 IceInternal.LocalExceptionWrapper.throwWrapper(__ex);
00428 }
00429 }
00430
00431 public void
00432 setTimeServer(final cast.interfaces.TimeServerPrx ts, java.util.Map<String, String> __ctx)
00433 throws IceInternal.LocalExceptionWrapper
00434 {
00435 final Ice.Current __current = new Ice.Current();
00436 __initCurrent(__current, "setTimeServer", Ice.OperationMode.Normal, __ctx);
00437 IceInternal.Direct __direct = null;
00438 try
00439 {
00440 __direct = new IceInternal.Direct(__current)
00441 {
00442 public Ice.DispatchStatus run(Ice.Object __obj)
00443 {
00444 WordServerAsComponent __servant = null;
00445 try
00446 {
00447 __servant = (WordServerAsComponent)__obj;
00448 }
00449 catch(ClassCastException __ex)
00450 {
00451 throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
00452 }
00453 __servant.setTimeServer(ts, __current);
00454 return Ice.DispatchStatus.DispatchOK;
00455 }
00456 };
00457 try
00458 {
00459 Ice.DispatchStatus __status = __direct.servant().__collocDispatch(__direct);
00460 if(__status == Ice.DispatchStatus.DispatchUserException)
00461 {
00462 __direct.throwUserException();
00463 }
00464 assert __status == Ice.DispatchStatus.DispatchOK;
00465 }
00466 finally
00467 {
00468 __direct.destroy();
00469 }
00470 }
00471 catch(Ice.SystemException __ex)
00472 {
00473 throw __ex;
00474 }
00475 catch(java.lang.Throwable __ex)
00476 {
00477 IceInternal.LocalExceptionWrapper.throwWrapper(__ex);
00478 }
00479 }
00480
00481 public void
00482 start(java.util.Map<String, String> __ctx)
00483 throws IceInternal.LocalExceptionWrapper
00484 {
00485 final Ice.Current __current = new Ice.Current();
00486 __initCurrent(__current, "start", Ice.OperationMode.Normal, __ctx);
00487 IceInternal.Direct __direct = null;
00488 try
00489 {
00490 __direct = new IceInternal.Direct(__current)
00491 {
00492 public Ice.DispatchStatus run(Ice.Object __obj)
00493 {
00494 WordServerAsComponent __servant = null;
00495 try
00496 {
00497 __servant = (WordServerAsComponent)__obj;
00498 }
00499 catch(ClassCastException __ex)
00500 {
00501 throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
00502 }
00503 __servant.start(__current);
00504 return Ice.DispatchStatus.DispatchOK;
00505 }
00506 };
00507 try
00508 {
00509 Ice.DispatchStatus __status = __direct.servant().__collocDispatch(__direct);
00510 if(__status == Ice.DispatchStatus.DispatchUserException)
00511 {
00512 __direct.throwUserException();
00513 }
00514 assert __status == Ice.DispatchStatus.DispatchOK;
00515 }
00516 finally
00517 {
00518 __direct.destroy();
00519 }
00520 }
00521 catch(Ice.SystemException __ex)
00522 {
00523 throw __ex;
00524 }
00525 catch(java.lang.Throwable __ex)
00526 {
00527 IceInternal.LocalExceptionWrapper.throwWrapper(__ex);
00528 }
00529 }
00530
00531 public void
00532 stop(java.util.Map<String, String> __ctx)
00533 throws IceInternal.LocalExceptionWrapper
00534 {
00535 final Ice.Current __current = new Ice.Current();
00536 __initCurrent(__current, "stop", Ice.OperationMode.Normal, __ctx);
00537 IceInternal.Direct __direct = null;
00538 try
00539 {
00540 __direct = new IceInternal.Direct(__current)
00541 {
00542 public Ice.DispatchStatus run(Ice.Object __obj)
00543 {
00544 WordServerAsComponent __servant = null;
00545 try
00546 {
00547 __servant = (WordServerAsComponent)__obj;
00548 }
00549 catch(ClassCastException __ex)
00550 {
00551 throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
00552 }
00553 __servant.stop(__current);
00554 return Ice.DispatchStatus.DispatchOK;
00555 }
00556 };
00557 try
00558 {
00559 Ice.DispatchStatus __status = __direct.servant().__collocDispatch(__direct);
00560 if(__status == Ice.DispatchStatus.DispatchUserException)
00561 {
00562 __direct.throwUserException();
00563 }
00564 assert __status == Ice.DispatchStatus.DispatchOK;
00565 }
00566 finally
00567 {
00568 __direct.destroy();
00569 }
00570 }
00571 catch(Ice.SystemException __ex)
00572 {
00573 throw __ex;
00574 }
00575 catch(java.lang.Throwable __ex)
00576 {
00577 IceInternal.LocalExceptionWrapper.throwWrapper(__ex);
00578 }
00579 }
00580 }