Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/test/javax/rmi/PortableRemoteObject/_HelloImpl_Tie.java
38839 views
// Tie 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.util.HashMap;8import java.util.concurrent.ConcurrentHashMap;9import java.util.concurrent.locks.ReentrantLock;10import javax.rmi.CORBA.Tie;11import javax.rmi.CORBA.Util;12import org.omg.CORBA.BAD_OPERATION;13import org.omg.CORBA.ORB;14import org.omg.CORBA.SystemException;15import org.omg.CORBA.portable.InputStream;16import org.omg.CORBA.portable.OutputStream;17import org.omg.CORBA.portable.ResponseHandler;18import org.omg.CORBA.portable.UnknownException;19import org.omg.CORBA_2_3.portable.ObjectImpl;202122public class _HelloImpl_Tie extends ObjectImpl implements Tie {2324private HelloImpl target = null;2526private static final String[] _type_ids = {27"RMI:HelloInterface:0000000000000000"28};2930public void setTarget(Remote target) {31this.target = (HelloImpl) target;32}3334public Remote getTarget() {35return target;36}3738public org.omg.CORBA.Object thisObject() {39return this;40}4142public void deactivate() {43_orb().disconnect(this);44_set_delegate(null);45target = null;46}4748public ORB orb() {49return _orb();50}5152public void orb(ORB orb) {53orb.connect(this);54}5556public String[] _ids() {57return (String[]) _type_ids.clone();58}5960public OutputStream _invoke(String method, InputStream _in, ResponseHandler reply) throws SystemException {61try {62org.omg.CORBA_2_3.portable.InputStream in =63(org.omg.CORBA_2_3.portable.InputStream) _in;64switch (method.length()) {65case 8:66if (method.equals("sayHello")) {67String arg0 = (String) in.read_value(String.class);68String result = target.sayHello(arg0);69org.omg.CORBA_2_3.portable.OutputStream out =70(org.omg.CORBA_2_3.portable.OutputStream) reply.createReply();71out.write_value(result,String.class);72return out;73}74case 14:75if (method.equals("sayHelloToTest")) {76Test arg0 = (Test) in.read_value(Test.class);77String result = target.sayHelloToTest(arg0);78org.omg.CORBA_2_3.portable.OutputStream out =79(org.omg.CORBA_2_3.portable.OutputStream) reply.createReply();80out.write_value(result,String.class);81return out;82}83case 19:84if (method.equals("sayHelloWithHashMap")) {85ConcurrentHashMap arg0 = (ConcurrentHashMap) in.read_value(ConcurrentHashMap.class);86String result = target.sayHelloWithHashMap(arg0);87org.omg.CORBA_2_3.portable.OutputStream out =88(org.omg.CORBA_2_3.portable.OutputStream) reply.createReply();89out.write_value(result,String.class);90return out;91}92case 20:93if (method.equals("sayHelloWithHashMap2")) {94HashMap arg0 = (HashMap) in.read_value(HashMap.class);95String result = target.sayHelloWithHashMap2(arg0);96org.omg.CORBA_2_3.portable.OutputStream out =97(org.omg.CORBA_2_3.portable.OutputStream) reply.createReply();98out.write_value(result,String.class);99return out;100}101case 23:102if (method.equals("sayHelloWithInetAddress")) {103InetAddress arg0 = (InetAddress) in.read_value(InetAddress.class);104String result = target.sayHelloWithInetAddress(arg0);105org.omg.CORBA_2_3.portable.OutputStream out =106(org.omg.CORBA_2_3.portable.OutputStream) reply.createReply();107out.write_value(result,String.class);108return out;109}110case 25:111if (method.equals("sayHelloWithReentrantLock")) {112ReentrantLock arg0 = (ReentrantLock) in.read_value(ReentrantLock.class);113String result = target.sayHelloWithReentrantLock(arg0);114org.omg.CORBA_2_3.portable.OutputStream out =115(org.omg.CORBA_2_3.portable.OutputStream) reply.createReply();116out.write_value(result,String.class);117return out;118}119}120throw new BAD_OPERATION();121} catch (SystemException ex) {122throw ex;123} catch (Throwable ex) {124throw new UnknownException(ex);125}126}127}128129130