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
00026 public final class WordServerAsComponentPrxHelper extends Ice.ObjectPrxHelperBase implements WordServerAsComponentPrx
00027 {
00028 public String
00029 getNewWord()
00030 {
00031 return getNewWord(null, false);
00032 }
00033
00034 public String
00035 getNewWord(java.util.Map<String, String> __ctx)
00036 {
00037 return getNewWord(__ctx, true);
00038 }
00039
00040 private String
00041 getNewWord(java.util.Map<String, String> __ctx, boolean __explicitCtx)
00042 {
00043 if(__explicitCtx && __ctx == null)
00044 {
00045 __ctx = _emptyContext;
00046 }
00047 int __cnt = 0;
00048 while(true)
00049 {
00050 Ice._ObjectDel __delBase = null;
00051 try
00052 {
00053 __checkTwowayOnly("getNewWord");
00054 __delBase = __getDelegate(false);
00055 _WordServerAsComponentDel __del = (_WordServerAsComponentDel)__delBase;
00056 return __del.getNewWord(__ctx);
00057 }
00058 catch(IceInternal.LocalExceptionWrapper __ex)
00059 {
00060 __handleExceptionWrapper(__delBase, __ex);
00061 }
00062 catch(Ice.LocalException __ex)
00063 {
00064 __cnt = __handleException(__delBase, __ex, null, __cnt);
00065 }
00066 }
00067 }
00068
00069 private static final String __getNewWord_name = "getNewWord";
00070
00071 public Ice.AsyncResult begin_getNewWord()
00072 {
00073 return begin_getNewWord(null, false, null);
00074 }
00075
00076 public Ice.AsyncResult begin_getNewWord(java.util.Map<String, String> __ctx)
00077 {
00078 return begin_getNewWord(__ctx, true, null);
00079 }
00080
00081 public Ice.AsyncResult begin_getNewWord(Ice.Callback __cb)
00082 {
00083 return begin_getNewWord(null, false, __cb);
00084 }
00085
00086 public Ice.AsyncResult begin_getNewWord(java.util.Map<String, String> __ctx, Ice.Callback __cb)
00087 {
00088 return begin_getNewWord(__ctx, true, __cb);
00089 }
00090
00091 public Ice.AsyncResult begin_getNewWord(Callback_WordServerAsComponent_getNewWord __cb)
00092 {
00093 return begin_getNewWord(null, false, __cb);
00094 }
00095
00096 public Ice.AsyncResult begin_getNewWord(java.util.Map<String, String> __ctx, Callback_WordServerAsComponent_getNewWord __cb)
00097 {
00098 return begin_getNewWord(__ctx, true, __cb);
00099 }
00100
00101 private Ice.AsyncResult begin_getNewWord(java.util.Map<String, String> __ctx, boolean __explicitCtx, IceInternal.CallbackBase __cb)
00102 {
00103 __checkAsyncTwowayOnly(__getNewWord_name);
00104 IceInternal.OutgoingAsync __result = new IceInternal.OutgoingAsync(this, __getNewWord_name, __cb);
00105 try
00106 {
00107 __result.__prepare(__getNewWord_name, Ice.OperationMode.Normal, __ctx, __explicitCtx);
00108 IceInternal.BasicStream __os = __result.__os();
00109 __os.endWriteEncaps();
00110 __result.__send(true);
00111 }
00112 catch(Ice.LocalException __ex)
00113 {
00114 __result.__exceptionAsync(__ex);
00115 }
00116 return __result;
00117 }
00118
00119 public String end_getNewWord(Ice.AsyncResult __result)
00120 {
00121 Ice.AsyncResult.__check(__result, this, __getNewWord_name);
00122 if(!__result.__wait())
00123 {
00124 try
00125 {
00126 __result.__throwUserException();
00127 }
00128 catch(Ice.UserException __ex)
00129 {
00130 throw new Ice.UnknownUserException(__ex.ice_name());
00131 }
00132 }
00133 String __ret;
00134 IceInternal.BasicStream __is = __result.__is();
00135 __is.startReadEncaps();
00136 __ret = __is.readString();
00137 __is.endReadEncaps();
00138 return __ret;
00139 }
00140
00141 public void
00142 beat()
00143 {
00144 beat(null, false);
00145 }
00146
00147 public void
00148 beat(java.util.Map<String, String> __ctx)
00149 {
00150 beat(__ctx, true);
00151 }
00152
00153 private void
00154 beat(java.util.Map<String, String> __ctx, boolean __explicitCtx)
00155 {
00156 if(__explicitCtx && __ctx == null)
00157 {
00158 __ctx = _emptyContext;
00159 }
00160 int __cnt = 0;
00161 while(true)
00162 {
00163 Ice._ObjectDel __delBase = null;
00164 try
00165 {
00166 __delBase = __getDelegate(false);
00167 _WordServerAsComponentDel __del = (_WordServerAsComponentDel)__delBase;
00168 __del.beat(__ctx);
00169 return;
00170 }
00171 catch(IceInternal.LocalExceptionWrapper __ex)
00172 {
00173 __cnt = __handleExceptionWrapperRelaxed(__delBase, __ex, null, __cnt);
00174 }
00175 catch(Ice.LocalException __ex)
00176 {
00177 __cnt = __handleException(__delBase, __ex, null, __cnt);
00178 }
00179 }
00180 }
00181
00182 private static final String __beat_name = "beat";
00183
00184 public Ice.AsyncResult begin_beat()
00185 {
00186 return begin_beat(null, false, null);
00187 }
00188
00189 public Ice.AsyncResult begin_beat(java.util.Map<String, String> __ctx)
00190 {
00191 return begin_beat(__ctx, true, null);
00192 }
00193
00194 public Ice.AsyncResult begin_beat(Ice.Callback __cb)
00195 {
00196 return begin_beat(null, false, __cb);
00197 }
00198
00199 public Ice.AsyncResult begin_beat(java.util.Map<String, String> __ctx, Ice.Callback __cb)
00200 {
00201 return begin_beat(__ctx, true, __cb);
00202 }
00203
00204 public Ice.AsyncResult begin_beat(cast.interfaces.Callback_CASTComponent_beat __cb)
00205 {
00206 return begin_beat(null, false, __cb);
00207 }
00208
00209 public Ice.AsyncResult begin_beat(java.util.Map<String, String> __ctx, cast.interfaces.Callback_CASTComponent_beat __cb)
00210 {
00211 return begin_beat(__ctx, true, __cb);
00212 }
00213
00214 private Ice.AsyncResult begin_beat(java.util.Map<String, String> __ctx, boolean __explicitCtx, IceInternal.CallbackBase __cb)
00215 {
00216 IceInternal.OutgoingAsync __result = new IceInternal.OutgoingAsync(this, __beat_name, __cb);
00217 try
00218 {
00219 __result.__prepare(__beat_name, Ice.OperationMode.Idempotent, __ctx, __explicitCtx);
00220 IceInternal.BasicStream __os = __result.__os();
00221 __os.endWriteEncaps();
00222 __result.__send(true);
00223 }
00224 catch(Ice.LocalException __ex)
00225 {
00226 __result.__exceptionAsync(__ex);
00227 }
00228 return __result;
00229 }
00230
00231 public void end_beat(Ice.AsyncResult __result)
00232 {
00233 __end(__result, __beat_name);
00234 }
00235
00236 public void
00237 configure(java.util.Map<java.lang.String, java.lang.String> config)
00238 {
00239 configure(config, null, false);
00240 }
00241
00242 public void
00243 configure(java.util.Map<java.lang.String, java.lang.String> config, java.util.Map<String, String> __ctx)
00244 {
00245 configure(config, __ctx, true);
00246 }
00247
00248 private void
00249 configure(java.util.Map<java.lang.String, java.lang.String> config, java.util.Map<String, String> __ctx, boolean __explicitCtx)
00250 {
00251 if(__explicitCtx && __ctx == null)
00252 {
00253 __ctx = _emptyContext;
00254 }
00255 int __cnt = 0;
00256 while(true)
00257 {
00258 Ice._ObjectDel __delBase = null;
00259 try
00260 {
00261 __delBase = __getDelegate(false);
00262 _WordServerAsComponentDel __del = (_WordServerAsComponentDel)__delBase;
00263 __del.configure(config, __ctx);
00264 return;
00265 }
00266 catch(IceInternal.LocalExceptionWrapper __ex)
00267 {
00268 __handleExceptionWrapper(__delBase, __ex);
00269 }
00270 catch(Ice.LocalException __ex)
00271 {
00272 __cnt = __handleException(__delBase, __ex, null, __cnt);
00273 }
00274 }
00275 }
00276
00277 private static final String __configure_name = "configure";
00278
00279 public Ice.AsyncResult begin_configure(java.util.Map<java.lang.String, java.lang.String> config)
00280 {
00281 return begin_configure(config, null, false, null);
00282 }
00283
00284 public Ice.AsyncResult begin_configure(java.util.Map<java.lang.String, java.lang.String> config, java.util.Map<String, String> __ctx)
00285 {
00286 return begin_configure(config, __ctx, true, null);
00287 }
00288
00289 public Ice.AsyncResult begin_configure(java.util.Map<java.lang.String, java.lang.String> config, Ice.Callback __cb)
00290 {
00291 return begin_configure(config, null, false, __cb);
00292 }
00293
00294 public Ice.AsyncResult begin_configure(java.util.Map<java.lang.String, java.lang.String> config, java.util.Map<String, String> __ctx, Ice.Callback __cb)
00295 {
00296 return begin_configure(config, __ctx, true, __cb);
00297 }
00298
00299 public Ice.AsyncResult begin_configure(java.util.Map<java.lang.String, java.lang.String> config, cast.interfaces.Callback_CASTComponent_configure __cb)
00300 {
00301 return begin_configure(config, null, false, __cb);
00302 }
00303
00304 public Ice.AsyncResult begin_configure(java.util.Map<java.lang.String, java.lang.String> config, java.util.Map<String, String> __ctx, cast.interfaces.Callback_CASTComponent_configure __cb)
00305 {
00306 return begin_configure(config, __ctx, true, __cb);
00307 }
00308
00309 private Ice.AsyncResult begin_configure(java.util.Map<java.lang.String, java.lang.String> config, java.util.Map<String, String> __ctx, boolean __explicitCtx, IceInternal.CallbackBase __cb)
00310 {
00311 IceInternal.OutgoingAsync __result = new IceInternal.OutgoingAsync(this, __configure_name, __cb);
00312 try
00313 {
00314 __result.__prepare(__configure_name, Ice.OperationMode.Normal, __ctx, __explicitCtx);
00315 IceInternal.BasicStream __os = __result.__os();
00316 cast.cdl.StringMapHelper.write(__os, config);
00317 __os.endWriteEncaps();
00318 __result.__send(true);
00319 }
00320 catch(Ice.LocalException __ex)
00321 {
00322 __result.__exceptionAsync(__ex);
00323 }
00324 return __result;
00325 }
00326
00327 public void end_configure(Ice.AsyncResult __result)
00328 {
00329 __end(__result, __configure_name);
00330 }
00331
00335 public void
00336 destroy()
00337 {
00338 destroy(null, false);
00339 }
00340
00345 public void
00346 destroy(java.util.Map<String, String> __ctx)
00347 {
00348 destroy(__ctx, true);
00349 }
00350
00351 private void
00352 destroy(java.util.Map<String, String> __ctx, boolean __explicitCtx)
00353 {
00354 if(__explicitCtx && __ctx == null)
00355 {
00356 __ctx = _emptyContext;
00357 }
00358 int __cnt = 0;
00359 while(true)
00360 {
00361 Ice._ObjectDel __delBase = null;
00362 try
00363 {
00364 __delBase = __getDelegate(false);
00365 _WordServerAsComponentDel __del = (_WordServerAsComponentDel)__delBase;
00366 __del.destroy(__ctx);
00367 return;
00368 }
00369 catch(IceInternal.LocalExceptionWrapper __ex)
00370 {
00371 __handleExceptionWrapper(__delBase, __ex);
00372 }
00373 catch(Ice.LocalException __ex)
00374 {
00375 __cnt = __handleException(__delBase, __ex, null, __cnt);
00376 }
00377 }
00378 }
00379
00380 private static final String __destroy_name = "destroy";
00381
00386 public Ice.AsyncResult begin_destroy()
00387 {
00388 return begin_destroy(null, false, null);
00389 }
00390
00396 public Ice.AsyncResult begin_destroy(java.util.Map<String, String> __ctx)
00397 {
00398 return begin_destroy(__ctx, true, null);
00399 }
00400
00405 public Ice.AsyncResult begin_destroy(Ice.Callback __cb)
00406 {
00407 return begin_destroy(null, false, __cb);
00408 }
00409
00415 public Ice.AsyncResult begin_destroy(java.util.Map<String, String> __ctx, Ice.Callback __cb)
00416 {
00417 return begin_destroy(__ctx, true, __cb);
00418 }
00419
00424 public Ice.AsyncResult begin_destroy(cast.interfaces.Callback_CASTComponent_destroy __cb)
00425 {
00426 return begin_destroy(null, false, __cb);
00427 }
00428
00434 public Ice.AsyncResult begin_destroy(java.util.Map<String, String> __ctx, cast.interfaces.Callback_CASTComponent_destroy __cb)
00435 {
00436 return begin_destroy(__ctx, true, __cb);
00437 }
00438
00439 private Ice.AsyncResult begin_destroy(java.util.Map<String, String> __ctx, boolean __explicitCtx, IceInternal.CallbackBase __cb)
00440 {
00441 IceInternal.OutgoingAsync __result = new IceInternal.OutgoingAsync(this, __destroy_name, __cb);
00442 try
00443 {
00444 __result.__prepare(__destroy_name, Ice.OperationMode.Normal, __ctx, __explicitCtx);
00445 IceInternal.BasicStream __os = __result.__os();
00446 __os.endWriteEncaps();
00447 __result.__send(true);
00448 }
00449 catch(Ice.LocalException __ex)
00450 {
00451 __result.__exceptionAsync(__ex);
00452 }
00453 return __result;
00454 }
00455
00460 public void end_destroy(Ice.AsyncResult __result)
00461 {
00462 __end(__result, __destroy_name);
00463 }
00464
00468 public String
00469 getID()
00470 {
00471 return getID(null, false);
00472 }
00473
00478 public String
00479 getID(java.util.Map<String, String> __ctx)
00480 {
00481 return getID(__ctx, true);
00482 }
00483
00484 private String
00485 getID(java.util.Map<String, String> __ctx, boolean __explicitCtx)
00486 {
00487 if(__explicitCtx && __ctx == null)
00488 {
00489 __ctx = _emptyContext;
00490 }
00491 int __cnt = 0;
00492 while(true)
00493 {
00494 Ice._ObjectDel __delBase = null;
00495 try
00496 {
00497 __checkTwowayOnly("getID");
00498 __delBase = __getDelegate(false);
00499 _WordServerAsComponentDel __del = (_WordServerAsComponentDel)__delBase;
00500 return __del.getID(__ctx);
00501 }
00502 catch(IceInternal.LocalExceptionWrapper __ex)
00503 {
00504 __cnt = __handleExceptionWrapperRelaxed(__delBase, __ex, null, __cnt);
00505 }
00506 catch(Ice.LocalException __ex)
00507 {
00508 __cnt = __handleException(__delBase, __ex, null, __cnt);
00509 }
00510 }
00511 }
00512
00513 private static final String __getID_name = "getID";
00514
00519 public Ice.AsyncResult begin_getID()
00520 {
00521 return begin_getID(null, false, null);
00522 }
00523
00529 public Ice.AsyncResult begin_getID(java.util.Map<String, String> __ctx)
00530 {
00531 return begin_getID(__ctx, true, null);
00532 }
00533
00538 public Ice.AsyncResult begin_getID(Ice.Callback __cb)
00539 {
00540 return begin_getID(null, false, __cb);
00541 }
00542
00548 public Ice.AsyncResult begin_getID(java.util.Map<String, String> __ctx, Ice.Callback __cb)
00549 {
00550 return begin_getID(__ctx, true, __cb);
00551 }
00552
00557 public Ice.AsyncResult begin_getID(cast.interfaces.Callback_CASTComponent_getID __cb)
00558 {
00559 return begin_getID(null, false, __cb);
00560 }
00561
00567 public Ice.AsyncResult begin_getID(java.util.Map<String, String> __ctx, cast.interfaces.Callback_CASTComponent_getID __cb)
00568 {
00569 return begin_getID(__ctx, true, __cb);
00570 }
00571
00572 private Ice.AsyncResult begin_getID(java.util.Map<String, String> __ctx, boolean __explicitCtx, IceInternal.CallbackBase __cb)
00573 {
00574 __checkAsyncTwowayOnly(__getID_name);
00575 IceInternal.OutgoingAsync __result = new IceInternal.OutgoingAsync(this, __getID_name, __cb);
00576 try
00577 {
00578 __result.__prepare(__getID_name, Ice.OperationMode.Idempotent, __ctx, __explicitCtx);
00579 IceInternal.BasicStream __os = __result.__os();
00580 __os.endWriteEncaps();
00581 __result.__send(true);
00582 }
00583 catch(Ice.LocalException __ex)
00584 {
00585 __result.__exceptionAsync(__ex);
00586 }
00587 return __result;
00588 }
00589
00594 public String end_getID(Ice.AsyncResult __result)
00595 {
00596 Ice.AsyncResult.__check(__result, this, __getID_name);
00597 if(!__result.__wait())
00598 {
00599 try
00600 {
00601 __result.__throwUserException();
00602 }
00603 catch(Ice.UserException __ex)
00604 {
00605 throw new Ice.UnknownUserException(__ex.ice_name());
00606 }
00607 }
00608 String __ret;
00609 IceInternal.BasicStream __is = __result.__is();
00610 __is.startReadEncaps();
00611 __ret = __is.readString();
00612 __is.endReadEncaps();
00613 return __ret;
00614 }
00615
00616 public void
00617 run()
00618 {
00619 run(null, false);
00620 }
00621
00622 public void
00623 run(java.util.Map<String, String> __ctx)
00624 {
00625 run(__ctx, true);
00626 }
00627
00628 private void
00629 run(java.util.Map<String, String> __ctx, boolean __explicitCtx)
00630 {
00631 if(__explicitCtx && __ctx == null)
00632 {
00633 __ctx = _emptyContext;
00634 }
00635 int __cnt = 0;
00636 while(true)
00637 {
00638 Ice._ObjectDel __delBase = null;
00639 try
00640 {
00641 __delBase = __getDelegate(false);
00642 _WordServerAsComponentDel __del = (_WordServerAsComponentDel)__delBase;
00643 __del.run(__ctx);
00644 return;
00645 }
00646 catch(IceInternal.LocalExceptionWrapper __ex)
00647 {
00648 __handleExceptionWrapper(__delBase, __ex);
00649 }
00650 catch(Ice.LocalException __ex)
00651 {
00652 __cnt = __handleException(__delBase, __ex, null, __cnt);
00653 }
00654 }
00655 }
00656
00657 private static final String __run_name = "run";
00658
00659 public Ice.AsyncResult begin_run()
00660 {
00661 return begin_run(null, false, null);
00662 }
00663
00664 public Ice.AsyncResult begin_run(java.util.Map<String, String> __ctx)
00665 {
00666 return begin_run(__ctx, true, null);
00667 }
00668
00669 public Ice.AsyncResult begin_run(Ice.Callback __cb)
00670 {
00671 return begin_run(null, false, __cb);
00672 }
00673
00674 public Ice.AsyncResult begin_run(java.util.Map<String, String> __ctx, Ice.Callback __cb)
00675 {
00676 return begin_run(__ctx, true, __cb);
00677 }
00678
00679 public Ice.AsyncResult begin_run(cast.interfaces.Callback_CASTComponent_run __cb)
00680 {
00681 return begin_run(null, false, __cb);
00682 }
00683
00684 public Ice.AsyncResult begin_run(java.util.Map<String, String> __ctx, cast.interfaces.Callback_CASTComponent_run __cb)
00685 {
00686 return begin_run(__ctx, true, __cb);
00687 }
00688
00689 private Ice.AsyncResult begin_run(java.util.Map<String, String> __ctx, boolean __explicitCtx, IceInternal.CallbackBase __cb)
00690 {
00691 IceInternal.OutgoingAsync __result = new IceInternal.OutgoingAsync(this, __run_name, __cb);
00692 try
00693 {
00694 __result.__prepare(__run_name, Ice.OperationMode.Normal, __ctx, __explicitCtx);
00695 IceInternal.BasicStream __os = __result.__os();
00696 __os.endWriteEncaps();
00697 __result.__send(true);
00698 }
00699 catch(Ice.LocalException __ex)
00700 {
00701 __result.__exceptionAsync(__ex);
00702 }
00703 return __result;
00704 }
00705
00706 public void end_run(Ice.AsyncResult __result)
00707 {
00708 __end(__result, __run_name);
00709 }
00710
00711 public void
00712 setComponentManager(cast.interfaces.ComponentManagerPrx man)
00713 {
00714 setComponentManager(man, null, false);
00715 }
00716
00717 public void
00718 setComponentManager(cast.interfaces.ComponentManagerPrx man, java.util.Map<String, String> __ctx)
00719 {
00720 setComponentManager(man, __ctx, true);
00721 }
00722
00723 private void
00724 setComponentManager(cast.interfaces.ComponentManagerPrx man, java.util.Map<String, String> __ctx, boolean __explicitCtx)
00725 {
00726 if(__explicitCtx && __ctx == null)
00727 {
00728 __ctx = _emptyContext;
00729 }
00730 int __cnt = 0;
00731 while(true)
00732 {
00733 Ice._ObjectDel __delBase = null;
00734 try
00735 {
00736 __delBase = __getDelegate(false);
00737 _WordServerAsComponentDel __del = (_WordServerAsComponentDel)__delBase;
00738 __del.setComponentManager(man, __ctx);
00739 return;
00740 }
00741 catch(IceInternal.LocalExceptionWrapper __ex)
00742 {
00743 __handleExceptionWrapper(__delBase, __ex);
00744 }
00745 catch(Ice.LocalException __ex)
00746 {
00747 __cnt = __handleException(__delBase, __ex, null, __cnt);
00748 }
00749 }
00750 }
00751
00752 private static final String __setComponentManager_name = "setComponentManager";
00753
00754 public Ice.AsyncResult begin_setComponentManager(cast.interfaces.ComponentManagerPrx man)
00755 {
00756 return begin_setComponentManager(man, null, false, null);
00757 }
00758
00759 public Ice.AsyncResult begin_setComponentManager(cast.interfaces.ComponentManagerPrx man, java.util.Map<String, String> __ctx)
00760 {
00761 return begin_setComponentManager(man, __ctx, true, null);
00762 }
00763
00764 public Ice.AsyncResult begin_setComponentManager(cast.interfaces.ComponentManagerPrx man, Ice.Callback __cb)
00765 {
00766 return begin_setComponentManager(man, null, false, __cb);
00767 }
00768
00769 public Ice.AsyncResult begin_setComponentManager(cast.interfaces.ComponentManagerPrx man, java.util.Map<String, String> __ctx, Ice.Callback __cb)
00770 {
00771 return begin_setComponentManager(man, __ctx, true, __cb);
00772 }
00773
00774 public Ice.AsyncResult begin_setComponentManager(cast.interfaces.ComponentManagerPrx man, cast.interfaces.Callback_CASTComponent_setComponentManager __cb)
00775 {
00776 return begin_setComponentManager(man, null, false, __cb);
00777 }
00778
00779 public Ice.AsyncResult begin_setComponentManager(cast.interfaces.ComponentManagerPrx man, java.util.Map<String, String> __ctx, cast.interfaces.Callback_CASTComponent_setComponentManager __cb)
00780 {
00781 return begin_setComponentManager(man, __ctx, true, __cb);
00782 }
00783
00784 private Ice.AsyncResult begin_setComponentManager(cast.interfaces.ComponentManagerPrx man, java.util.Map<String, String> __ctx, boolean __explicitCtx, IceInternal.CallbackBase __cb)
00785 {
00786 IceInternal.OutgoingAsync __result = new IceInternal.OutgoingAsync(this, __setComponentManager_name, __cb);
00787 try
00788 {
00789 __result.__prepare(__setComponentManager_name, Ice.OperationMode.Normal, __ctx, __explicitCtx);
00790 IceInternal.BasicStream __os = __result.__os();
00791 cast.interfaces.ComponentManagerPrxHelper.__write(__os, man);
00792 __os.endWriteEncaps();
00793 __result.__send(true);
00794 }
00795 catch(Ice.LocalException __ex)
00796 {
00797 __result.__exceptionAsync(__ex);
00798 }
00799 return __result;
00800 }
00801
00802 public void end_setComponentManager(Ice.AsyncResult __result)
00803 {
00804 __end(__result, __setComponentManager_name);
00805 }
00806
00807 public void
00808 setID(String id)
00809 {
00810 setID(id, null, false);
00811 }
00812
00813 public void
00814 setID(String id, java.util.Map<String, String> __ctx)
00815 {
00816 setID(id, __ctx, true);
00817 }
00818
00819 private void
00820 setID(String id, java.util.Map<String, String> __ctx, boolean __explicitCtx)
00821 {
00822 if(__explicitCtx && __ctx == null)
00823 {
00824 __ctx = _emptyContext;
00825 }
00826 int __cnt = 0;
00827 while(true)
00828 {
00829 Ice._ObjectDel __delBase = null;
00830 try
00831 {
00832 __delBase = __getDelegate(false);
00833 _WordServerAsComponentDel __del = (_WordServerAsComponentDel)__delBase;
00834 __del.setID(id, __ctx);
00835 return;
00836 }
00837 catch(IceInternal.LocalExceptionWrapper __ex)
00838 {
00839 __handleExceptionWrapper(__delBase, __ex);
00840 }
00841 catch(Ice.LocalException __ex)
00842 {
00843 __cnt = __handleException(__delBase, __ex, null, __cnt);
00844 }
00845 }
00846 }
00847
00848 private static final String __setID_name = "setID";
00849
00850 public Ice.AsyncResult begin_setID(String id)
00851 {
00852 return begin_setID(id, null, false, null);
00853 }
00854
00855 public Ice.AsyncResult begin_setID(String id, java.util.Map<String, String> __ctx)
00856 {
00857 return begin_setID(id, __ctx, true, null);
00858 }
00859
00860 public Ice.AsyncResult begin_setID(String id, Ice.Callback __cb)
00861 {
00862 return begin_setID(id, null, false, __cb);
00863 }
00864
00865 public Ice.AsyncResult begin_setID(String id, java.util.Map<String, String> __ctx, Ice.Callback __cb)
00866 {
00867 return begin_setID(id, __ctx, true, __cb);
00868 }
00869
00870 public Ice.AsyncResult begin_setID(String id, cast.interfaces.Callback_CASTComponent_setID __cb)
00871 {
00872 return begin_setID(id, null, false, __cb);
00873 }
00874
00875 public Ice.AsyncResult begin_setID(String id, java.util.Map<String, String> __ctx, cast.interfaces.Callback_CASTComponent_setID __cb)
00876 {
00877 return begin_setID(id, __ctx, true, __cb);
00878 }
00879
00880 private Ice.AsyncResult begin_setID(String id, java.util.Map<String, String> __ctx, boolean __explicitCtx, IceInternal.CallbackBase __cb)
00881 {
00882 IceInternal.OutgoingAsync __result = new IceInternal.OutgoingAsync(this, __setID_name, __cb);
00883 try
00884 {
00885 __result.__prepare(__setID_name, Ice.OperationMode.Normal, __ctx, __explicitCtx);
00886 IceInternal.BasicStream __os = __result.__os();
00887 __os.writeString(id);
00888 __os.endWriteEncaps();
00889 __result.__send(true);
00890 }
00891 catch(Ice.LocalException __ex)
00892 {
00893 __result.__exceptionAsync(__ex);
00894 }
00895 return __result;
00896 }
00897
00898 public void end_setID(Ice.AsyncResult __result)
00899 {
00900 __end(__result, __setID_name);
00901 }
00902
00903 public void
00904 setTimeServer(cast.interfaces.TimeServerPrx ts)
00905 {
00906 setTimeServer(ts, null, false);
00907 }
00908
00909 public void
00910 setTimeServer(cast.interfaces.TimeServerPrx ts, java.util.Map<String, String> __ctx)
00911 {
00912 setTimeServer(ts, __ctx, true);
00913 }
00914
00915 private void
00916 setTimeServer(cast.interfaces.TimeServerPrx ts, java.util.Map<String, String> __ctx, boolean __explicitCtx)
00917 {
00918 if(__explicitCtx && __ctx == null)
00919 {
00920 __ctx = _emptyContext;
00921 }
00922 int __cnt = 0;
00923 while(true)
00924 {
00925 Ice._ObjectDel __delBase = null;
00926 try
00927 {
00928 __delBase = __getDelegate(false);
00929 _WordServerAsComponentDel __del = (_WordServerAsComponentDel)__delBase;
00930 __del.setTimeServer(ts, __ctx);
00931 return;
00932 }
00933 catch(IceInternal.LocalExceptionWrapper __ex)
00934 {
00935 __handleExceptionWrapper(__delBase, __ex);
00936 }
00937 catch(Ice.LocalException __ex)
00938 {
00939 __cnt = __handleException(__delBase, __ex, null, __cnt);
00940 }
00941 }
00942 }
00943
00944 private static final String __setTimeServer_name = "setTimeServer";
00945
00946 public Ice.AsyncResult begin_setTimeServer(cast.interfaces.TimeServerPrx ts)
00947 {
00948 return begin_setTimeServer(ts, null, false, null);
00949 }
00950
00951 public Ice.AsyncResult begin_setTimeServer(cast.interfaces.TimeServerPrx ts, java.util.Map<String, String> __ctx)
00952 {
00953 return begin_setTimeServer(ts, __ctx, true, null);
00954 }
00955
00956 public Ice.AsyncResult begin_setTimeServer(cast.interfaces.TimeServerPrx ts, Ice.Callback __cb)
00957 {
00958 return begin_setTimeServer(ts, null, false, __cb);
00959 }
00960
00961 public Ice.AsyncResult begin_setTimeServer(cast.interfaces.TimeServerPrx ts, java.util.Map<String, String> __ctx, Ice.Callback __cb)
00962 {
00963 return begin_setTimeServer(ts, __ctx, true, __cb);
00964 }
00965
00966 public Ice.AsyncResult begin_setTimeServer(cast.interfaces.TimeServerPrx ts, cast.interfaces.Callback_CASTComponent_setTimeServer __cb)
00967 {
00968 return begin_setTimeServer(ts, null, false, __cb);
00969 }
00970
00971 public Ice.AsyncResult begin_setTimeServer(cast.interfaces.TimeServerPrx ts, java.util.Map<String, String> __ctx, cast.interfaces.Callback_CASTComponent_setTimeServer __cb)
00972 {
00973 return begin_setTimeServer(ts, __ctx, true, __cb);
00974 }
00975
00976 private Ice.AsyncResult begin_setTimeServer(cast.interfaces.TimeServerPrx ts, java.util.Map<String, String> __ctx, boolean __explicitCtx, IceInternal.CallbackBase __cb)
00977 {
00978 IceInternal.OutgoingAsync __result = new IceInternal.OutgoingAsync(this, __setTimeServer_name, __cb);
00979 try
00980 {
00981 __result.__prepare(__setTimeServer_name, Ice.OperationMode.Normal, __ctx, __explicitCtx);
00982 IceInternal.BasicStream __os = __result.__os();
00983 cast.interfaces.TimeServerPrxHelper.__write(__os, ts);
00984 __os.endWriteEncaps();
00985 __result.__send(true);
00986 }
00987 catch(Ice.LocalException __ex)
00988 {
00989 __result.__exceptionAsync(__ex);
00990 }
00991 return __result;
00992 }
00993
00994 public void end_setTimeServer(Ice.AsyncResult __result)
00995 {
00996 __end(__result, __setTimeServer_name);
00997 }
00998
00999 public void
01000 start()
01001 {
01002 start(null, false);
01003 }
01004
01005 public void
01006 start(java.util.Map<String, String> __ctx)
01007 {
01008 start(__ctx, true);
01009 }
01010
01011 private void
01012 start(java.util.Map<String, String> __ctx, boolean __explicitCtx)
01013 {
01014 if(__explicitCtx && __ctx == null)
01015 {
01016 __ctx = _emptyContext;
01017 }
01018 int __cnt = 0;
01019 while(true)
01020 {
01021 Ice._ObjectDel __delBase = null;
01022 try
01023 {
01024 __delBase = __getDelegate(false);
01025 _WordServerAsComponentDel __del = (_WordServerAsComponentDel)__delBase;
01026 __del.start(__ctx);
01027 return;
01028 }
01029 catch(IceInternal.LocalExceptionWrapper __ex)
01030 {
01031 __handleExceptionWrapper(__delBase, __ex);
01032 }
01033 catch(Ice.LocalException __ex)
01034 {
01035 __cnt = __handleException(__delBase, __ex, null, __cnt);
01036 }
01037 }
01038 }
01039
01040 private static final String __start_name = "start";
01041
01042 public Ice.AsyncResult begin_start()
01043 {
01044 return begin_start(null, false, null);
01045 }
01046
01047 public Ice.AsyncResult begin_start(java.util.Map<String, String> __ctx)
01048 {
01049 return begin_start(__ctx, true, null);
01050 }
01051
01052 public Ice.AsyncResult begin_start(Ice.Callback __cb)
01053 {
01054 return begin_start(null, false, __cb);
01055 }
01056
01057 public Ice.AsyncResult begin_start(java.util.Map<String, String> __ctx, Ice.Callback __cb)
01058 {
01059 return begin_start(__ctx, true, __cb);
01060 }
01061
01062 public Ice.AsyncResult begin_start(cast.interfaces.Callback_CASTComponent_start __cb)
01063 {
01064 return begin_start(null, false, __cb);
01065 }
01066
01067 public Ice.AsyncResult begin_start(java.util.Map<String, String> __ctx, cast.interfaces.Callback_CASTComponent_start __cb)
01068 {
01069 return begin_start(__ctx, true, __cb);
01070 }
01071
01072 private Ice.AsyncResult begin_start(java.util.Map<String, String> __ctx, boolean __explicitCtx, IceInternal.CallbackBase __cb)
01073 {
01074 IceInternal.OutgoingAsync __result = new IceInternal.OutgoingAsync(this, __start_name, __cb);
01075 try
01076 {
01077 __result.__prepare(__start_name, Ice.OperationMode.Normal, __ctx, __explicitCtx);
01078 IceInternal.BasicStream __os = __result.__os();
01079 __os.endWriteEncaps();
01080 __result.__send(true);
01081 }
01082 catch(Ice.LocalException __ex)
01083 {
01084 __result.__exceptionAsync(__ex);
01085 }
01086 return __result;
01087 }
01088
01089 public void end_start(Ice.AsyncResult __result)
01090 {
01091 __end(__result, __start_name);
01092 }
01093
01094 public void
01095 stop()
01096 {
01097 stop(null, false);
01098 }
01099
01100 public void
01101 stop(java.util.Map<String, String> __ctx)
01102 {
01103 stop(__ctx, true);
01104 }
01105
01106 private void
01107 stop(java.util.Map<String, String> __ctx, boolean __explicitCtx)
01108 {
01109 if(__explicitCtx && __ctx == null)
01110 {
01111 __ctx = _emptyContext;
01112 }
01113 int __cnt = 0;
01114 while(true)
01115 {
01116 Ice._ObjectDel __delBase = null;
01117 try
01118 {
01119 __delBase = __getDelegate(false);
01120 _WordServerAsComponentDel __del = (_WordServerAsComponentDel)__delBase;
01121 __del.stop(__ctx);
01122 return;
01123 }
01124 catch(IceInternal.LocalExceptionWrapper __ex)
01125 {
01126 __handleExceptionWrapper(__delBase, __ex);
01127 }
01128 catch(Ice.LocalException __ex)
01129 {
01130 __cnt = __handleException(__delBase, __ex, null, __cnt);
01131 }
01132 }
01133 }
01134
01135 private static final String __stop_name = "stop";
01136
01137 public Ice.AsyncResult begin_stop()
01138 {
01139 return begin_stop(null, false, null);
01140 }
01141
01142 public Ice.AsyncResult begin_stop(java.util.Map<String, String> __ctx)
01143 {
01144 return begin_stop(__ctx, true, null);
01145 }
01146
01147 public Ice.AsyncResult begin_stop(Ice.Callback __cb)
01148 {
01149 return begin_stop(null, false, __cb);
01150 }
01151
01152 public Ice.AsyncResult begin_stop(java.util.Map<String, String> __ctx, Ice.Callback __cb)
01153 {
01154 return begin_stop(__ctx, true, __cb);
01155 }
01156
01157 public Ice.AsyncResult begin_stop(cast.interfaces.Callback_CASTComponent_stop __cb)
01158 {
01159 return begin_stop(null, false, __cb);
01160 }
01161
01162 public Ice.AsyncResult begin_stop(java.util.Map<String, String> __ctx, cast.interfaces.Callback_CASTComponent_stop __cb)
01163 {
01164 return begin_stop(__ctx, true, __cb);
01165 }
01166
01167 private Ice.AsyncResult begin_stop(java.util.Map<String, String> __ctx, boolean __explicitCtx, IceInternal.CallbackBase __cb)
01168 {
01169 IceInternal.OutgoingAsync __result = new IceInternal.OutgoingAsync(this, __stop_name, __cb);
01170 try
01171 {
01172 __result.__prepare(__stop_name, Ice.OperationMode.Normal, __ctx, __explicitCtx);
01173 IceInternal.BasicStream __os = __result.__os();
01174 __os.endWriteEncaps();
01175 __result.__send(true);
01176 }
01177 catch(Ice.LocalException __ex)
01178 {
01179 __result.__exceptionAsync(__ex);
01180 }
01181 return __result;
01182 }
01183
01184 public void end_stop(Ice.AsyncResult __result)
01185 {
01186 __end(__result, __stop_name);
01187 }
01188
01189 public static WordServerAsComponentPrx
01190 checkedCast(Ice.ObjectPrx __obj)
01191 {
01192 WordServerAsComponentPrx __d = null;
01193 if(__obj != null)
01194 {
01195 try
01196 {
01197 __d = (WordServerAsComponentPrx)__obj;
01198 }
01199 catch(ClassCastException ex)
01200 {
01201 if(__obj.ice_isA("::cast::examples::autogen::WordServerAsComponent"))
01202 {
01203 WordServerAsComponentPrxHelper __h = new WordServerAsComponentPrxHelper();
01204 __h.__copyFrom(__obj);
01205 __d = __h;
01206 }
01207 }
01208 }
01209 return __d;
01210 }
01211
01212 public static WordServerAsComponentPrx
01213 checkedCast(Ice.ObjectPrx __obj, java.util.Map<String, String> __ctx)
01214 {
01215 WordServerAsComponentPrx __d = null;
01216 if(__obj != null)
01217 {
01218 try
01219 {
01220 __d = (WordServerAsComponentPrx)__obj;
01221 }
01222 catch(ClassCastException ex)
01223 {
01224 if(__obj.ice_isA("::cast::examples::autogen::WordServerAsComponent", __ctx))
01225 {
01226 WordServerAsComponentPrxHelper __h = new WordServerAsComponentPrxHelper();
01227 __h.__copyFrom(__obj);
01228 __d = __h;
01229 }
01230 }
01231 }
01232 return __d;
01233 }
01234
01235 public static WordServerAsComponentPrx
01236 checkedCast(Ice.ObjectPrx __obj, String __facet)
01237 {
01238 WordServerAsComponentPrx __d = null;
01239 if(__obj != null)
01240 {
01241 Ice.ObjectPrx __bb = __obj.ice_facet(__facet);
01242 try
01243 {
01244 if(__bb.ice_isA("::cast::examples::autogen::WordServerAsComponent"))
01245 {
01246 WordServerAsComponentPrxHelper __h = new WordServerAsComponentPrxHelper();
01247 __h.__copyFrom(__bb);
01248 __d = __h;
01249 }
01250 }
01251 catch(Ice.FacetNotExistException ex)
01252 {
01253 }
01254 }
01255 return __d;
01256 }
01257
01258 public static WordServerAsComponentPrx
01259 checkedCast(Ice.ObjectPrx __obj, String __facet, java.util.Map<String, String> __ctx)
01260 {
01261 WordServerAsComponentPrx __d = null;
01262 if(__obj != null)
01263 {
01264 Ice.ObjectPrx __bb = __obj.ice_facet(__facet);
01265 try
01266 {
01267 if(__bb.ice_isA("::cast::examples::autogen::WordServerAsComponent", __ctx))
01268 {
01269 WordServerAsComponentPrxHelper __h = new WordServerAsComponentPrxHelper();
01270 __h.__copyFrom(__bb);
01271 __d = __h;
01272 }
01273 }
01274 catch(Ice.FacetNotExistException ex)
01275 {
01276 }
01277 }
01278 return __d;
01279 }
01280
01281 public static WordServerAsComponentPrx
01282 uncheckedCast(Ice.ObjectPrx __obj)
01283 {
01284 WordServerAsComponentPrx __d = null;
01285 if(__obj != null)
01286 {
01287 try
01288 {
01289 __d = (WordServerAsComponentPrx)__obj;
01290 }
01291 catch(ClassCastException ex)
01292 {
01293 WordServerAsComponentPrxHelper __h = new WordServerAsComponentPrxHelper();
01294 __h.__copyFrom(__obj);
01295 __d = __h;
01296 }
01297 }
01298 return __d;
01299 }
01300
01301 public static WordServerAsComponentPrx
01302 uncheckedCast(Ice.ObjectPrx __obj, String __facet)
01303 {
01304 WordServerAsComponentPrx __d = null;
01305 if(__obj != null)
01306 {
01307 Ice.ObjectPrx __bb = __obj.ice_facet(__facet);
01308 WordServerAsComponentPrxHelper __h = new WordServerAsComponentPrxHelper();
01309 __h.__copyFrom(__bb);
01310 __d = __h;
01311 }
01312 return __d;
01313 }
01314
01315 protected Ice._ObjectDelM
01316 __createDelegateM()
01317 {
01318 return new _WordServerAsComponentDelM();
01319 }
01320
01321 protected Ice._ObjectDelD
01322 __createDelegateD()
01323 {
01324 return new _WordServerAsComponentDelD();
01325 }
01326
01327 public static void
01328 __write(IceInternal.BasicStream __os, WordServerAsComponentPrx v)
01329 {
01330 __os.writeProxy(v);
01331 }
01332
01333 public static WordServerAsComponentPrx
01334 __read(IceInternal.BasicStream __is)
01335 {
01336 Ice.ObjectPrx proxy = __is.readProxy();
01337 if(proxy != null)
01338 {
01339 WordServerAsComponentPrxHelper result = new WordServerAsComponentPrxHelper();
01340 result.__copyFrom(proxy);
01341 return result;
01342 }
01343 return null;
01344 }
01345
01346 public static void
01347 write(Ice.OutputStream __outS, WordServerAsComponentPrx v)
01348 {
01349 __outS.writeProxy(v);
01350 }
01351
01352 public static WordServerAsComponentPrx
01353 read(Ice.InputStream __inS)
01354 {
01355 Ice.ObjectPrx proxy = __inS.readProxy();
01356 if(proxy != null)
01357 {
01358 WordServerAsComponentPrxHelper result = new WordServerAsComponentPrxHelper();
01359 result.__copyFrom(proxy);
01360 return result;
01361 }
01362 return null;
01363 }
01364 }