📄 _clientstub.java
字号:
}
public void connect_the_service(org.objectweb.ccm.demo3.Services connexion) throws org.omg.Components.AlreadyConnected {
while(true)
{
if(! this._is_local())
{
org.omg.CORBA.portable.InputStream _is = null;
try
{
org.omg.CORBA.portable.OutputStream _os = _request( "connect_the_service", true);
org.objectweb.ccm.demo3.ServicesHelper.write(_os,connexion);
_is = _invoke(_os);
return;
}
catch( org.omg.CORBA.portable.RemarshalException _rx ){}
catch( org.omg.CORBA.portable.ApplicationException _ax )
{
String _id = _ax.getId();
if( _id.equals("IDL:omg.org/Components/AlreadyConnected:1.0"))
{
throw org.omg.Components.AlreadyConnectedHelper.read(_ax.getInputStream());
}
else throw new RuntimeException("Unexpected exception " + _id );
}
finally
{
this._releaseReply(_is);
}
}
else
{
org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "connect_the_service", _opsClass );
if( _so == null )
throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
ClientOperations _localServant = (ClientOperations)_so.servant;
try
{
_localServant.connect_the_service(connexion);
}
finally
{
_servant_postinvoke(_so);
}
return;
}
}
}
public java.lang.String name()
{
while(true)
{
if(! this._is_local())
{
org.omg.CORBA.portable.InputStream _is = null;
try
{
org.omg.CORBA.portable.OutputStream _os = _request("_get_name",true);
_is = _invoke(_os);
return _is.read_string();
}
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( "_get_name", _opsClass);
if( _so == null )
throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
ClientOperations _localServant = (ClientOperations)_so.servant;
java.lang.String _result;
try
{
_result = _localServant.name();
}
finally
{
_servant_postinvoke(_so);
}
return _result;
}
}
}
public org.omg.Components.ConsumerDescription[] get_all_consumers() {
while(true)
{
if(! this._is_local())
{
org.omg.CORBA.portable.InputStream _is = null;
try
{
org.omg.CORBA.portable.OutputStream _os = _request( "get_all_consumers", true);
_is = _invoke(_os);
org.omg.Components.ConsumerDescription[] _result = org.omg.Components.ConsumerDescriptionsHelper.read(_is);
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( "get_all_consumers", _opsClass );
if( _so == null )
throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
ClientOperations _localServant = (ClientOperations)_so.servant;
org.omg.Components.ConsumerDescription[] _result; try
{
_result = _localServant.get_all_consumers();
}
finally
{
_servant_postinvoke(_so);
}
return _result;
}
}
}
public void name(java.lang.String a)
{
while(true)
{
if(! this._is_local())
{
org.omg.CORBA.portable.InputStream _is = null;
try
{
org.omg.CORBA.portable.OutputStream _os = _request("_set_name",true);
_os.write_string(a);
_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( "_set_name", _opsClass);
if( _so == null )
throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
ClientOperations _localServant = (ClientOperations)_so.servant;
try
{
_localServant.name(a);
}
finally
{
_servant_postinvoke(_so);
}
return;
}
}
}
public org.omg.Components.ComponentPortDescription get_all_ports() {
while(true)
{
if(! this._is_local())
{
org.omg.CORBA.portable.InputStream _is = null;
try
{
org.omg.CORBA.portable.OutputStream _os = _request( "get_all_ports", true);
_is = _invoke(_os);
org.omg.Components.ComponentPortDescription _result = (org.omg.Components.ComponentPortDescription)((org.omg.CORBA_2_3.portable.InputStream)_is).read_value ("IDL:omg.org/Components/ComponentPortDescription:1.0");
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( "get_all_ports", _opsClass );
if( _so == null )
throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
ClientOperations _localServant = (ClientOperations)_so.servant;
org.omg.Components.ComponentPortDescription _result; try
{
_result = _localServant.get_all_ports();
}
finally
{
_servant_postinvoke(_so);
}
return _result;
}
}
}
public org.objectweb.ccm.demo3.Services disconnect_the_service() throws org.omg.Components.NoConnection {
while(true)
{
if(! this._is_local())
{
org.omg.CORBA.portable.InputStream _is = null;
try
{
org.omg.CORBA.portable.OutputStream _os = _request( "disconnect_the_service", true);
_is = _invoke(_os);
org.objectweb.ccm.demo3.Services _result = org.objectweb.ccm.demo3.ServicesHelper.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:omg.org/Components/NoConnection:1.0"))
{
throw org.omg.Components.NoConnectionHelper.read(_ax.getInputStream());
}
else throw new RuntimeException("Unexpected exception " + _id );
}
finally
{
this._releaseReply(_is);
}
}
else
{
org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "disconnect_the_service", _opsClass );
if( _so == null )
throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
ClientOperations _localServant = (ClientOperations)_so.servant;
org.objectweb.ccm.demo3.Services _result; try
{
_result = _localServant.disconnect_the_service();
}
finally
{
_servant_postinvoke(_so);
}
return _result;
}
}
}
public org.omg.CORBA.IRObject get_component_def() {
while(true)
{
if(! this._is_local())
{
org.omg.CORBA.portable.InputStream _is = null;
try
{
org.omg.CORBA.portable.OutputStream _os = _request( "get_component_def", true);
_is = _invoke(_os);
org.omg.CORBA.IRObject _result = org.omg.CORBA.IRObjectHelper.read(_is);
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( "get_component_def", _opsClass );
if( _so == null )
throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
ClientOperations _localServant = (ClientOperations)_so.servant;
org.omg.CORBA.IRObject _result; try
{
_result = _localServant.get_component_def();
}
finally
{
_servant_postinvoke(_so);
}
return _result;
}
}
}
public void remove() throws org.omg.Components.RemoveFailure {
while(true)
{
if(! this._is_local())
{
org.omg.CORBA.portable.InputStream _is = null;
try
{
org.omg.CORBA.portable.OutputStream _os = _request( "remove", true);
_is = _invoke(_os);
return;
}
catch( org.omg.CORBA.portable.RemarshalException _rx ){}
catch( org.omg.CORBA.portable.ApplicationException _ax )
{
String _id = _ax.getId();
if( _id.equals("IDL:omg.org/Components/RemoveFailure:1.0"))
{
throw org.omg.Components.RemoveFailureHelper.read(_ax.getInputStream());
}
else throw new RuntimeException("Unexpected exception " + _id );
}
finally
{
this._releaseReply(_is);
}
}
else
{
org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "remove", _opsClass );
if( _so == null )
throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
ClientOperations _localServant = (ClientOperations)_so.servant;
try
{
_localServant.remove();
}
finally
{
_servant_postinvoke(_so);
}
return;
}
}
}
public boolean same_component(org.omg.CORBA.Object object_ref) {
while(true)
{
if(! this._is_local())
{
org.omg.CORBA.portable.InputStream _is = null;
try
{
org.omg.CORBA.portable.OutputStream _os = _request( "same_component", true);
_os.write_Object(object_ref);
_is = _invoke(_os);
boolean _result = _is.read_boolean();
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( "same_component", _opsClass );
if( _so == null )
throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
ClientOperations _localServant = (ClientOperations)_so.servant;
boolean _result; try
{
_result = _localServant.same_component(object_ref);
}
finally
{
_servant_postinvoke(_so);
}
return _result;
}
}
}
public org.omg.Components.ConnectionDescription[] get_connections(java.lang.String name) throws org.omg.Components.InvalidName {
while(true)
{
if(! this._is_local())
{
org.omg.CORBA.portable.InputStream _is = null;
try
{
org.omg.CORBA.portable.OutputStream _os = _request( "get_connections", true);
_os.write_string(name);
_is = _invoke(_os);
org.omg.Components.ConnectionDescription[] _result = org.omg.Components.ConnectionDescriptionsHelper.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:omg.org/Components/InvalidName:1.0"))
{
throw org.omg.Components.InvalidNameHelper.read(_ax.getInputStream());
}
else throw new RuntimeException("Unexpected exception " + _id );
}
finally
{
this._releaseReply(_is);
}
}
else
{
org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "get_connections", _opsClass );
if( _so == null )
throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
ClientOperations _localServant = (ClientOperations)_so.servant;
org.omg.Components.ConnectionDescription[] _result; try
{
_result = _localServant.get_connections(name);
}
finally
{
_servant_postinvoke(_so);
}
return _result;
}
}
}
public org.omg.CORBA.Object disconnect(java.lang.String name, org.omg.Components.Cookie ck) throws org.omg.Components.CookieRequired,org.omg.Components.NoConnection,org.omg.Components.InvalidConnection,org.omg.Components.InvalidName {
while(true)
{
if(! this._is_local())
{
org.omg.CORBA.portable.InputStream _is = null;
try
{
org.omg.CORBA.portable.OutputStream _os = _request( "disconnect", true);
_os.write_string(name);
((org.omg.CORBA_2_3.portable.OutputStream)_os).write_value (ck );
_is = _invoke(_os);
org.omg.CORBA.Object _result = _is.read_Object();
return _result;
}
catch( org.omg.CORBA.portable.RemarshalException _rx ){}
catch( org.omg.CORBA.portable.ApplicationException _ax )
{
String _id = _ax.getId();
if( _id.equals("IDL:omg.org/Components/CookieRequired:1.0"))
{
throw org.omg.Components.CookieRequiredHelper.read(_ax.getInputStream());
}
else if( _id.equals("IDL:omg.org/Components/NoConnection:1.0"))
{
throw org.omg.Components.NoConnectionHelper.read(_ax.getInputStream());
}
else if( _id.equals("IDL:omg.org/Components/InvalidConnection:1.0"))
{
throw org.omg.Components.InvalidConnectionHelper.read(_ax.getInputStream());
}
else if( _id.equals("IDL:omg.org/Components/InvalidName:1.0"))
{
throw org.omg.Components.InvalidNameHelper.read(_ax.getInputStream());
}
else throw new RuntimeException("Unexpected exception " + _id );
}
finally
{
this._releaseReply(_is);
}
}
else
{
org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "disconnect", _opsClass );
if( _so == null )
throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
ClientOperations _localServant = (ClientOperations)_so.servant;
org.omg.CORBA.Object _result; try
{
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -