
org.omg.CosTransactions._RecoveryCoordinatorStub Maven / Gradle / Ivy
The newest version!
package org.omg.CosTransactions;
/**
* Generated from IDL interface "RecoveryCoordinator".
*
* @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 _RecoveryCoordinatorStub
extends org.omg.CORBA.portable.ObjectImpl
implements org.omg.CosTransactions.RecoveryCoordinator
{
private String[] ids = {"IDL:omg.org/CosTransactions/RecoveryCoordinator:1.0"};
public String[] _ids()
{
return ids;
}
public final static java.lang.Class _opsClass = org.omg.CosTransactions.RecoveryCoordinatorOperations.class;
public org.omg.CosTransactions.Status replay_completion(org.omg.CosTransactions.Resource r) throws org.omg.CosTransactions.NotPrepared
{
while(true)
{
if(! this._is_local())
{
org.omg.CORBA.portable.InputStream _is = null;
org.omg.CORBA.portable.OutputStream _os = null;
try
{
_os = _request( "replay_completion", true);
org.omg.CosTransactions.ResourceHelper.write(_os,r);
_is = _invoke(_os);
org.omg.CosTransactions.Status _result = org.omg.CosTransactions.StatusHelper.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/NotPrepared:1.0"))
{
throw org.omg.CosTransactions.NotPreparedHelper.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( "replay_completion", _opsClass );
if( _so == null )
throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
RecoveryCoordinatorOperations _localServant = (RecoveryCoordinatorOperations)_so.servant;
org.omg.CosTransactions.Status _result;
try
{
_result = _localServant.replay_completion(r);
}
finally
{
_servant_postinvoke(_so);
}
return _result;
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy