_QWFeederStub.java

  1. package com.isti.quakewatch.server.qw_feeder;

  2. /**
  3.  * Interface definition: QWFeeder.
  4.  *
  5.  * @author OpenORB Compiler
  6.  */
  7. public class _QWFeederStub extends org.omg.CORBA.portable.ObjectImpl implements QWFeeder {
  8.   /** Serialization id. */
  9.   private static final long serialVersionUID = 1L;

  10.   static final String[] _ids_list = { "IDL:com/isti/quakewatch/server/qw_feeder/QWFeeder:1.0" };

  11.   public String[] _ids() {
  12.     return _ids_list;
  13.   }

  14.   private final static Class<QWFeederOperations> _opsClass = com.isti.quakewatch.server.qw_feeder.QWFeederOperations.class;

  15.   /**
  16.    * Operation sendSourcedMsg
  17.    */
  18.   public boolean sendSourcedMsg(String messageStr, String feederSourceHostStr, long feederSrcHostMsgIdNum) {
  19.     while (true) {
  20.       if (!this._is_local()) {
  21.         org.omg.CORBA.portable.InputStream _input = null;
  22.         try {
  23.           org.omg.CORBA.portable.OutputStream _output = this._request("sendSourcedMsg", true);
  24.           _output.write_string(messageStr);
  25.           _output.write_string(feederSourceHostStr);
  26.           _output.write_longlong(feederSrcHostMsgIdNum);
  27.           _input = this._invoke(_output);
  28.           boolean _arg_ret = _input.read_boolean();
  29.           return _arg_ret;
  30.         } catch (org.omg.CORBA.portable.RemarshalException _exception) {
  31.           continue;
  32.         } catch (org.omg.CORBA.portable.ApplicationException _exception) {
  33.           String _exception_id = _exception.getId();
  34.           throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _exception_id);
  35.         } finally {
  36.           this._releaseReply(_input);
  37.         }
  38.       } else {
  39.         org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke("sendSourcedMsg", _opsClass);
  40.         if (_so == null)
  41.           continue;
  42.         com.isti.quakewatch.server.qw_feeder.QWFeederOperations _self = (com.isti.quakewatch.server.qw_feeder.QWFeederOperations) _so.servant;
  43.         try {
  44.           return _self.sendSourcedMsg(messageStr, feederSourceHostStr, feederSrcHostMsgIdNum);
  45.         } finally {
  46.           _servant_postinvoke(_so);
  47.         }
  48.       }
  49.     }
  50.   }

  51.   /**
  52.    * Operation sendSourcedDomainTypeMsg
  53.    */
  54.   public boolean sendSourcedDomainTypeMsg(String domainStr, String typeStr, String messageStr,
  55.       String feederSourceHostStr, long feederSrcHostMsgIdNum) {
  56.     while (true) {
  57.       if (!this._is_local()) {
  58.         org.omg.CORBA.portable.InputStream _input = null;
  59.         try {
  60.           org.omg.CORBA.portable.OutputStream _output = this._request("sendSourcedDomainTypeMsg", true);
  61.           _output.write_string(domainStr);
  62.           _output.write_string(typeStr);
  63.           _output.write_string(messageStr);
  64.           _output.write_string(feederSourceHostStr);
  65.           _output.write_longlong(feederSrcHostMsgIdNum);
  66.           _input = this._invoke(_output);
  67.           boolean _arg_ret = _input.read_boolean();
  68.           return _arg_ret;
  69.         } catch (org.omg.CORBA.portable.RemarshalException _exception) {
  70.           continue;
  71.         } catch (org.omg.CORBA.portable.ApplicationException _exception) {
  72.           String _exception_id = _exception.getId();
  73.           throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _exception_id);
  74.         } finally {
  75.           this._releaseReply(_input);
  76.         }
  77.       } else {
  78.         org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke("sendSourcedDomainTypeMsg", _opsClass);
  79.         if (_so == null)
  80.           continue;
  81.         com.isti.quakewatch.server.qw_feeder.QWFeederOperations _self = (com.isti.quakewatch.server.qw_feeder.QWFeederOperations) _so.servant;
  82.         try {
  83.           return _self.sendSourcedDomainTypeMsg(domainStr, typeStr, messageStr, feederSourceHostStr,
  84.               feederSrcHostMsgIdNum);
  85.         } finally {
  86.           _servant_postinvoke(_so);
  87.         }
  88.       }
  89.     }
  90.   }

  91.   /**
  92.    * Operation sendSourcedDomainTypeNameMsg
  93.    */
  94.   public boolean sendSourcedDomainTypeNameMsg(String domainStr, String typeStr, String nameStr, String messageStr,
  95.       String feederSourceHostStr, long feederSrcHostMsgIdNum) {
  96.     while (true) {
  97.       if (!this._is_local()) {
  98.         org.omg.CORBA.portable.InputStream _input = null;
  99.         try {
  100.           org.omg.CORBA.portable.OutputStream _output = this._request("sendSourcedDomainTypeNameMsg", true);
  101.           _output.write_string(domainStr);
  102.           _output.write_string(typeStr);
  103.           _output.write_string(nameStr);
  104.           _output.write_string(messageStr);
  105.           _output.write_string(feederSourceHostStr);
  106.           _output.write_longlong(feederSrcHostMsgIdNum);
  107.           _input = this._invoke(_output);
  108.           boolean _arg_ret = _input.read_boolean();
  109.           return _arg_ret;
  110.         } catch (org.omg.CORBA.portable.RemarshalException _exception) {
  111.           continue;
  112.         } catch (org.omg.CORBA.portable.ApplicationException _exception) {
  113.           String _exception_id = _exception.getId();
  114.           throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _exception_id);
  115.         } finally {
  116.           this._releaseReply(_input);
  117.         }
  118.       } else {
  119.         org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke("sendSourcedDomainTypeNameMsg", _opsClass);
  120.         if (_so == null)
  121.           continue;
  122.         com.isti.quakewatch.server.qw_feeder.QWFeederOperations _self = (com.isti.quakewatch.server.qw_feeder.QWFeederOperations) _so.servant;
  123.         try {
  124.           return _self.sendSourcedDomainTypeNameMsg(domainStr, typeStr, nameStr, messageStr, feederSourceHostStr,
  125.               feederSrcHostMsgIdNum);
  126.         } finally {
  127.           _servant_postinvoke(_so);
  128.         }
  129.       }
  130.     }
  131.   }

  132.   /**
  133.    * Operation sendMessage
  134.    */
  135.   public boolean sendMessage(String messageStr) {
  136.     while (true) {
  137.       if (!this._is_local()) {
  138.         org.omg.CORBA.portable.InputStream _input = null;
  139.         try {
  140.           org.omg.CORBA.portable.OutputStream _output = this._request("sendMessage", true);
  141.           _output.write_string(messageStr);
  142.           _input = this._invoke(_output);
  143.           boolean _arg_ret = _input.read_boolean();
  144.           return _arg_ret;
  145.         } catch (org.omg.CORBA.portable.RemarshalException _exception) {
  146.           continue;
  147.         } catch (org.omg.CORBA.portable.ApplicationException _exception) {
  148.           String _exception_id = _exception.getId();
  149.           throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _exception_id);
  150.         } finally {
  151.           this._releaseReply(_input);
  152.         }
  153.       } else {
  154.         org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke("sendMessage", _opsClass);
  155.         if (_so == null)
  156.           continue;
  157.         com.isti.quakewatch.server.qw_feeder.QWFeederOperations _self = (com.isti.quakewatch.server.qw_feeder.QWFeederOperations) _so.servant;
  158.         try {
  159.           return _self.sendMessage(messageStr);
  160.         } finally {
  161.           _servant_postinvoke(_so);
  162.         }
  163.       }
  164.     }
  165.   }

  166.   /**
  167.    * Operation sendDomainTypeMessage
  168.    */
  169.   public boolean sendDomainTypeMessage(String domainStr, String typeStr, String messageStr) {
  170.     while (true) {
  171.       if (!this._is_local()) {
  172.         org.omg.CORBA.portable.InputStream _input = null;
  173.         try {
  174.           org.omg.CORBA.portable.OutputStream _output = this._request("sendDomainTypeMessage", true);
  175.           _output.write_string(domainStr);
  176.           _output.write_string(typeStr);
  177.           _output.write_string(messageStr);
  178.           _input = this._invoke(_output);
  179.           boolean _arg_ret = _input.read_boolean();
  180.           return _arg_ret;
  181.         } catch (org.omg.CORBA.portable.RemarshalException _exception) {
  182.           continue;
  183.         } catch (org.omg.CORBA.portable.ApplicationException _exception) {
  184.           String _exception_id = _exception.getId();
  185.           throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _exception_id);
  186.         } finally {
  187.           this._releaseReply(_input);
  188.         }
  189.       } else {
  190.         org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke("sendDomainTypeMessage", _opsClass);
  191.         if (_so == null)
  192.           continue;
  193.         com.isti.quakewatch.server.qw_feeder.QWFeederOperations _self = (com.isti.quakewatch.server.qw_feeder.QWFeederOperations) _so.servant;
  194.         try {
  195.           return _self.sendDomainTypeMessage(domainStr, typeStr, messageStr);
  196.         } finally {
  197.           _servant_postinvoke(_so);
  198.         }
  199.       }
  200.     }
  201.   }

  202.   /**
  203.    * Operation sendDomainTypeNameMessage
  204.    */
  205.   public boolean sendDomainTypeNameMessage(String domainStr, String typeStr, String nameStr, String messageStr) {
  206.     while (true) {
  207.       if (!this._is_local()) {
  208.         org.omg.CORBA.portable.InputStream _input = null;
  209.         try {
  210.           org.omg.CORBA.portable.OutputStream _output = this._request("sendDomainTypeNameMessage", true);
  211.           _output.write_string(domainStr);
  212.           _output.write_string(typeStr);
  213.           _output.write_string(nameStr);
  214.           _output.write_string(messageStr);
  215.           _input = this._invoke(_output);
  216.           boolean _arg_ret = _input.read_boolean();
  217.           return _arg_ret;
  218.         } catch (org.omg.CORBA.portable.RemarshalException _exception) {
  219.           continue;
  220.         } catch (org.omg.CORBA.portable.ApplicationException _exception) {
  221.           String _exception_id = _exception.getId();
  222.           throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _exception_id);
  223.         } finally {
  224.           this._releaseReply(_input);
  225.         }
  226.       } else {
  227.         org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke("sendDomainTypeNameMessage", _opsClass);
  228.         if (_so == null)
  229.           continue;
  230.         com.isti.quakewatch.server.qw_feeder.QWFeederOperations _self = (com.isti.quakewatch.server.qw_feeder.QWFeederOperations) _so.servant;
  231.         try {
  232.           return _self.sendDomainTypeNameMessage(domainStr, typeStr, nameStr, messageStr);
  233.         } finally {
  234.           _servant_postinvoke(_so);
  235.         }
  236.       }
  237.     }
  238.   }

  239. }