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
00023 public final class _TimeServerDelD extends Ice._ObjectDelD implements _TimeServerDel
00024 {
00025 public cast.cdl.CASTTime
00026 fromTimeOfDay(final long secs, final long usecs, java.util.Map<String, String> __ctx)
00027 throws IceInternal.LocalExceptionWrapper
00028 {
00029 final Ice.Current __current = new Ice.Current();
00030 __initCurrent(__current, "fromTimeOfDay", Ice.OperationMode.Normal, __ctx);
00031 final cast.cdl.CASTTimeHolder __result = new cast.cdl.CASTTimeHolder();
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 TimeServer __servant = null;
00040 try
00041 {
00042 __servant = (TimeServer)__obj;
00043 }
00044 catch(ClassCastException __ex)
00045 {
00046 throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
00047 }
00048 __result.value = __servant.fromTimeOfDay(secs, usecs, __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 cast.cdl.CASTTime
00079 fromTimeOfDayDouble(final double todsecs, java.util.Map<String, String> __ctx)
00080 throws IceInternal.LocalExceptionWrapper
00081 {
00082 final Ice.Current __current = new Ice.Current();
00083 __initCurrent(__current, "fromTimeOfDayDouble", Ice.OperationMode.Normal, __ctx);
00084 final cast.cdl.CASTTimeHolder __result = new cast.cdl.CASTTimeHolder();
00085 IceInternal.Direct __direct = null;
00086 try
00087 {
00088 __direct = new IceInternal.Direct(__current)
00089 {
00090 public Ice.DispatchStatus run(Ice.Object __obj)
00091 {
00092 TimeServer __servant = null;
00093 try
00094 {
00095 __servant = (TimeServer)__obj;
00096 }
00097 catch(ClassCastException __ex)
00098 {
00099 throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
00100 }
00101 __result.value = __servant.fromTimeOfDayDouble(todsecs, __current);
00102 return Ice.DispatchStatus.DispatchOK;
00103 }
00104 };
00105 try
00106 {
00107 Ice.DispatchStatus __status = __direct.servant().__collocDispatch(__direct);
00108 if(__status == Ice.DispatchStatus.DispatchUserException)
00109 {
00110 __direct.throwUserException();
00111 }
00112 assert __status == Ice.DispatchStatus.DispatchOK;
00113 return __result.value;
00114 }
00115 finally
00116 {
00117 __direct.destroy();
00118 }
00119 }
00120 catch(Ice.SystemException __ex)
00121 {
00122 throw __ex;
00123 }
00124 catch(java.lang.Throwable __ex)
00125 {
00126 IceInternal.LocalExceptionWrapper.throwWrapper(__ex);
00127 }
00128 return __result.value;
00129 }
00130
00131 public cast.cdl.CASTTime
00132 getCASTTime(java.util.Map<String, String> __ctx)
00133 throws IceInternal.LocalExceptionWrapper
00134 {
00135 final Ice.Current __current = new Ice.Current();
00136 __initCurrent(__current, "getCASTTime", Ice.OperationMode.Normal, __ctx);
00137 final cast.cdl.CASTTimeHolder __result = new cast.cdl.CASTTimeHolder();
00138 IceInternal.Direct __direct = null;
00139 try
00140 {
00141 __direct = new IceInternal.Direct(__current)
00142 {
00143 public Ice.DispatchStatus run(Ice.Object __obj)
00144 {
00145 TimeServer __servant = null;
00146 try
00147 {
00148 __servant = (TimeServer)__obj;
00149 }
00150 catch(ClassCastException __ex)
00151 {
00152 throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
00153 }
00154 __result.value = __servant.getCASTTime(__current);
00155 return Ice.DispatchStatus.DispatchOK;
00156 }
00157 };
00158 try
00159 {
00160 Ice.DispatchStatus __status = __direct.servant().__collocDispatch(__direct);
00161 if(__status == Ice.DispatchStatus.DispatchUserException)
00162 {
00163 __direct.throwUserException();
00164 }
00165 assert __status == Ice.DispatchStatus.DispatchOK;
00166 return __result.value;
00167 }
00168 finally
00169 {
00170 __direct.destroy();
00171 }
00172 }
00173 catch(Ice.SystemException __ex)
00174 {
00175 throw __ex;
00176 }
00177 catch(java.lang.Throwable __ex)
00178 {
00179 IceInternal.LocalExceptionWrapper.throwWrapper(__ex);
00180 }
00181 return __result.value;
00182 }
00183
00184 public void
00185 reset(java.util.Map<String, String> __ctx)
00186 throws IceInternal.LocalExceptionWrapper
00187 {
00188 final Ice.Current __current = new Ice.Current();
00189 __initCurrent(__current, "reset", Ice.OperationMode.Normal, __ctx);
00190 IceInternal.Direct __direct = null;
00191 try
00192 {
00193 __direct = new IceInternal.Direct(__current)
00194 {
00195 public Ice.DispatchStatus run(Ice.Object __obj)
00196 {
00197 TimeServer __servant = null;
00198 try
00199 {
00200 __servant = (TimeServer)__obj;
00201 }
00202 catch(ClassCastException __ex)
00203 {
00204 throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
00205 }
00206 __servant.reset(__current);
00207 return Ice.DispatchStatus.DispatchOK;
00208 }
00209 };
00210 try
00211 {
00212 Ice.DispatchStatus __status = __direct.servant().__collocDispatch(__direct);
00213 if(__status == Ice.DispatchStatus.DispatchUserException)
00214 {
00215 __direct.throwUserException();
00216 }
00217 assert __status == Ice.DispatchStatus.DispatchOK;
00218 }
00219 finally
00220 {
00221 __direct.destroy();
00222 }
00223 }
00224 catch(Ice.SystemException __ex)
00225 {
00226 throw __ex;
00227 }
00228 catch(java.lang.Throwable __ex)
00229 {
00230 IceInternal.LocalExceptionWrapper.throwWrapper(__ex);
00231 }
00232 }
00233 }