org.omg.CosTransactions._ControlStub Maven / Gradle / Ivy
The newest version!
package org.omg.CosTransactions;
/**
* Generated from IDL interface "Control".
*
* @author JacORB IDL compiler V 2.3.1 (JBoss patch01), 29-Jul-2009
* @version generated at Oct 2, 2012 3:07:46 PM
*/
public class _ControlStub
extends org.omg.CORBA.portable.ObjectImpl
implements org.omg.CosTransactions.Control
{
private String[] ids = {"IDL:omg.org/CosTransactions/Control:1.0"};
public String[] _ids()
{
return ids;
}
public final static java.lang.Class _opsClass = org.omg.CosTransactions.ControlOperations.class;
public org.omg.CosTransactions.Terminator get_terminator() throws org.omg.CosTransactions.Unavailable
{
while(true)
{
if(! this._is_local())
{
org.omg.CORBA.portable.InputStream _is = null;
org.omg.CORBA.portable.OutputStream _os = null;
try
{
_os = _request( "get_terminator", true);
_is = _invoke(_os);
org.omg.CosTransactions.Terminator _result = org.omg.CosTransactions.TerminatorHelper.read(_is);
return _result;
}
catch( org.omg.CORBA.portable.RemarshalException _rx ){}
catch( org.omg.CORBA.portable.ApplicationException _ax )
{
String _id = _ax.getId();
try
{
if( _id.equals("IDL:omg.org/CosTransactions/Unavailable:1.0"))
{
throw org.omg.CosTransactions.UnavailableHelper.read(_ax.getInputStream());
}
else
{
throw new RuntimeException("Unexpected exception " + _id );
}
}
finally
{
try
{
_ax.getInputStream().close();
}
catch (java.io.IOException e)
{
throw new RuntimeException("Unexpected exception " + e.toString() );
}
}
}
finally
{
if (_os != null)
{
try
{
_os.close();
}
catch (java.io.IOException e)
{
throw new RuntimeException("Unexpected exception " + e.toString() );
}
}
this._releaseReply(_is);
}
}
else
{
org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "get_terminator", _opsClass );
if( _so == null )
throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
ControlOperations _localServant = (ControlOperations)_so.servant;
org.omg.CosTransactions.Terminator _result;
try
{
_result = _localServant.get_terminator();
}
finally
{
_servant_postinvoke(_so);
}
return _result;
}
}
}
public org.omg.CosTransactions.Coordinator get_coordinator() throws org.omg.CosTransactions.Unavailable
{
while(true)
{
if(! this._is_local())
{
org.omg.CORBA.portable.InputStream _is = null;
org.omg.CORBA.portable.OutputStream _os = null;
try
{
_os = _request( "get_coordinator", true);
_is = _invoke(_os);
org.omg.CosTransactions.Coordinator _result = org.omg.CosTransactions.CoordinatorHelper.read(_is);
return _result;
}
catch( org.omg.CORBA.portable.RemarshalException _rx ){}
catch( org.omg.CORBA.portable.ApplicationException _ax )
{
String _id = _ax.getId();
try
{
if( _id.equals("IDL:omg.org/CosTransactions/Unavailable:1.0"))
{
throw org.omg.CosTransactions.UnavailableHelper.read(_ax.getInputStream());
}
else
{
throw new RuntimeException("Unexpected exception " + _id );
}
}
finally
{
try
{
_ax.getInputStream().close();
}
catch (java.io.IOException e)
{
throw new RuntimeException("Unexpected exception " + e.toString() );
}
}
}
finally
{
if (_os != null)
{
try
{
_os.close();
}
catch (java.io.IOException e)
{
throw new RuntimeException("Unexpected exception " + e.toString() );
}
}
this._releaseReply(_is);
}
}
else
{
org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "get_coordinator", _opsClass );
if( _so == null )
throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
ControlOperations _localServant = (ControlOperations)_so.servant;
org.omg.CosTransactions.Coordinator _result;
try
{
_result = _localServant.get_coordinator();
}
finally
{
_servant_postinvoke(_so);
}
return _result;
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy