Package org.objectweb.jotm

Source Code of org.objectweb.jotm._RecoveryCoordinator_Stub

// Stub class generated by rmic, do not edit.
// Contents subject to change without notice.

package org.objectweb.jotm;

import java.io.Serializable;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.rmi.UnexpectedException;
import javax.rmi.CORBA.Stub;
import javax.rmi.CORBA.Util;
import javax.rmi.PortableRemoteObject;
import org.omg.CORBA.ORB;
import org.omg.CORBA.SystemException;
import org.omg.CORBA.portable.ApplicationException;
import org.omg.CORBA.portable.InputStream;
import org.omg.CORBA.portable.OutputStream;
import org.omg.CORBA.portable.RemarshalException;
import org.omg.CORBA.portable.ResponseHandler;
import org.omg.CORBA.portable.ServantObject;


public class _RecoveryCoordinator_Stub extends Stub implements RecoveryCoordinator {
   
    private static final String[] _type_ids = {
        "RMI:org.objectweb.jotm.RecoveryCoordinator:0000000000000000"
    };
   
    public String[] _ids() {
        return _type_ids;
    }
   
    public int replay_completion(Resource arg0) throws RemoteException {
        if (!Util.isLocal(this)) {
            try {
                org.omg.CORBA.portable.InputStream in = null;
                try {
                    OutputStream out = _request("replay_completion", true);
                    Util.writeRemoteObject(out,arg0);
                    in = _invoke(out);
                    return in.read_long();
                } catch (ApplicationException ex) {
                    in = ex.getInputStream();
                    String id = in.read_string();
                    throw new UnexpectedException(id);
                } catch (RemarshalException ex) {
                    return replay_completion(arg0);
                } finally {
                    _releaseReply(in);
                }
            } catch (SystemException ex) {
                throw Util.mapSystemException(ex);
            }
        } else {
            ServantObject so = _servant_preinvoke("replay_completion",RecoveryCoordinator.class);
            if (so == null) {
                return replay_completion(arg0);
            }
            try {
                Resource arg0Copy = (Resource) Util.copyObject(arg0,_orb());
                return ((RecoveryCoordinator)so.servant).replay_completion(arg0Copy);
            } catch (Throwable ex) {
                Throwable exCopy = (Throwable)Util.copyObject(ex,_orb());
                throw Util.wrapException(exCopy);
            } finally {
                _servant_postinvoke(so);
            }
        }
    }
}
TOP

Related Classes of org.objectweb.jotm._RecoveryCoordinator_Stub

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.