📄 _serverstub.java
字号:
package org.xmlBlaster.protocol.corba.serverIdl;/** * Generated from IDL interface "Server" * @author JacORB IDL compiler V 2.1, 16-Feb-2004 */public class _ServerStub extends org.omg.CORBA.portable.ObjectImpl implements org.xmlBlaster.protocol.corba.serverIdl.Server{ private String[] ids = {"IDL:org.xmlBlaster.protocol.corba/serverIdl/Server:1.0"}; public String[] _ids() { return ids; } public final static java.lang.Class _opsClass = org.xmlBlaster.protocol.corba.serverIdl.ServerOperations.class; public org.xmlBlaster.protocol.corba.serverIdl.MessageUnit[] get(java.lang.String xmlKey, java.lang.String qos) throws org.xmlBlaster.protocol.corba.serverIdl.XmlBlasterException { while(true) { if(! this._is_local()) { org.omg.CORBA.portable.InputStream _is = null; try { org.omg.CORBA.portable.OutputStream _os = _request( "get", true); _os.write_string(xmlKey); _os.write_string(qos); _is = _invoke(_os); org.xmlBlaster.protocol.corba.serverIdl.MessageUnit[] _result = org.xmlBlaster.protocol.corba.serverIdl.MessageUnitArrHelper.read(_is); return _result; } catch( org.omg.CORBA.portable.RemarshalException _rx ){} catch( org.omg.CORBA.portable.ApplicationException _ax ) { String _id = _ax.getId(); if( _id.equals("IDL:org.xmlBlaster.protocol.corba/serverIdl/XmlBlasterException:1.0")) { throw org.xmlBlaster.protocol.corba.serverIdl.XmlBlasterExceptionHelper.read(_ax.getInputStream()); } else throw new RuntimeException("Unexpected exception " + _id ); } finally { this._releaseReply(_is); } } else { org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "get", _opsClass ); if( _so == null ) throw new org.omg.CORBA.UNKNOWN("local invocations not supported!"); ServerOperations _localServant = (ServerOperations)_so.servant; org.xmlBlaster.protocol.corba.serverIdl.MessageUnit[] _result; try { _result = _localServant.get(xmlKey,qos); } finally { _servant_postinvoke(_so); } return _result; } } } public void publishOneway(org.xmlBlaster.protocol.corba.serverIdl.MessageUnit[] msgUnitArr) { while(true) { if(! this._is_local()) { org.omg.CORBA.portable.InputStream _is = null; try { org.omg.CORBA.portable.OutputStream _os = _request( "publishOneway", false); org.xmlBlaster.protocol.corba.serverIdl.MessageUnitArrHelper.write(_os,msgUnitArr); _is = _invoke(_os); return; } catch( org.omg.CORBA.portable.RemarshalException _rx ){} catch( org.omg.CORBA.portable.ApplicationException _ax ) { String _id = _ax.getId(); throw new RuntimeException("Unexpected exception " + _id ); } finally { this._releaseReply(_is); } } else { org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "publishOneway", _opsClass ); if( _so == null ) throw new org.omg.CORBA.UNKNOWN("local invocations not supported!"); ServerOperations _localServant = (ServerOperations)_so.servant; try { _localServant.publishOneway(msgUnitArr); } finally { _servant_postinvoke(_so); } return; } } } public java.lang.String ping(java.lang.String qos) { while(true) { if(! this._is_local()) { org.omg.CORBA.portable.InputStream _is = null; try { org.omg.CORBA.portable.OutputStream _os = _request( "ping", true); _os.write_string(qos); _is = _invoke(_os); java.lang.String _result = _is.read_string(); return _result; } catch( org.omg.CORBA.portable.RemarshalException _rx ){} catch( org.omg.CORBA.portable.ApplicationException _ax ) { String _id = _ax.getId(); throw new RuntimeException("Unexpected exception " + _id ); } finally { this._releaseReply(_is); } } else { org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "ping", _opsClass ); if( _so == null ) throw new org.omg.CORBA.UNKNOWN("local invocations not supported!"); ServerOperations _localServant = (ServerOperations)_so.servant; java.lang.String _result; try { _result = _localServant.ping(qos); } finally { _servant_postinvoke(_so); } return _result; } } } public java.lang.String publish(org.xmlBlaster.protocol.corba.serverIdl.MessageUnit msgUnit) throws org.xmlBlaster.protocol.corba.serverIdl.XmlBlasterException { while(true) { if(! this._is_local()) { org.omg.CORBA.portable.InputStream _is = null; try { org.omg.CORBA.portable.OutputStream _os = _request( "publish", true); org.xmlBlaster.protocol.corba.serverIdl.MessageUnitHelper.write(_os,msgUnit); _is = _invoke(_os); java.lang.String _result = _is.read_string(); return _result; } catch( org.omg.CORBA.portable.RemarshalException _rx ){} catch( org.omg.CORBA.portable.ApplicationException _ax ) { String _id = _ax.getId(); if( _id.equals("IDL:org.xmlBlaster.protocol.corba/serverIdl/XmlBlasterException:1.0")) { throw org.xmlBlaster.protocol.corba.serverIdl.XmlBlasterExceptionHelper.read(_ax.getInputStream()); } else throw new RuntimeException("Unexpected exception " + _id ); } finally { this._releaseReply(_is); } } else { org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "publish", _opsClass ); if( _so == null ) throw new org.omg.CORBA.UNKNOWN("local invocations not supported!"); ServerOperations _localServant = (ServerOperations)_so.servant; java.lang.String _result; try { _result = _localServant.publish(msgUnit); } finally { _servant_postinvoke(_so); } return _result; } } } public java.lang.String[] publishArr(org.xmlBlaster.protocol.corba.serverIdl.MessageUnit[] msgUnitArr) throws org.xmlBlaster.protocol.corba.serverIdl.XmlBlasterException { while(true) { if(! this._is_local()) { org.omg.CORBA.portable.InputStream _is = null; try { org.omg.CORBA.portable.OutputStream _os = _request( "publishArr", true); org.xmlBlaster.protocol.corba.serverIdl.MessageUnitArrHelper.write(_os,msgUnitArr); _is = _invoke(_os); java.lang.String[] _result = org.xmlBlaster.protocol.corba.serverIdl.XmlTypeArrHelper.read(_is); return _result; } catch( org.omg.CORBA.portable.RemarshalException _rx ){} catch( org.omg.CORBA.portable.ApplicationException _ax ) { String _id = _ax.getId(); if( _id.equals("IDL:org.xmlBlaster.protocol.corba/serverIdl/XmlBlasterException:1.0")) { throw org.xmlBlaster.protocol.corba.serverIdl.XmlBlasterExceptionHelper.read(_ax.getInputStream()); } else throw new RuntimeException("Unexpected exception " + _id ); } finally { this._releaseReply(_is); } } else { org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "publishArr", _opsClass ); if( _so == null ) throw new org.omg.CORBA.UNKNOWN("local invocations not supported!"); ServerOperations _localServant = (ServerOperations)_so.servant; java.lang.String[] _result; try { _result = _localServant.publishArr(msgUnitArr); } finally { _servant_postinvoke(_so); } return _result; } } } public java.lang.String[] unSubscribe(java.lang.String xmlKey, java.lang.String qos) throws org.xmlBlaster.protocol.corba.serverIdl.XmlBlasterException { while(true) { if(! this._is_local()) { org.omg.CORBA.portable.InputStream _is = null; try { org.omg.CORBA.portable.OutputStream _os = _request( "unSubscribe", true); _os.write_string(xmlKey); _os.write_string(qos); _is = _invoke(_os); java.lang.String[] _result = org.xmlBlaster.protocol.corba.serverIdl.XmlTypeArrHelper.read(_is); return _result; } catch( org.omg.CORBA.portable.RemarshalException _rx ){} catch( org.omg.CORBA.portable.ApplicationException _ax ) { String _id = _ax.getId(); if( _id.equals("IDL:org.xmlBlaster.protocol.corba/serverIdl/XmlBlasterException:1.0")) { throw org.xmlBlaster.protocol.corba.serverIdl.XmlBlasterExceptionHelper.read(_ax.getInputStream()); } else throw new RuntimeException("Unexpected exception " + _id ); } finally { this._releaseReply(_is); } } else { org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "unSubscribe", _opsClass ); if( _so == null ) throw new org.omg.CORBA.UNKNOWN("local invocations not supported!"); ServerOperations _localServant = (ServerOperations)_so.servant; java.lang.String[] _result; try { _result = _localServant.unSubscribe(xmlKey,qos); } finally { _servant_postinvoke(_so); } return _result; } } } public java.lang.String[] erase(java.lang.String xmlKey, java.lang.String qos) throws org.xmlBlaster.protocol.corba.serverIdl.XmlBlasterException { while(true) { if(! this._is_local()) { org.omg.CORBA.portable.InputStream _is = null; try { org.omg.CORBA.portable.OutputStream _os = _request( "erase", true); _os.write_string(xmlKey); _os.write_string(qos); _is = _invoke(_os); java.lang.String[] _result = org.xmlBlaster.protocol.corba.serverIdl.XmlTypeArrHelper.read(_is); return _result; } catch( org.omg.CORBA.portable.RemarshalException _rx ){} catch( org.omg.CORBA.portable.ApplicationException _ax ) { String _id = _ax.getId(); if( _id.equals("IDL:org.xmlBlaster.protocol.corba/serverIdl/XmlBlasterException:1.0")) { throw org.xmlBlaster.protocol.corba.serverIdl.XmlBlasterExceptionHelper.read(_ax.getInputStream()); } else throw new RuntimeException("Unexpected exception " + _id ); } finally { this._releaseReply(_is); } } else { org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "erase", _opsClass ); if( _so == null ) throw new org.omg.CORBA.UNKNOWN("local invocations not supported!"); ServerOperations _localServant = (ServerOperations)_so.servant; java.lang.String[] _result; try { _result = _localServant.erase(xmlKey,qos); } finally { _servant_postinvoke(_so); } return _result; } } } public java.lang.String subscribe(java.lang.String xmlKey, java.lang.String qos) throws org.xmlBlaster.protocol.corba.serverIdl.XmlBlasterException { while(true) { if(! this._is_local()) { org.omg.CORBA.portable.InputStream _is = null; try { org.omg.CORBA.portable.OutputStream _os = _request( "subscribe", true); _os.write_string(xmlKey); _os.write_string(qos); _is = _invoke(_os); java.lang.String _result = _is.read_string(); return _result; } catch( org.omg.CORBA.portable.RemarshalException _rx ){} catch( org.omg.CORBA.portable.ApplicationException _ax ) { String _id = _ax.getId(); if( _id.equals("IDL:org.xmlBlaster.protocol.corba/serverIdl/XmlBlasterException:1.0")) { throw org.xmlBlaster.protocol.corba.serverIdl.XmlBlasterExceptionHelper.read(_ax.getInputStream()); } else throw new RuntimeException("Unexpected exception " + _id ); } finally { this._releaseReply(_is); } } else { org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "subscribe", _opsClass ); if( _so == null ) throw new org.omg.CORBA.UNKNOWN("local invocations not supported!"); ServerOperations _localServant = (ServerOperations)_so.servant; java.lang.String _result; try { _result = _localServant.subscribe(xmlKey,qos); } finally { _servant_postinvoke(_so); } return _result; } } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -