com.arjuna.ArjunaOTS.ActionControlPOA Maven / Gradle / Ivy
package com.arjuna.ArjunaOTS;
/**
* Generated from IDL interface "ActionControl".
*
* @author JacORB IDL compiler V 2.3.1 (JBoss patch01), 29-Jul-2009
* @version generated at Oct 2, 2012 3:07:46 PM
*/
public abstract class ActionControlPOA
extends org.omg.PortableServer.Servant
implements org.omg.CORBA.portable.InvokeHandler, com.arjuna.ArjunaOTS.ActionControlOperations
{
static private final java.util.Hashtable m_opsHash = new java.util.Hashtable();
static
{
m_opsHash.put ( "get_terminator", new java.lang.Integer(0));
m_opsHash.put ( "get_coordinator", new java.lang.Integer(1));
m_opsHash.put ( "getParentControl", new java.lang.Integer(2));
m_opsHash.put ( "destroy", new java.lang.Integer(3));
}
private String[] ids = {"IDL:arjuna.com/ArjunaOTS/ActionControl:1.0","IDL:omg.org/CosTransactions/Control:1.0"};
public com.arjuna.ArjunaOTS.ActionControl _this()
{
return com.arjuna.ArjunaOTS.ActionControlHelper.narrow(_this_object());
}
public com.arjuna.ArjunaOTS.ActionControl _this(org.omg.CORBA.ORB orb)
{
return com.arjuna.ArjunaOTS.ActionControlHelper.narrow(_this_object(orb));
}
public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler)
throws org.omg.CORBA.SystemException
{
org.omg.CORBA.portable.OutputStream _out = null;
// do something
// quick lookup of operation
java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method );
if ( null == opsIndex )
throw new org.omg.CORBA.BAD_OPERATION(method + " not found");
switch ( opsIndex.intValue() )
{
case 0: // get_terminator
{
try
{
_out = handler.createReply();
org.omg.CosTransactions.TerminatorHelper.write(_out,get_terminator());
}
catch(org.omg.CosTransactions.Unavailable _ex0)
{
_out = handler.createExceptionReply();
org.omg.CosTransactions.UnavailableHelper.write(_out, _ex0);
}
break;
}
case 1: // get_coordinator
{
try
{
_out = handler.createReply();
org.omg.CosTransactions.CoordinatorHelper.write(_out,get_coordinator());
}
catch(org.omg.CosTransactions.Unavailable _ex0)
{
_out = handler.createExceptionReply();
org.omg.CosTransactions.UnavailableHelper.write(_out, _ex0);
}
break;
}
case 2: // getParentControl
{
try
{
_out = handler.createReply();
org.omg.CosTransactions.ControlHelper.write(_out,getParentControl());
}
catch(org.omg.CosTransactions.Unavailable _ex0)
{
_out = handler.createExceptionReply();
org.omg.CosTransactions.UnavailableHelper.write(_out, _ex0);
}
break;
}
case 3: // destroy
{
try
{
_out = handler.createReply();
destroy();
}
catch(com.arjuna.ArjunaOTS.Destroyed _ex0)
{
_out = handler.createExceptionReply();
com.arjuna.ArjunaOTS.DestroyedHelper.write(_out, _ex0);
}
catch(com.arjuna.ArjunaOTS.BadControl _ex1)
{
_out = handler.createExceptionReply();
com.arjuna.ArjunaOTS.BadControlHelper.write(_out, _ex1);
}
catch(com.arjuna.ArjunaOTS.ActiveThreads _ex2)
{
_out = handler.createExceptionReply();
com.arjuna.ArjunaOTS.ActiveThreadsHelper.write(_out, _ex2);
}
catch(com.arjuna.ArjunaOTS.ActiveTransaction _ex3)
{
_out = handler.createExceptionReply();
com.arjuna.ArjunaOTS.ActiveTransactionHelper.write(_out, _ex3);
}
break;
}
}
return _out;
}
public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] obj_id)
{
return ids;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy