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 _ComponentManagerDelM extends Ice._ObjectDelM implements _ComponentManagerDel
00024 {
00025 public void
00026 addComponentDescription(cast.cdl.ComponentDescription description, java.util.Map<String, String> __ctx)
00027 throws IceInternal.LocalExceptionWrapper
00028 {
00029 IceInternal.Outgoing __og = __handler.getOutgoing("addComponentDescription", Ice.OperationMode.Idempotent, __ctx);
00030 try
00031 {
00032 try
00033 {
00034 IceInternal.BasicStream __os = __og.os();
00035 description.__write(__os);
00036 }
00037 catch(Ice.LocalException __ex)
00038 {
00039 __og.abort(__ex);
00040 }
00041 boolean __ok = __og.invoke();
00042 if(!__og.is().isEmpty())
00043 {
00044 try
00045 {
00046 if(!__ok)
00047 {
00048 try
00049 {
00050 __og.throwUserException();
00051 }
00052 catch(Ice.UserException __ex)
00053 {
00054 throw new Ice.UnknownUserException(__ex.ice_name());
00055 }
00056 }
00057 __og.is().skipEmptyEncaps();
00058 }
00059 catch(Ice.LocalException __ex)
00060 {
00061 throw new IceInternal.LocalExceptionWrapper(__ex, false);
00062 }
00063 }
00064 }
00065 finally
00066 {
00067 __handler.reclaimOutgoing(__og);
00068 }
00069 }
00070
00071 public cast.cdl.ComponentDescription
00072 getComponentDescription(String componentID, java.util.Map<String, String> __ctx)
00073 throws IceInternal.LocalExceptionWrapper,
00074 cast.CASTException
00075 {
00076 IceInternal.Outgoing __og = __handler.getOutgoing("getComponentDescription", Ice.OperationMode.Idempotent, __ctx);
00077 try
00078 {
00079 try
00080 {
00081 IceInternal.BasicStream __os = __og.os();
00082 __os.writeString(componentID);
00083 }
00084 catch(Ice.LocalException __ex)
00085 {
00086 __og.abort(__ex);
00087 }
00088 boolean __ok = __og.invoke();
00089 try
00090 {
00091 if(!__ok)
00092 {
00093 try
00094 {
00095 __og.throwUserException();
00096 }
00097 catch(cast.CASTException __ex)
00098 {
00099 throw __ex;
00100 }
00101 catch(Ice.UserException __ex)
00102 {
00103 throw new Ice.UnknownUserException(__ex.ice_name());
00104 }
00105 }
00106 IceInternal.BasicStream __is = __og.is();
00107 __is.startReadEncaps();
00108 cast.cdl.ComponentDescription __ret;
00109 __ret = new cast.cdl.ComponentDescription();
00110 __ret.__read(__is);
00111 __is.endReadEncaps();
00112 return __ret;
00113 }
00114 catch(Ice.LocalException __ex)
00115 {
00116 throw new IceInternal.LocalExceptionWrapper(__ex, false);
00117 }
00118 }
00119 finally
00120 {
00121 __handler.reclaimOutgoing(__og);
00122 }
00123 }
00124
00125 public java.util.Map<java.lang.String, cast.cdl.ComponentDescription>
00126 getComponentDescriptions(java.util.Map<String, String> __ctx)
00127 throws IceInternal.LocalExceptionWrapper
00128 {
00129 IceInternal.Outgoing __og = __handler.getOutgoing("getComponentDescriptions", Ice.OperationMode.Idempotent, __ctx);
00130 try
00131 {
00132 boolean __ok = __og.invoke();
00133 try
00134 {
00135 if(!__ok)
00136 {
00137 try
00138 {
00139 __og.throwUserException();
00140 }
00141 catch(Ice.UserException __ex)
00142 {
00143 throw new Ice.UnknownUserException(__ex.ice_name());
00144 }
00145 }
00146 IceInternal.BasicStream __is = __og.is();
00147 __is.startReadEncaps();
00148 java.util.Map<java.lang.String, cast.cdl.ComponentDescription> __ret;
00149 __ret = ComponentDescriptionMapHelper.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 }