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 _ComponentFactoryDelD extends Ice._ObjectDelD implements _ComponentFactoryDel
00024 {
00025 public String
00026 getVersionString(java.util.Map<String, String> __ctx)
00027 throws IceInternal.LocalExceptionWrapper
00028 {
00029 final Ice.Current __current = new Ice.Current();
00030 __initCurrent(__current, "getVersionString", 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 ComponentFactory __servant = null;
00040 try
00041 {
00042 __servant = (ComponentFactory)__obj;
00043 }
00044 catch(ClassCastException __ex)
00045 {
00046 throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
00047 }
00048 __result.value = __servant.getVersionString(__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 CASTComponentPrx
00079 newComponent(final String id, final String type, final boolean newProcess, java.util.Map<String, String> __ctx)
00080 throws IceInternal.LocalExceptionWrapper,
00081 cast.ComponentCreationException
00082 {
00083 final Ice.Current __current = new Ice.Current();
00084 __initCurrent(__current, "newComponent", Ice.OperationMode.Normal, __ctx);
00085 final CASTComponentPrxHolder __result = new CASTComponentPrxHolder();
00086 IceInternal.Direct __direct = null;
00087 try
00088 {
00089 __direct = new IceInternal.Direct(__current)
00090 {
00091 public Ice.DispatchStatus run(Ice.Object __obj)
00092 {
00093 ComponentFactory __servant = null;
00094 try
00095 {
00096 __servant = (ComponentFactory)__obj;
00097 }
00098 catch(ClassCastException __ex)
00099 {
00100 throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
00101 }
00102 try
00103 {
00104 __result.value = __servant.newComponent(id, type, newProcess, __current);
00105 return Ice.DispatchStatus.DispatchOK;
00106 }
00107 catch(Ice.UserException __ex)
00108 {
00109 setUserException(__ex);
00110 return Ice.DispatchStatus.DispatchUserException;
00111 }
00112 }
00113 };
00114 try
00115 {
00116 Ice.DispatchStatus __status = __direct.servant().__collocDispatch(__direct);
00117 if(__status == Ice.DispatchStatus.DispatchUserException)
00118 {
00119 __direct.throwUserException();
00120 }
00121 assert __status == Ice.DispatchStatus.DispatchOK;
00122 return __result.value;
00123 }
00124 finally
00125 {
00126 __direct.destroy();
00127 }
00128 }
00129 catch(cast.ComponentCreationException __ex)
00130 {
00131 throw __ex;
00132 }
00133 catch(Ice.SystemException __ex)
00134 {
00135 throw __ex;
00136 }
00137 catch(java.lang.Throwable __ex)
00138 {
00139 IceInternal.LocalExceptionWrapper.throwWrapper(__ex);
00140 }
00141 return __result.value;
00142 }
00143
00144 public ManagedComponentPrx
00145 newManagedComponent(final String id, final String type, final boolean newProcess, java.util.Map<String, String> __ctx)
00146 throws IceInternal.LocalExceptionWrapper,
00147 cast.ComponentCreationException
00148 {
00149 final Ice.Current __current = new Ice.Current();
00150 __initCurrent(__current, "newManagedComponent", Ice.OperationMode.Normal, __ctx);
00151 final ManagedComponentPrxHolder __result = new ManagedComponentPrxHolder();
00152 IceInternal.Direct __direct = null;
00153 try
00154 {
00155 __direct = new IceInternal.Direct(__current)
00156 {
00157 public Ice.DispatchStatus run(Ice.Object __obj)
00158 {
00159 ComponentFactory __servant = null;
00160 try
00161 {
00162 __servant = (ComponentFactory)__obj;
00163 }
00164 catch(ClassCastException __ex)
00165 {
00166 throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
00167 }
00168 try
00169 {
00170 __result.value = __servant.newManagedComponent(id, type, newProcess, __current);
00171 return Ice.DispatchStatus.DispatchOK;
00172 }
00173 catch(Ice.UserException __ex)
00174 {
00175 setUserException(__ex);
00176 return Ice.DispatchStatus.DispatchUserException;
00177 }
00178 }
00179 };
00180 try
00181 {
00182 Ice.DispatchStatus __status = __direct.servant().__collocDispatch(__direct);
00183 if(__status == Ice.DispatchStatus.DispatchUserException)
00184 {
00185 __direct.throwUserException();
00186 }
00187 assert __status == Ice.DispatchStatus.DispatchOK;
00188 return __result.value;
00189 }
00190 finally
00191 {
00192 __direct.destroy();
00193 }
00194 }
00195 catch(cast.ComponentCreationException __ex)
00196 {
00197 throw __ex;
00198 }
00199 catch(Ice.SystemException __ex)
00200 {
00201 throw __ex;
00202 }
00203 catch(java.lang.Throwable __ex)
00204 {
00205 IceInternal.LocalExceptionWrapper.throwWrapper(__ex);
00206 }
00207 return __result.value;
00208 }
00209
00210 public TaskManagerPrx
00211 newTaskManager(final String id, final String type, final boolean newProcess, java.util.Map<String, String> __ctx)
00212 throws IceInternal.LocalExceptionWrapper,
00213 cast.ComponentCreationException
00214 {
00215 final Ice.Current __current = new Ice.Current();
00216 __initCurrent(__current, "newTaskManager", Ice.OperationMode.Normal, __ctx);
00217 final TaskManagerPrxHolder __result = new TaskManagerPrxHolder();
00218 IceInternal.Direct __direct = null;
00219 try
00220 {
00221 __direct = new IceInternal.Direct(__current)
00222 {
00223 public Ice.DispatchStatus run(Ice.Object __obj)
00224 {
00225 ComponentFactory __servant = null;
00226 try
00227 {
00228 __servant = (ComponentFactory)__obj;
00229 }
00230 catch(ClassCastException __ex)
00231 {
00232 throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
00233 }
00234 try
00235 {
00236 __result.value = __servant.newTaskManager(id, type, newProcess, __current);
00237 return Ice.DispatchStatus.DispatchOK;
00238 }
00239 catch(Ice.UserException __ex)
00240 {
00241 setUserException(__ex);
00242 return Ice.DispatchStatus.DispatchUserException;
00243 }
00244 }
00245 };
00246 try
00247 {
00248 Ice.DispatchStatus __status = __direct.servant().__collocDispatch(__direct);
00249 if(__status == Ice.DispatchStatus.DispatchUserException)
00250 {
00251 __direct.throwUserException();
00252 }
00253 assert __status == Ice.DispatchStatus.DispatchOK;
00254 return __result.value;
00255 }
00256 finally
00257 {
00258 __direct.destroy();
00259 }
00260 }
00261 catch(cast.ComponentCreationException __ex)
00262 {
00263 throw __ex;
00264 }
00265 catch(Ice.SystemException __ex)
00266 {
00267 throw __ex;
00268 }
00269 catch(java.lang.Throwable __ex)
00270 {
00271 IceInternal.LocalExceptionWrapper.throwWrapper(__ex);
00272 }
00273 return __result.value;
00274 }
00275
00276 public UnmanagedComponentPrx
00277 newUnmanagedComponent(final String id, final String type, final boolean newProcess, java.util.Map<String, String> __ctx)
00278 throws IceInternal.LocalExceptionWrapper,
00279 cast.ComponentCreationException
00280 {
00281 final Ice.Current __current = new Ice.Current();
00282 __initCurrent(__current, "newUnmanagedComponent", Ice.OperationMode.Normal, __ctx);
00283 final UnmanagedComponentPrxHolder __result = new UnmanagedComponentPrxHolder();
00284 IceInternal.Direct __direct = null;
00285 try
00286 {
00287 __direct = new IceInternal.Direct(__current)
00288 {
00289 public Ice.DispatchStatus run(Ice.Object __obj)
00290 {
00291 ComponentFactory __servant = null;
00292 try
00293 {
00294 __servant = (ComponentFactory)__obj;
00295 }
00296 catch(ClassCastException __ex)
00297 {
00298 throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
00299 }
00300 try
00301 {
00302 __result.value = __servant.newUnmanagedComponent(id, type, newProcess, __current);
00303 return Ice.DispatchStatus.DispatchOK;
00304 }
00305 catch(Ice.UserException __ex)
00306 {
00307 setUserException(__ex);
00308 return Ice.DispatchStatus.DispatchUserException;
00309 }
00310 }
00311 };
00312 try
00313 {
00314 Ice.DispatchStatus __status = __direct.servant().__collocDispatch(__direct);
00315 if(__status == Ice.DispatchStatus.DispatchUserException)
00316 {
00317 __direct.throwUserException();
00318 }
00319 assert __status == Ice.DispatchStatus.DispatchOK;
00320 return __result.value;
00321 }
00322 finally
00323 {
00324 __direct.destroy();
00325 }
00326 }
00327 catch(cast.ComponentCreationException __ex)
00328 {
00329 throw __ex;
00330 }
00331 catch(Ice.SystemException __ex)
00332 {
00333 throw __ex;
00334 }
00335 catch(java.lang.Throwable __ex)
00336 {
00337 IceInternal.LocalExceptionWrapper.throwWrapper(__ex);
00338 }
00339 return __result.value;
00340 }
00341
00342 public WorkingMemoryPrx
00343 newWorkingMemory(final String id, final String type, final boolean newProcess, java.util.Map<String, String> __ctx)
00344 throws IceInternal.LocalExceptionWrapper,
00345 cast.ComponentCreationException
00346 {
00347 final Ice.Current __current = new Ice.Current();
00348 __initCurrent(__current, "newWorkingMemory", Ice.OperationMode.Normal, __ctx);
00349 final WorkingMemoryPrxHolder __result = new WorkingMemoryPrxHolder();
00350 IceInternal.Direct __direct = null;
00351 try
00352 {
00353 __direct = new IceInternal.Direct(__current)
00354 {
00355 public Ice.DispatchStatus run(Ice.Object __obj)
00356 {
00357 ComponentFactory __servant = null;
00358 try
00359 {
00360 __servant = (ComponentFactory)__obj;
00361 }
00362 catch(ClassCastException __ex)
00363 {
00364 throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
00365 }
00366 try
00367 {
00368 __result.value = __servant.newWorkingMemory(id, type, newProcess, __current);
00369 return Ice.DispatchStatus.DispatchOK;
00370 }
00371 catch(Ice.UserException __ex)
00372 {
00373 setUserException(__ex);
00374 return Ice.DispatchStatus.DispatchUserException;
00375 }
00376 }
00377 };
00378 try
00379 {
00380 Ice.DispatchStatus __status = __direct.servant().__collocDispatch(__direct);
00381 if(__status == Ice.DispatchStatus.DispatchUserException)
00382 {
00383 __direct.throwUserException();
00384 }
00385 assert __status == Ice.DispatchStatus.DispatchOK;
00386 return __result.value;
00387 }
00388 finally
00389 {
00390 __direct.destroy();
00391 }
00392 }
00393 catch(cast.ComponentCreationException __ex)
00394 {
00395 throw __ex;
00396 }
00397 catch(Ice.SystemException __ex)
00398 {
00399 throw __ex;
00400 }
00401 catch(java.lang.Throwable __ex)
00402 {
00403 IceInternal.LocalExceptionWrapper.throwWrapper(__ex);
00404 }
00405 return __result.value;
00406 }
00407 }