Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/test/javax/rmi/PortableRemoteObject/_HelloInterface_Stub.java
38838 views
// Stub class generated by rmic, do not edit.1// Contents subject to change without notice.23import java.io.Serializable;4import java.net.InetAddress;5import java.rmi.Remote;6import java.rmi.RemoteException;7import java.rmi.UnexpectedException;8import java.util.HashMap;9import java.util.concurrent.ConcurrentHashMap;10import java.util.concurrent.locks.ReentrantLock;11import javax.rmi.CORBA.Stub;12import javax.rmi.CORBA.Util;13import org.omg.CORBA.ORB;14import org.omg.CORBA.SystemException;15import org.omg.CORBA.portable.ApplicationException;16import org.omg.CORBA.portable.InputStream;17import org.omg.CORBA.portable.OutputStream;18import org.omg.CORBA.portable.RemarshalException;19import org.omg.CORBA.portable.ResponseHandler;20import org.omg.CORBA.portable.ServantObject;212223public class _HelloInterface_Stub extends Stub implements HelloInterface {2425private static final String[] _type_ids = {26"RMI:HelloInterface:0000000000000000"27};2829public String[] _ids() {30return (String[]) _type_ids.clone();31}3233public String sayHello(String arg0) throws java.rmi.RemoteException {34if (!Util.isLocal(this)) {35try {36org.omg.CORBA_2_3.portable.InputStream in = null;37try {38org.omg.CORBA_2_3.portable.OutputStream out =39(org.omg.CORBA_2_3.portable.OutputStream)40_request("sayHello", true);41out.write_value(arg0,String.class);42in = (org.omg.CORBA_2_3.portable.InputStream)_invoke(out);43return (String) in.read_value(String.class);44} catch (ApplicationException ex) {45in = (org.omg.CORBA_2_3.portable.InputStream) ex.getInputStream();46String $_id = in.read_string();47throw new UnexpectedException($_id);48} catch (RemarshalException ex) {49return sayHello(arg0);50} finally {51_releaseReply(in);52}53} catch (SystemException ex) {54throw Util.mapSystemException(ex);55}56} else {57ServantObject so = _servant_preinvoke("sayHello",HelloInterface.class);58if (so == null) {59return sayHello(arg0);60}61try {62return ((HelloInterface)so.servant).sayHello(arg0);63} catch (Throwable ex) {64Throwable exCopy = (Throwable)Util.copyObject(ex,_orb());65throw Util.wrapException(exCopy);66} finally {67_servant_postinvoke(so);68}69}70}7172public String sayHelloToTest(Test arg0) throws java.rmi.RemoteException {73if (!Util.isLocal(this)) {74try {75org.omg.CORBA_2_3.portable.InputStream in = null;76try {77org.omg.CORBA_2_3.portable.OutputStream out =78(org.omg.CORBA_2_3.portable.OutputStream)79_request("sayHelloToTest", true);80out.write_value(arg0,Test.class);81in = (org.omg.CORBA_2_3.portable.InputStream)_invoke(out);82return (String) in.read_value(String.class);83} catch (ApplicationException ex) {84in = (org.omg.CORBA_2_3.portable.InputStream) ex.getInputStream();85String $_id = in.read_string();86throw new UnexpectedException($_id);87} catch (RemarshalException ex) {88return sayHelloToTest(arg0);89} finally {90_releaseReply(in);91}92} catch (SystemException ex) {93throw Util.mapSystemException(ex);94}95} else {96ServantObject so = _servant_preinvoke("sayHelloToTest",HelloInterface.class);97if (so == null) {98return sayHelloToTest(arg0);99}100try {101Test arg0Copy = (Test) Util.copyObject(arg0,_orb());102return ((HelloInterface)so.servant).sayHelloToTest(arg0Copy);103} catch (Throwable ex) {104Throwable exCopy = (Throwable)Util.copyObject(ex,_orb());105throw Util.wrapException(exCopy);106} finally {107_servant_postinvoke(so);108}109}110}111112public String sayHelloWithInetAddress(InetAddress arg0) throws java.rmi.RemoteException {113if (!Util.isLocal(this)) {114try {115org.omg.CORBA_2_3.portable.InputStream in = null;116try {117org.omg.CORBA_2_3.portable.OutputStream out =118(org.omg.CORBA_2_3.portable.OutputStream)119_request("sayHelloWithInetAddress", true);120out.write_value(arg0,InetAddress.class);121in = (org.omg.CORBA_2_3.portable.InputStream)_invoke(out);122return (String) in.read_value(String.class);123} catch (ApplicationException ex) {124in = (org.omg.CORBA_2_3.portable.InputStream) ex.getInputStream();125String $_id = in.read_string();126throw new UnexpectedException($_id);127} catch (RemarshalException ex) {128return sayHelloWithInetAddress(arg0);129} finally {130_releaseReply(in);131}132} catch (SystemException ex) {133throw Util.mapSystemException(ex);134}135} else {136ServantObject so = _servant_preinvoke("sayHelloWithInetAddress",HelloInterface.class);137if (so == null) {138return sayHelloWithInetAddress(arg0);139}140try {141InetAddress arg0Copy = (InetAddress) Util.copyObject(arg0,_orb());142return ((HelloInterface)so.servant).sayHelloWithInetAddress(arg0Copy);143} catch (Throwable ex) {144Throwable exCopy = (Throwable)Util.copyObject(ex,_orb());145throw Util.wrapException(exCopy);146} finally {147_servant_postinvoke(so);148}149}150}151152public String sayHelloWithHashMap(ConcurrentHashMap arg0) throws java.rmi.RemoteException {153if (!Util.isLocal(this)) {154try {155org.omg.CORBA_2_3.portable.InputStream in = null;156try {157org.omg.CORBA_2_3.portable.OutputStream out =158(org.omg.CORBA_2_3.portable.OutputStream)159_request("sayHelloWithHashMap", true);160out.write_value(arg0,ConcurrentHashMap.class);161in = (org.omg.CORBA_2_3.portable.InputStream)_invoke(out);162return (String) in.read_value(String.class);163} catch (ApplicationException ex) {164in = (org.omg.CORBA_2_3.portable.InputStream) ex.getInputStream();165String $_id = in.read_string();166throw new UnexpectedException($_id);167} catch (RemarshalException ex) {168return sayHelloWithHashMap(arg0);169} finally {170_releaseReply(in);171}172} catch (SystemException ex) {173throw Util.mapSystemException(ex);174}175} else {176ServantObject so = _servant_preinvoke("sayHelloWithHashMap",HelloInterface.class);177if (so == null) {178return sayHelloWithHashMap(arg0);179}180try {181ConcurrentHashMap arg0Copy = (ConcurrentHashMap) Util.copyObject(arg0,_orb());182return ((HelloInterface)so.servant).sayHelloWithHashMap(arg0Copy);183} catch (Throwable ex) {184Throwable exCopy = (Throwable)Util.copyObject(ex,_orb());185throw Util.wrapException(exCopy);186} finally {187_servant_postinvoke(so);188}189}190}191192public String sayHelloWithHashMap2(HashMap arg0) throws java.rmi.RemoteException {193if (!Util.isLocal(this)) {194try {195org.omg.CORBA_2_3.portable.InputStream in = null;196try {197org.omg.CORBA_2_3.portable.OutputStream out =198(org.omg.CORBA_2_3.portable.OutputStream)199_request("sayHelloWithHashMap2", true);200out.write_value(arg0,HashMap.class);201in = (org.omg.CORBA_2_3.portable.InputStream)_invoke(out);202return (String) in.read_value(String.class);203} catch (ApplicationException ex) {204in = (org.omg.CORBA_2_3.portable.InputStream) ex.getInputStream();205String $_id = in.read_string();206throw new UnexpectedException($_id);207} catch (RemarshalException ex) {208return sayHelloWithHashMap2(arg0);209} finally {210_releaseReply(in);211}212} catch (SystemException ex) {213throw Util.mapSystemException(ex);214}215} else {216ServantObject so = _servant_preinvoke("sayHelloWithHashMap2",HelloInterface.class);217if (so == null) {218return sayHelloWithHashMap2(arg0);219}220try {221HashMap arg0Copy = (HashMap) Util.copyObject(arg0,_orb());222return ((HelloInterface)so.servant).sayHelloWithHashMap2(arg0Copy);223} catch (Throwable ex) {224Throwable exCopy = (Throwable)Util.copyObject(ex,_orb());225throw Util.wrapException(exCopy);226} finally {227_servant_postinvoke(so);228}229}230}231232public String sayHelloWithReentrantLock(ReentrantLock arg0) throws java.rmi.RemoteException {233if (!Util.isLocal(this)) {234try {235org.omg.CORBA_2_3.portable.InputStream in = null;236try {237org.omg.CORBA_2_3.portable.OutputStream out =238(org.omg.CORBA_2_3.portable.OutputStream)239_request("sayHelloWithReentrantLock", true);240out.write_value(arg0,ReentrantLock.class);241in = (org.omg.CORBA_2_3.portable.InputStream)_invoke(out);242return (String) in.read_value(String.class);243} catch (ApplicationException ex) {244in = (org.omg.CORBA_2_3.portable.InputStream) ex.getInputStream();245String $_id = in.read_string();246throw new UnexpectedException($_id);247} catch (RemarshalException ex) {248return sayHelloWithReentrantLock(arg0);249} finally {250_releaseReply(in);251}252} catch (SystemException ex) {253throw Util.mapSystemException(ex);254}255} else {256ServantObject so = _servant_preinvoke("sayHelloWithReentrantLock",HelloInterface.class);257if (so == null) {258return sayHelloWithReentrantLock(arg0);259}260try {261ReentrantLock arg0Copy = (ReentrantLock) Util.copyObject(arg0,_orb());262return ((HelloInterface)so.servant).sayHelloWithReentrantLock(arg0Copy);263} catch (Throwable ex) {264Throwable exCopy = (Throwable)Util.copyObject(ex,_orb());265throw Util.wrapException(exCopy);266} finally {267_servant_postinvoke(so);268}269}270}271}272273274