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 _TimeServerDelM extends Ice._ObjectDelM implements _TimeServerDel
00024 {
00025 public cast.cdl.CASTTime
00026 fromTimeOfDay(long secs, long usecs, java.util.Map<String, String> __ctx)
00027 throws IceInternal.LocalExceptionWrapper
00028 {
00029 IceInternal.Outgoing __og = __handler.getOutgoing("fromTimeOfDay", Ice.OperationMode.Normal, __ctx);
00030 try
00031 {
00032 try
00033 {
00034 IceInternal.BasicStream __os = __og.os();
00035 __os.writeLong(secs);
00036 __os.writeLong(usecs);
00037 }
00038 catch(Ice.LocalException __ex)
00039 {
00040 __og.abort(__ex);
00041 }
00042 boolean __ok = __og.invoke();
00043 try
00044 {
00045 if(!__ok)
00046 {
00047 try
00048 {
00049 __og.throwUserException();
00050 }
00051 catch(Ice.UserException __ex)
00052 {
00053 throw new Ice.UnknownUserException(__ex.ice_name());
00054 }
00055 }
00056 IceInternal.BasicStream __is = __og.is();
00057 __is.startReadEncaps();
00058 cast.cdl.CASTTime __ret;
00059 __ret = new cast.cdl.CASTTime();
00060 __ret.__read(__is);
00061 __is.endReadEncaps();
00062 return __ret;
00063 }
00064 catch(Ice.LocalException __ex)
00065 {
00066 throw new IceInternal.LocalExceptionWrapper(__ex, false);
00067 }
00068 }
00069 finally
00070 {
00071 __handler.reclaimOutgoing(__og);
00072 }
00073 }
00074
00075 public cast.cdl.CASTTime
00076 fromTimeOfDayDouble(double todsecs, java.util.Map<String, String> __ctx)
00077 throws IceInternal.LocalExceptionWrapper
00078 {
00079 IceInternal.Outgoing __og = __handler.getOutgoing("fromTimeOfDayDouble", Ice.OperationMode.Normal, __ctx);
00080 try
00081 {
00082 try
00083 {
00084 IceInternal.BasicStream __os = __og.os();
00085 __os.writeDouble(todsecs);
00086 }
00087 catch(Ice.LocalException __ex)
00088 {
00089 __og.abort(__ex);
00090 }
00091 boolean __ok = __og.invoke();
00092 try
00093 {
00094 if(!__ok)
00095 {
00096 try
00097 {
00098 __og.throwUserException();
00099 }
00100 catch(Ice.UserException __ex)
00101 {
00102 throw new Ice.UnknownUserException(__ex.ice_name());
00103 }
00104 }
00105 IceInternal.BasicStream __is = __og.is();
00106 __is.startReadEncaps();
00107 cast.cdl.CASTTime __ret;
00108 __ret = new cast.cdl.CASTTime();
00109 __ret.__read(__is);
00110 __is.endReadEncaps();
00111 return __ret;
00112 }
00113 catch(Ice.LocalException __ex)
00114 {
00115 throw new IceInternal.LocalExceptionWrapper(__ex, false);
00116 }
00117 }
00118 finally
00119 {
00120 __handler.reclaimOutgoing(__og);
00121 }
00122 }
00123
00124 public cast.cdl.CASTTime
00125 getCASTTime(java.util.Map<String, String> __ctx)
00126 throws IceInternal.LocalExceptionWrapper
00127 {
00128 IceInternal.Outgoing __og = __handler.getOutgoing("getCASTTime", Ice.OperationMode.Normal, __ctx);
00129 try
00130 {
00131 boolean __ok = __og.invoke();
00132 try
00133 {
00134 if(!__ok)
00135 {
00136 try
00137 {
00138 __og.throwUserException();
00139 }
00140 catch(Ice.UserException __ex)
00141 {
00142 throw new Ice.UnknownUserException(__ex.ice_name());
00143 }
00144 }
00145 IceInternal.BasicStream __is = __og.is();
00146 __is.startReadEncaps();
00147 cast.cdl.CASTTime __ret;
00148 __ret = new cast.cdl.CASTTime();
00149 __ret.__read(__is);
00150 __is.endReadEncaps();
00151 return __ret;
00152 }
00153 catch(Ice.LocalException __ex)
00154 {
00155 throw new IceInternal.LocalExceptionWrapper(__ex, false);
00156 }
00157 }
00158 finally
00159 {
00160 __handler.reclaimOutgoing(__og);
00161 }
00162 }
00163
00164 public void
00165 reset(java.util.Map<String, String> __ctx)
00166 throws IceInternal.LocalExceptionWrapper
00167 {
00168 IceInternal.Outgoing __og = __handler.getOutgoing("reset", Ice.OperationMode.Normal, __ctx);
00169 try
00170 {
00171 boolean __ok = __og.invoke();
00172 if(!__og.is().isEmpty())
00173 {
00174 try
00175 {
00176 if(!__ok)
00177 {
00178 try
00179 {
00180 __og.throwUserException();
00181 }
00182 catch(Ice.UserException __ex)
00183 {
00184 throw new Ice.UnknownUserException(__ex.ice_name());
00185 }
00186 }
00187 __og.is().skipEmptyEncaps();
00188 }
00189 catch(Ice.LocalException __ex)
00190 {
00191 throw new IceInternal.LocalExceptionWrapper(__ex, false);
00192 }
00193 }
00194 }
00195 finally
00196 {
00197 __handler.reclaimOutgoing(__og);
00198 }
00199 }
00200 }