00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 package cast.interfaces;
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00026 public final class TimeServerPrxHelper extends Ice.ObjectPrxHelperBase implements TimeServerPrx
00027 {
00031 public cast.cdl.CASTTime
00032 fromTimeOfDay(long secs, long usecs)
00033 {
00034 return fromTimeOfDay(secs, usecs, null, false);
00035 }
00036
00041 public cast.cdl.CASTTime
00042 fromTimeOfDay(long secs, long usecs, java.util.Map<String, String> __ctx)
00043 {
00044 return fromTimeOfDay(secs, usecs, __ctx, true);
00045 }
00046
00047 private cast.cdl.CASTTime
00048 fromTimeOfDay(long secs, long usecs, java.util.Map<String, String> __ctx, boolean __explicitCtx)
00049 {
00050 if(__explicitCtx && __ctx == null)
00051 {
00052 __ctx = _emptyContext;
00053 }
00054 int __cnt = 0;
00055 while(true)
00056 {
00057 Ice._ObjectDel __delBase = null;
00058 try
00059 {
00060 __checkTwowayOnly("fromTimeOfDay");
00061 __delBase = __getDelegate(false);
00062 _TimeServerDel __del = (_TimeServerDel)__delBase;
00063 return __del.fromTimeOfDay(secs, usecs, __ctx);
00064 }
00065 catch(IceInternal.LocalExceptionWrapper __ex)
00066 {
00067 __handleExceptionWrapper(__delBase, __ex);
00068 }
00069 catch(Ice.LocalException __ex)
00070 {
00071 __cnt = __handleException(__delBase, __ex, null, __cnt);
00072 }
00073 }
00074 }
00075
00076 private static final String __fromTimeOfDay_name = "fromTimeOfDay";
00077
00082 public Ice.AsyncResult begin_fromTimeOfDay(long secs, long usecs)
00083 {
00084 return begin_fromTimeOfDay(secs, usecs, null, false, null);
00085 }
00086
00092 public Ice.AsyncResult begin_fromTimeOfDay(long secs, long usecs, java.util.Map<String, String> __ctx)
00093 {
00094 return begin_fromTimeOfDay(secs, usecs, __ctx, true, null);
00095 }
00096
00101 public Ice.AsyncResult begin_fromTimeOfDay(long secs, long usecs, Ice.Callback __cb)
00102 {
00103 return begin_fromTimeOfDay(secs, usecs, null, false, __cb);
00104 }
00105
00111 public Ice.AsyncResult begin_fromTimeOfDay(long secs, long usecs, java.util.Map<String, String> __ctx, Ice.Callback __cb)
00112 {
00113 return begin_fromTimeOfDay(secs, usecs, __ctx, true, __cb);
00114 }
00115
00120 public Ice.AsyncResult begin_fromTimeOfDay(long secs, long usecs, Callback_TimeServer_fromTimeOfDay __cb)
00121 {
00122 return begin_fromTimeOfDay(secs, usecs, null, false, __cb);
00123 }
00124
00130 public Ice.AsyncResult begin_fromTimeOfDay(long secs, long usecs, java.util.Map<String, String> __ctx, Callback_TimeServer_fromTimeOfDay __cb)
00131 {
00132 return begin_fromTimeOfDay(secs, usecs, __ctx, true, __cb);
00133 }
00134
00135 private Ice.AsyncResult begin_fromTimeOfDay(long secs, long usecs, java.util.Map<String, String> __ctx, boolean __explicitCtx, IceInternal.CallbackBase __cb)
00136 {
00137 __checkAsyncTwowayOnly(__fromTimeOfDay_name);
00138 IceInternal.OutgoingAsync __result = new IceInternal.OutgoingAsync(this, __fromTimeOfDay_name, __cb);
00139 try
00140 {
00141 __result.__prepare(__fromTimeOfDay_name, Ice.OperationMode.Normal, __ctx, __explicitCtx);
00142 IceInternal.BasicStream __os = __result.__os();
00143 __os.writeLong(secs);
00144 __os.writeLong(usecs);
00145 __os.endWriteEncaps();
00146 __result.__send(true);
00147 }
00148 catch(Ice.LocalException __ex)
00149 {
00150 __result.__exceptionAsync(__ex);
00151 }
00152 return __result;
00153 }
00154
00159 public cast.cdl.CASTTime end_fromTimeOfDay(Ice.AsyncResult __result)
00160 {
00161 Ice.AsyncResult.__check(__result, this, __fromTimeOfDay_name);
00162 if(!__result.__wait())
00163 {
00164 try
00165 {
00166 __result.__throwUserException();
00167 }
00168 catch(Ice.UserException __ex)
00169 {
00170 throw new Ice.UnknownUserException(__ex.ice_name());
00171 }
00172 }
00173 cast.cdl.CASTTime __ret;
00174 IceInternal.BasicStream __is = __result.__is();
00175 __is.startReadEncaps();
00176 __ret = new cast.cdl.CASTTime();
00177 __ret.__read(__is);
00178 __is.endReadEncaps();
00179 return __ret;
00180 }
00181
00185 public cast.cdl.CASTTime
00186 fromTimeOfDayDouble(double todsecs)
00187 {
00188 return fromTimeOfDayDouble(todsecs, null, false);
00189 }
00190
00195 public cast.cdl.CASTTime
00196 fromTimeOfDayDouble(double todsecs, java.util.Map<String, String> __ctx)
00197 {
00198 return fromTimeOfDayDouble(todsecs, __ctx, true);
00199 }
00200
00201 private cast.cdl.CASTTime
00202 fromTimeOfDayDouble(double todsecs, java.util.Map<String, String> __ctx, boolean __explicitCtx)
00203 {
00204 if(__explicitCtx && __ctx == null)
00205 {
00206 __ctx = _emptyContext;
00207 }
00208 int __cnt = 0;
00209 while(true)
00210 {
00211 Ice._ObjectDel __delBase = null;
00212 try
00213 {
00214 __checkTwowayOnly("fromTimeOfDayDouble");
00215 __delBase = __getDelegate(false);
00216 _TimeServerDel __del = (_TimeServerDel)__delBase;
00217 return __del.fromTimeOfDayDouble(todsecs, __ctx);
00218 }
00219 catch(IceInternal.LocalExceptionWrapper __ex)
00220 {
00221 __handleExceptionWrapper(__delBase, __ex);
00222 }
00223 catch(Ice.LocalException __ex)
00224 {
00225 __cnt = __handleException(__delBase, __ex, null, __cnt);
00226 }
00227 }
00228 }
00229
00230 private static final String __fromTimeOfDayDouble_name = "fromTimeOfDayDouble";
00231
00236 public Ice.AsyncResult begin_fromTimeOfDayDouble(double todsecs)
00237 {
00238 return begin_fromTimeOfDayDouble(todsecs, null, false, null);
00239 }
00240
00246 public Ice.AsyncResult begin_fromTimeOfDayDouble(double todsecs, java.util.Map<String, String> __ctx)
00247 {
00248 return begin_fromTimeOfDayDouble(todsecs, __ctx, true, null);
00249 }
00250
00255 public Ice.AsyncResult begin_fromTimeOfDayDouble(double todsecs, Ice.Callback __cb)
00256 {
00257 return begin_fromTimeOfDayDouble(todsecs, null, false, __cb);
00258 }
00259
00265 public Ice.AsyncResult begin_fromTimeOfDayDouble(double todsecs, java.util.Map<String, String> __ctx, Ice.Callback __cb)
00266 {
00267 return begin_fromTimeOfDayDouble(todsecs, __ctx, true, __cb);
00268 }
00269
00274 public Ice.AsyncResult begin_fromTimeOfDayDouble(double todsecs, Callback_TimeServer_fromTimeOfDayDouble __cb)
00275 {
00276 return begin_fromTimeOfDayDouble(todsecs, null, false, __cb);
00277 }
00278
00284 public Ice.AsyncResult begin_fromTimeOfDayDouble(double todsecs, java.util.Map<String, String> __ctx, Callback_TimeServer_fromTimeOfDayDouble __cb)
00285 {
00286 return begin_fromTimeOfDayDouble(todsecs, __ctx, true, __cb);
00287 }
00288
00289 private Ice.AsyncResult begin_fromTimeOfDayDouble(double todsecs, java.util.Map<String, String> __ctx, boolean __explicitCtx, IceInternal.CallbackBase __cb)
00290 {
00291 __checkAsyncTwowayOnly(__fromTimeOfDayDouble_name);
00292 IceInternal.OutgoingAsync __result = new IceInternal.OutgoingAsync(this, __fromTimeOfDayDouble_name, __cb);
00293 try
00294 {
00295 __result.__prepare(__fromTimeOfDayDouble_name, Ice.OperationMode.Normal, __ctx, __explicitCtx);
00296 IceInternal.BasicStream __os = __result.__os();
00297 __os.writeDouble(todsecs);
00298 __os.endWriteEncaps();
00299 __result.__send(true);
00300 }
00301 catch(Ice.LocalException __ex)
00302 {
00303 __result.__exceptionAsync(__ex);
00304 }
00305 return __result;
00306 }
00307
00312 public cast.cdl.CASTTime end_fromTimeOfDayDouble(Ice.AsyncResult __result)
00313 {
00314 Ice.AsyncResult.__check(__result, this, __fromTimeOfDayDouble_name);
00315 if(!__result.__wait())
00316 {
00317 try
00318 {
00319 __result.__throwUserException();
00320 }
00321 catch(Ice.UserException __ex)
00322 {
00323 throw new Ice.UnknownUserException(__ex.ice_name());
00324 }
00325 }
00326 cast.cdl.CASTTime __ret;
00327 IceInternal.BasicStream __is = __result.__is();
00328 __is.startReadEncaps();
00329 __ret = new cast.cdl.CASTTime();
00330 __ret.__read(__is);
00331 __is.endReadEncaps();
00332 return __ret;
00333 }
00334
00335 public cast.cdl.CASTTime
00336 getCASTTime()
00337 {
00338 return getCASTTime(null, false);
00339 }
00340
00341 public cast.cdl.CASTTime
00342 getCASTTime(java.util.Map<String, String> __ctx)
00343 {
00344 return getCASTTime(__ctx, true);
00345 }
00346
00347 private cast.cdl.CASTTime
00348 getCASTTime(java.util.Map<String, String> __ctx, boolean __explicitCtx)
00349 {
00350 if(__explicitCtx && __ctx == null)
00351 {
00352 __ctx = _emptyContext;
00353 }
00354 int __cnt = 0;
00355 while(true)
00356 {
00357 Ice._ObjectDel __delBase = null;
00358 try
00359 {
00360 __checkTwowayOnly("getCASTTime");
00361 __delBase = __getDelegate(false);
00362 _TimeServerDel __del = (_TimeServerDel)__delBase;
00363 return __del.getCASTTime(__ctx);
00364 }
00365 catch(IceInternal.LocalExceptionWrapper __ex)
00366 {
00367 __handleExceptionWrapper(__delBase, __ex);
00368 }
00369 catch(Ice.LocalException __ex)
00370 {
00371 __cnt = __handleException(__delBase, __ex, null, __cnt);
00372 }
00373 }
00374 }
00375
00376 private static final String __getCASTTime_name = "getCASTTime";
00377
00378 public Ice.AsyncResult begin_getCASTTime()
00379 {
00380 return begin_getCASTTime(null, false, null);
00381 }
00382
00383 public Ice.AsyncResult begin_getCASTTime(java.util.Map<String, String> __ctx)
00384 {
00385 return begin_getCASTTime(__ctx, true, null);
00386 }
00387
00388 public Ice.AsyncResult begin_getCASTTime(Ice.Callback __cb)
00389 {
00390 return begin_getCASTTime(null, false, __cb);
00391 }
00392
00393 public Ice.AsyncResult begin_getCASTTime(java.util.Map<String, String> __ctx, Ice.Callback __cb)
00394 {
00395 return begin_getCASTTime(__ctx, true, __cb);
00396 }
00397
00398 public Ice.AsyncResult begin_getCASTTime(Callback_TimeServer_getCASTTime __cb)
00399 {
00400 return begin_getCASTTime(null, false, __cb);
00401 }
00402
00403 public Ice.AsyncResult begin_getCASTTime(java.util.Map<String, String> __ctx, Callback_TimeServer_getCASTTime __cb)
00404 {
00405 return begin_getCASTTime(__ctx, true, __cb);
00406 }
00407
00408 private Ice.AsyncResult begin_getCASTTime(java.util.Map<String, String> __ctx, boolean __explicitCtx, IceInternal.CallbackBase __cb)
00409 {
00410 __checkAsyncTwowayOnly(__getCASTTime_name);
00411 IceInternal.OutgoingAsync __result = new IceInternal.OutgoingAsync(this, __getCASTTime_name, __cb);
00412 try
00413 {
00414 __result.__prepare(__getCASTTime_name, Ice.OperationMode.Normal, __ctx, __explicitCtx);
00415 IceInternal.BasicStream __os = __result.__os();
00416 __os.endWriteEncaps();
00417 __result.__send(true);
00418 }
00419 catch(Ice.LocalException __ex)
00420 {
00421 __result.__exceptionAsync(__ex);
00422 }
00423 return __result;
00424 }
00425
00426 public cast.cdl.CASTTime end_getCASTTime(Ice.AsyncResult __result)
00427 {
00428 Ice.AsyncResult.__check(__result, this, __getCASTTime_name);
00429 if(!__result.__wait())
00430 {
00431 try
00432 {
00433 __result.__throwUserException();
00434 }
00435 catch(Ice.UserException __ex)
00436 {
00437 throw new Ice.UnknownUserException(__ex.ice_name());
00438 }
00439 }
00440 cast.cdl.CASTTime __ret;
00441 IceInternal.BasicStream __is = __result.__is();
00442 __is.startReadEncaps();
00443 __ret = new cast.cdl.CASTTime();
00444 __ret.__read(__is);
00445 __is.endReadEncaps();
00446 return __ret;
00447 }
00448
00452 public void
00453 reset()
00454 {
00455 reset(null, false);
00456 }
00457
00462 public void
00463 reset(java.util.Map<String, String> __ctx)
00464 {
00465 reset(__ctx, true);
00466 }
00467
00468 private void
00469 reset(java.util.Map<String, String> __ctx, boolean __explicitCtx)
00470 {
00471 if(__explicitCtx && __ctx == null)
00472 {
00473 __ctx = _emptyContext;
00474 }
00475 int __cnt = 0;
00476 while(true)
00477 {
00478 Ice._ObjectDel __delBase = null;
00479 try
00480 {
00481 __delBase = __getDelegate(false);
00482 _TimeServerDel __del = (_TimeServerDel)__delBase;
00483 __del.reset(__ctx);
00484 return;
00485 }
00486 catch(IceInternal.LocalExceptionWrapper __ex)
00487 {
00488 __handleExceptionWrapper(__delBase, __ex);
00489 }
00490 catch(Ice.LocalException __ex)
00491 {
00492 __cnt = __handleException(__delBase, __ex, null, __cnt);
00493 }
00494 }
00495 }
00496
00497 private static final String __reset_name = "reset";
00498
00503 public Ice.AsyncResult begin_reset()
00504 {
00505 return begin_reset(null, false, null);
00506 }
00507
00513 public Ice.AsyncResult begin_reset(java.util.Map<String, String> __ctx)
00514 {
00515 return begin_reset(__ctx, true, null);
00516 }
00517
00522 public Ice.AsyncResult begin_reset(Ice.Callback __cb)
00523 {
00524 return begin_reset(null, false, __cb);
00525 }
00526
00532 public Ice.AsyncResult begin_reset(java.util.Map<String, String> __ctx, Ice.Callback __cb)
00533 {
00534 return begin_reset(__ctx, true, __cb);
00535 }
00536
00541 public Ice.AsyncResult begin_reset(Callback_TimeServer_reset __cb)
00542 {
00543 return begin_reset(null, false, __cb);
00544 }
00545
00551 public Ice.AsyncResult begin_reset(java.util.Map<String, String> __ctx, Callback_TimeServer_reset __cb)
00552 {
00553 return begin_reset(__ctx, true, __cb);
00554 }
00555
00556 private Ice.AsyncResult begin_reset(java.util.Map<String, String> __ctx, boolean __explicitCtx, IceInternal.CallbackBase __cb)
00557 {
00558 IceInternal.OutgoingAsync __result = new IceInternal.OutgoingAsync(this, __reset_name, __cb);
00559 try
00560 {
00561 __result.__prepare(__reset_name, Ice.OperationMode.Normal, __ctx, __explicitCtx);
00562 IceInternal.BasicStream __os = __result.__os();
00563 __os.endWriteEncaps();
00564 __result.__send(true);
00565 }
00566 catch(Ice.LocalException __ex)
00567 {
00568 __result.__exceptionAsync(__ex);
00569 }
00570 return __result;
00571 }
00572
00577 public void end_reset(Ice.AsyncResult __result)
00578 {
00579 __end(__result, __reset_name);
00580 }
00581
00582 public static TimeServerPrx
00583 checkedCast(Ice.ObjectPrx __obj)
00584 {
00585 TimeServerPrx __d = null;
00586 if(__obj != null)
00587 {
00588 try
00589 {
00590 __d = (TimeServerPrx)__obj;
00591 }
00592 catch(ClassCastException ex)
00593 {
00594 if(__obj.ice_isA("::cast::interfaces::TimeServer"))
00595 {
00596 TimeServerPrxHelper __h = new TimeServerPrxHelper();
00597 __h.__copyFrom(__obj);
00598 __d = __h;
00599 }
00600 }
00601 }
00602 return __d;
00603 }
00604
00605 public static TimeServerPrx
00606 checkedCast(Ice.ObjectPrx __obj, java.util.Map<String, String> __ctx)
00607 {
00608 TimeServerPrx __d = null;
00609 if(__obj != null)
00610 {
00611 try
00612 {
00613 __d = (TimeServerPrx)__obj;
00614 }
00615 catch(ClassCastException ex)
00616 {
00617 if(__obj.ice_isA("::cast::interfaces::TimeServer", __ctx))
00618 {
00619 TimeServerPrxHelper __h = new TimeServerPrxHelper();
00620 __h.__copyFrom(__obj);
00621 __d = __h;
00622 }
00623 }
00624 }
00625 return __d;
00626 }
00627
00628 public static TimeServerPrx
00629 checkedCast(Ice.ObjectPrx __obj, String __facet)
00630 {
00631 TimeServerPrx __d = null;
00632 if(__obj != null)
00633 {
00634 Ice.ObjectPrx __bb = __obj.ice_facet(__facet);
00635 try
00636 {
00637 if(__bb.ice_isA("::cast::interfaces::TimeServer"))
00638 {
00639 TimeServerPrxHelper __h = new TimeServerPrxHelper();
00640 __h.__copyFrom(__bb);
00641 __d = __h;
00642 }
00643 }
00644 catch(Ice.FacetNotExistException ex)
00645 {
00646 }
00647 }
00648 return __d;
00649 }
00650
00651 public static TimeServerPrx
00652 checkedCast(Ice.ObjectPrx __obj, String __facet, java.util.Map<String, String> __ctx)
00653 {
00654 TimeServerPrx __d = null;
00655 if(__obj != null)
00656 {
00657 Ice.ObjectPrx __bb = __obj.ice_facet(__facet);
00658 try
00659 {
00660 if(__bb.ice_isA("::cast::interfaces::TimeServer", __ctx))
00661 {
00662 TimeServerPrxHelper __h = new TimeServerPrxHelper();
00663 __h.__copyFrom(__bb);
00664 __d = __h;
00665 }
00666 }
00667 catch(Ice.FacetNotExistException ex)
00668 {
00669 }
00670 }
00671 return __d;
00672 }
00673
00674 public static TimeServerPrx
00675 uncheckedCast(Ice.ObjectPrx __obj)
00676 {
00677 TimeServerPrx __d = null;
00678 if(__obj != null)
00679 {
00680 try
00681 {
00682 __d = (TimeServerPrx)__obj;
00683 }
00684 catch(ClassCastException ex)
00685 {
00686 TimeServerPrxHelper __h = new TimeServerPrxHelper();
00687 __h.__copyFrom(__obj);
00688 __d = __h;
00689 }
00690 }
00691 return __d;
00692 }
00693
00694 public static TimeServerPrx
00695 uncheckedCast(Ice.ObjectPrx __obj, String __facet)
00696 {
00697 TimeServerPrx __d = null;
00698 if(__obj != null)
00699 {
00700 Ice.ObjectPrx __bb = __obj.ice_facet(__facet);
00701 TimeServerPrxHelper __h = new TimeServerPrxHelper();
00702 __h.__copyFrom(__bb);
00703 __d = __h;
00704 }
00705 return __d;
00706 }
00707
00708 protected Ice._ObjectDelM
00709 __createDelegateM()
00710 {
00711 return new _TimeServerDelM();
00712 }
00713
00714 protected Ice._ObjectDelD
00715 __createDelegateD()
00716 {
00717 return new _TimeServerDelD();
00718 }
00719
00720 public static void
00721 __write(IceInternal.BasicStream __os, TimeServerPrx v)
00722 {
00723 __os.writeProxy(v);
00724 }
00725
00726 public static TimeServerPrx
00727 __read(IceInternal.BasicStream __is)
00728 {
00729 Ice.ObjectPrx proxy = __is.readProxy();
00730 if(proxy != null)
00731 {
00732 TimeServerPrxHelper result = new TimeServerPrxHelper();
00733 result.__copyFrom(proxy);
00734 return result;
00735 }
00736 return null;
00737 }
00738
00739 public static void
00740 write(Ice.OutputStream __outS, TimeServerPrx v)
00741 {
00742 __outS.writeProxy(v);
00743 }
00744
00745 public static TimeServerPrx
00746 read(Ice.InputStream __inS)
00747 {
00748 Ice.ObjectPrx proxy = __inS.readProxy();
00749 if(proxy != null)
00750 {
00751 TimeServerPrxHelper result = new TimeServerPrxHelper();
00752 result.__copyFrom(proxy);
00753 return result;
00754 }
00755 return null;
00756 }
00757 }