00001 package ArchivingServiceI;
00002
00003
00011 public class _ArchivingServiceInterfaceStub extends org.omg.CORBA.portable.ObjectImpl implements ArchivingServiceI.ArchivingServiceInterface
00012 {
00013
00014
00018 public void archiveISName (String isName)
00019 {
00020 org.omg.CORBA.portable.InputStream $in = null;
00021 try {
00022 org.omg.CORBA.portable.OutputStream $out = _request ("archiveISName", false);
00023 $out.write_string (isName);
00024 $in = _invoke ($out);
00025 return;
00026 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00027 $in = $ex.getInputStream ();
00028 String _id = $ex.getId ();
00029 throw new org.omg.CORBA.MARSHAL (_id);
00030 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00031 archiveISName (isName );
00032 } finally {
00033 _releaseReply ($in);
00034 }
00035 }
00036
00037
00039 public void retrieveISName (String isName)
00040 {
00041 org.omg.CORBA.portable.InputStream $in = null;
00042 try {
00043 org.omg.CORBA.portable.OutputStream $out = _request ("retrieveISName", false);
00044 $out.write_string (isName);
00045 $in = _invoke ($out);
00046 return;
00047 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00048 $in = $ex.getInputStream ();
00049 String _id = $ex.getId ();
00050 throw new org.omg.CORBA.MARSHAL (_id);
00051 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00052 retrieveISName (isName );
00053 } finally {
00054 _releaseReply ($in);
00055 }
00056 }
00057
00058
00060 public void retrieveArchName (String archivingName)
00061 {
00062 org.omg.CORBA.portable.InputStream $in = null;
00063 try {
00064 org.omg.CORBA.portable.OutputStream $out = _request ("retrieveArchName", false);
00065 $out.write_string (archivingName);
00066 $in = _invoke ($out);
00067 return;
00068 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00069 $in = $ex.getInputStream ();
00070 String _id = $ex.getId ();
00071 throw new org.omg.CORBA.MARSHAL (_id);
00072 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00073 retrieveArchName (archivingName );
00074 } finally {
00075 _releaseReply ($in);
00076 }
00077 }
00078
00079
00081 public void setPersistentDirectory (String newDirectory)
00082 {
00083 org.omg.CORBA.portable.InputStream $in = null;
00084 try {
00085 org.omg.CORBA.portable.OutputStream $out = _request ("setPersistentDirectory", true);
00086 $out.write_string (newDirectory);
00087 $in = _invoke ($out);
00088 return;
00089 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00090 $in = $ex.getInputStream ();
00091 String _id = $ex.getId ();
00092 throw new org.omg.CORBA.MARSHAL (_id);
00093 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00094 setPersistentDirectory (newDirectory );
00095 } finally {
00096 _releaseReply ($in);
00097 }
00098 }
00099
00100
00102 public void retrieve (String runNumber, String scanNumber, String className, String specifier)
00103 {
00104 org.omg.CORBA.portable.InputStream $in = null;
00105 try {
00106 org.omg.CORBA.portable.OutputStream $out = _request ("retrieve", false);
00107 $out.write_string (runNumber);
00108 $out.write_string (scanNumber);
00109 $out.write_string (className);
00110 $out.write_string (specifier);
00111 $in = _invoke ($out);
00112 return;
00113 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00114 $in = $ex.getInputStream ();
00115 String _id = $ex.getId ();
00116 throw new org.omg.CORBA.MARSHAL (_id);
00117 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00118 retrieve (runNumber, scanNumber, className, specifier );
00119 } finally {
00120 _releaseReply ($in);
00121 }
00122 }
00123
00124
00128 public void setCompressionLevel (short level)
00129 {
00130 org.omg.CORBA.portable.InputStream $in = null;
00131 try {
00132 org.omg.CORBA.portable.OutputStream $out = _request ("setCompressionLevel", true);
00133 $out.write_short (level);
00134 $in = _invoke ($out);
00135 return;
00136 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00137 $in = $ex.getInputStream ();
00138 String _id = $ex.getId ();
00139 throw new org.omg.CORBA.MARSHAL (_id);
00140 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00141 setCompressionLevel (level );
00142 } finally {
00143 _releaseReply ($in);
00144 }
00145 }
00146
00147 public short getCompressionLevel ()
00148 {
00149 org.omg.CORBA.portable.InputStream $in = null;
00150 try {
00151 org.omg.CORBA.portable.OutputStream $out = _request ("getCompressionLevel", true);
00152 $in = _invoke ($out);
00153 short $result = $in.read_short ();
00154 return $result;
00155 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00156 $in = $ex.getInputStream ();
00157 String _id = $ex.getId ();
00158 throw new org.omg.CORBA.MARSHAL (_id);
00159 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00160 return getCompressionLevel ( );
00161 } finally {
00162 _releaseReply ($in);
00163 }
00164 }
00165
00166
00167
00168 public void setRetrieveIsServer (String serverName)
00169 {
00170 org.omg.CORBA.portable.InputStream $in = null;
00171 try {
00172 org.omg.CORBA.portable.OutputStream $out = _request ("setRetrieveIsServer", true);
00173 $out.write_string (serverName);
00174 $in = _invoke ($out);
00175 return;
00176 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00177 $in = $ex.getInputStream ();
00178 String _id = $ex.getId ();
00179 throw new org.omg.CORBA.MARSHAL (_id);
00180 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00181 setRetrieveIsServer (serverName );
00182 } finally {
00183 _releaseReply ($in);
00184 }
00185 }
00186
00187 public String getRetrieveIsServer ()
00188 {
00189 org.omg.CORBA.portable.InputStream $in = null;
00190 try {
00191 org.omg.CORBA.portable.OutputStream $out = _request ("getRetrieveIsServer", true);
00192 $in = _invoke ($out);
00193 String $result = $in.read_string ();
00194 return $result;
00195 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00196 $in = $ex.getInputStream ();
00197 String _id = $ex.getId ();
00198 throw new org.omg.CORBA.MARSHAL (_id);
00199 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00200 return getRetrieveIsServer ( );
00201 } finally {
00202 _releaseReply ($in);
00203 }
00204 }
00205
00206
00208 public void suspendCallbacks (boolean doSuspend)
00209 {
00210 org.omg.CORBA.portable.InputStream $in = null;
00211 try {
00212 org.omg.CORBA.portable.OutputStream $out = _request ("suspendCallbacks", true);
00213 $out.write_boolean (doSuspend);
00214 $in = _invoke ($out);
00215 return;
00216 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00217 $in = $ex.getInputStream ();
00218 String _id = $ex.getId ();
00219 throw new org.omg.CORBA.MARSHAL (_id);
00220 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00221 suspendCallbacks (doSuspend );
00222 } finally {
00223 _releaseReply ($in);
00224 }
00225 }
00226
00227
00229 public String status ()
00230 {
00231 org.omg.CORBA.portable.InputStream $in = null;
00232 try {
00233 org.omg.CORBA.portable.OutputStream $out = _request ("status", true);
00234 $in = _invoke ($out);
00235 String $result = $in.read_string ();
00236 return $result;
00237 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00238 $in = $ex.getInputStream ();
00239 String _id = $ex.getId ();
00240 throw new org.omg.CORBA.MARSHAL (_id);
00241 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00242 return status ( );
00243 } finally {
00244 _releaseReply ($in);
00245 }
00246 }
00247
00248 public short busy ()
00249 {
00250 org.omg.CORBA.portable.InputStream $in = null;
00251 try {
00252 org.omg.CORBA.portable.OutputStream $out = _request ("busy", true);
00253 $in = _invoke ($out);
00254 short $result = $in.read_short ();
00255 return $result;
00256 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00257 $in = $ex.getInputStream ();
00258 String _id = $ex.getId ();
00259 throw new org.omg.CORBA.MARSHAL (_id);
00260 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00261 return busy ( );
00262 } finally {
00263 _releaseReply ($in);
00264 }
00265 }
00266
00267 public short queueLength ()
00268 {
00269 org.omg.CORBA.portable.InputStream $in = null;
00270 try {
00271 org.omg.CORBA.portable.OutputStream $out = _request ("queueLength", true);
00272 $in = _invoke ($out);
00273 short $result = $in.read_short ();
00274 return $result;
00275 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00276 $in = $ex.getInputStream ();
00277 String _id = $ex.getId ();
00278 throw new org.omg.CORBA.MARSHAL (_id);
00279 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00280 return queueLength ( );
00281 } finally {
00282 _releaseReply ($in);
00283 }
00284 }
00285
00286 public void setFifo (boolean fifo)
00287 {
00288 org.omg.CORBA.portable.InputStream $in = null;
00289 try {
00290 org.omg.CORBA.portable.OutputStream $out = _request ("setFifo", true);
00291 $out.write_boolean (fifo);
00292 $in = _invoke ($out);
00293 return;
00294 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00295 $in = $ex.getInputStream ();
00296 String _id = $ex.getId ();
00297 throw new org.omg.CORBA.MARSHAL (_id);
00298 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00299 setFifo (fifo );
00300 } finally {
00301 _releaseReply ($in);
00302 }
00303 }
00304
00305 public boolean isFifo ()
00306 {
00307 org.omg.CORBA.portable.InputStream $in = null;
00308 try {
00309 org.omg.CORBA.portable.OutputStream $out = _request ("isFifo", true);
00310 $in = _invoke ($out);
00311 boolean $result = $in.read_boolean ();
00312 return $result;
00313 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00314 $in = $ex.getInputStream ();
00315 String _id = $ex.getId ();
00316 throw new org.omg.CORBA.MARSHAL (_id);
00317 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00318 return isFifo ( );
00319 } finally {
00320 _releaseReply ($in);
00321 }
00322 }
00323
00324 public ipc.servantPackage.info information ()
00325 {
00326 org.omg.CORBA.portable.InputStream $in = null;
00327 try {
00328 org.omg.CORBA.portable.OutputStream $out = _request ("_get_information", true);
00329 $in = _invoke ($out);
00330 ipc.servantPackage.info $result = ipc.servantPackage.infoHelper.read ($in);
00331 return $result;
00332 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00333 $in = $ex.getInputStream ();
00334 String _id = $ex.getId ();
00335 throw new org.omg.CORBA.MARSHAL (_id);
00336 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00337 return information ( );
00338 } finally {
00339 _releaseReply ($in);
00340 }
00341 }
00342
00343 public void shutdown ()
00344 {
00345 org.omg.CORBA.portable.InputStream $in = null;
00346 try {
00347 org.omg.CORBA.portable.OutputStream $out = _request ("shutdown", true);
00348 $in = _invoke ($out);
00349 return;
00350 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00351 $in = $ex.getInputStream ();
00352 String _id = $ex.getId ();
00353 throw new org.omg.CORBA.MARSHAL (_id);
00354 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00355 shutdown ( );
00356 } finally {
00357 _releaseReply ($in);
00358 }
00359 }
00360
00361
00362 private static String[] __ids = {
00363 "IDL:ArchivingServiceI/ArchivingServiceInterface:1.0",
00364 "IDL:ipc/servant:1.0"};
00365
00366 public String[] _ids ()
00367 {
00368 return (String[])__ids.clone ();
00369 }
00370
00371 private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
00372 {
00373 String str = s.readUTF ();
00374 String[] args = null;
00375 java.util.Properties props = null;
00376 org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
00377 org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
00378 _set_delegate (delegate);
00379 }
00380
00381 private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
00382 {
00383 String[] args = null;
00384 java.util.Properties props = null;
00385 String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
00386 s.writeUTF (str);
00387 }
00388 }