Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

_SubscriptionManagerStub.java

00001 package SubscriptionManagerModule;
00002 
00003 
00011 public class _SubscriptionManagerStub extends org.omg.CORBA.portable.ObjectImpl implements SubscriptionManagerModule.SubscriptionManager
00012 {
00013 
00014   public int whatNumberIsThis (int number)
00015   {
00016             org.omg.CORBA.portable.InputStream $in = null;
00017             try {
00018                 org.omg.CORBA.portable.OutputStream $out = _request ("whatNumberIsThis", true);
00019                 $out.write_long (number);
00020                 $in = _invoke ($out);
00021                 int $result = $in.read_long ();
00022                 return $result;
00023             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00024                 $in = $ex.getInputStream ();
00025                 String _id = $ex.getId ();
00026                 throw new org.omg.CORBA.MARSHAL (_id);
00027             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00028                 return whatNumberIsThis (number        );
00029             } finally {
00030                 _releaseReply ($in);
00031             }
00032   } // whatNumberIsThis
00033 
00034   public void debugDumpSubscriptions ()
00035   {
00036             org.omg.CORBA.portable.InputStream $in = null;
00037             try {
00038                 org.omg.CORBA.portable.OutputStream $out = _request ("debugDumpSubscriptions", false);
00039                 $in = _invoke ($out);
00040                 return;
00041             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00042                 $in = $ex.getInputStream ();
00043                 String _id = $ex.getId ();
00044                 throw new org.omg.CORBA.MARSHAL (_id);
00045             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00046                 debugDumpSubscriptions (        );
00047             } finally {
00048                 _releaseReply ($in);
00049             }
00050   } // debugDumpSubscriptions
00051 
00052   public void shutdownNOW ()
00053   {
00054             org.omg.CORBA.portable.InputStream $in = null;
00055             try {
00056                 org.omg.CORBA.portable.OutputStream $out = _request ("shutdownNOW", true);
00057                 $in = _invoke ($out);
00058                 return;
00059             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00060                 $in = $ex.getInputStream ();
00061                 String _id = $ex.getId ();
00062                 throw new org.omg.CORBA.MARSHAL (_id);
00063             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00064                 shutdownNOW (        );
00065             } finally {
00066                 _releaseReply ($in);
00067             }
00068   } // shutdownNOW
00069 
00070 
00071   // registerNewIsServer must not be oneway.
00072   public void registerNewIsServer (String serverName)
00073   {
00074             org.omg.CORBA.portable.InputStream $in = null;
00075             try {
00076                 org.omg.CORBA.portable.OutputStream $out = _request ("registerNewIsServer", true);
00077                 $out.write_string (serverName);
00078                 $in = _invoke ($out);
00079                 return;
00080             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00081                 $in = $ex.getInputStream ();
00082                 String _id = $ex.getId ();
00083                 throw new org.omg.CORBA.MARSHAL (_id);
00084             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00085                 registerNewIsServer (serverName        );
00086             } finally {
00087                 _releaseReply ($in);
00088             }
00089   } // registerNewIsServer
00090 
00091 
00092   // subscribe_special must not be oneway.
00093   public void subscribe_special (String serverPattern, String objectPattern, boolean server_is_regular_expression, boolean object_is_regular_expression, is.callback cb) throws is.InvalidExpression
00094   {
00095             org.omg.CORBA.portable.InputStream $in = null;
00096             try {
00097                 org.omg.CORBA.portable.OutputStream $out = _request ("subscribe_special", true);
00098                 $out.write_string (serverPattern);
00099                 $out.write_string (objectPattern);
00100                 $out.write_boolean (server_is_regular_expression);
00101                 $out.write_boolean (object_is_regular_expression);
00102                 is.callbackHelper.write ($out, cb);
00103                 $in = _invoke ($out);
00104                 return;
00105             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00106                 $in = $ex.getInputStream ();
00107                 String _id = $ex.getId ();
00108                 if (_id.equals ("IDL:is/InvalidExpression:1.0"))
00109                     throw is.InvalidExpressionHelper.read ($in);
00110                 else
00111                     throw new org.omg.CORBA.MARSHAL (_id);
00112             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00113                 subscribe_special (serverPattern, objectPattern, server_is_regular_expression, object_is_regular_expression, cb        );
00114             } finally {
00115                 _releaseReply ($in);
00116             }
00117   } // subscribe_special
00118 
00119   public ipc.servantPackage.info information ()
00120   {
00121             org.omg.CORBA.portable.InputStream $in = null;
00122             try {
00123                 org.omg.CORBA.portable.OutputStream $out = _request ("_get_information", true);
00124                 $in = _invoke ($out);
00125                 ipc.servantPackage.info $result = ipc.servantPackage.infoHelper.read ($in);
00126                 return $result;
00127             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00128                 $in = $ex.getInputStream ();
00129                 String _id = $ex.getId ();
00130                 throw new org.omg.CORBA.MARSHAL (_id);
00131             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00132                 return information (        );
00133             } finally {
00134                 _releaseReply ($in);
00135             }
00136   } // information
00137 
00138   public void shutdown ()
00139   {
00140             org.omg.CORBA.portable.InputStream $in = null;
00141             try {
00142                 org.omg.CORBA.portable.OutputStream $out = _request ("shutdown", true);
00143                 $in = _invoke ($out);
00144                 return;
00145             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00146                 $in = $ex.getInputStream ();
00147                 String _id = $ex.getId ();
00148                 throw new org.omg.CORBA.MARSHAL (_id);
00149             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00150                 shutdown (        );
00151             } finally {
00152                 _releaseReply ($in);
00153             }
00154   } // shutdown
00155 
00156   // Type-specific CORBA::Object operations
00157   private static String[] __ids = {
00158     "IDL:SubscriptionManagerModule/SubscriptionManager:1.0", 
00159     "IDL:ipc/servant:1.0"};
00160 
00161   public String[] _ids ()
00162   {
00163     return (String[])__ids.clone ();
00164   }
00165 
00166   private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
00167   {
00168      String str = s.readUTF ();
00169      String[] args = null;
00170      java.util.Properties props = null;
00171      org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
00172      org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
00173      _set_delegate (delegate);
00174   }
00175 
00176   private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
00177   {
00178      String[] args = null;
00179      java.util.Properties props = null;
00180      String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
00181      s.writeUTF (str);
00182   }
00183 } // class _SubscriptionManagerStub

Generated on Fri Sep 16 18:05:52 2005 for SCT DAQ/DCS Software - Java by doxygen 1.3.5