1 // Tie class generated by rmic, do not edit. 2 // Contents subject to change without notice. 3 4 import java.io.Serializable; 5 import java.net.InetAddress; 6 import java.rmi.Remote; 7 import java.rmi.RemoteException; 8 import java.util.HashMap; 9 import java.util.concurrent.ConcurrentHashMap; 10 import java.util.concurrent.locks.ReentrantLock; 11 import javax.rmi.CORBA.Tie; 12 import javax.rmi.CORBA.Util; 13 import org.omg.CORBA.BAD_OPERATION; 14 import org.omg.CORBA.ORB; 15 import org.omg.CORBA.SystemException; 16 import org.omg.CORBA.portable.InputStream; 17 import org.omg.CORBA.portable.OutputStream; 18 import org.omg.CORBA.portable.ResponseHandler; 19 import org.omg.CORBA.portable.UnknownException; 20 import org.omg.CORBA_2_3.portable.ObjectImpl; 21 22 23 public class _HelloImpl_Tie extends ObjectImpl implements Tie { 24 25 private HelloImpl target = null; 26 27 private static final String[] _type_ids = { 28 "RMI:HelloInterface:0000000000000000" 29 }; 30 31 public void setTarget(Remote target) { 32 this.target = (HelloImpl) target; 33 } 34 35 public Remote getTarget() { 36 return target; 37 } 38 39 public org.omg.CORBA.Object thisObject() { 40 return this; 41 } 42 43 public void deactivate() { 44 _orb().disconnect(this); 45 _set_delegate(null); 46 target = null; 47 } 48 49 public ORB orb() { 50 return _orb(); 51 } 52 53 public void orb(ORB orb) { 54 orb.connect(this); 55 } 56 57 public String[] _ids() { 58 return (String[]) _type_ids.clone(); 59 } 60 61 public OutputStream _invoke(String method, InputStream _in, ResponseHandler reply) throws SystemException { 62 try { 63 org.omg.CORBA_2_3.portable.InputStream in = 64 (org.omg.CORBA_2_3.portable.InputStream) _in; 65 switch (method.length()) { 66 case 8: 67 if (method.equals("sayHello")) { 68 String arg0 = (String) in.read_value(String.class); 69 String result = target.sayHello(arg0); 70 org.omg.CORBA_2_3.portable.OutputStream out = 71 (org.omg.CORBA_2_3.portable.OutputStream) reply.createReply(); 72 out.write_value(result,String.class); 73 return out; 74 } 75 case 14: 76 if (method.equals("sayHelloToTest")) { 77 Test arg0 = (Test) in.read_value(Test.class); 78 String result = target.sayHelloToTest(arg0); 79 org.omg.CORBA_2_3.portable.OutputStream out = 80 (org.omg.CORBA_2_3.portable.OutputStream) reply.createReply(); 81 out.write_value(result,String.class); 82 return out; 83 } 84 case 19: 85 if (method.equals("sayHelloWithHashMap")) { 86 ConcurrentHashMap arg0 = (ConcurrentHashMap) in.read_value(ConcurrentHashMap.class); 87 String result = target.sayHelloWithHashMap(arg0); 88 org.omg.CORBA_2_3.portable.OutputStream out = 89 (org.omg.CORBA_2_3.portable.OutputStream) reply.createReply(); 90 out.write_value(result,String.class); 91 return out; 92 } 93 case 20: 94 if (method.equals("sayHelloWithHashMap2")) { 95 HashMap arg0 = (HashMap) in.read_value(HashMap.class); 96 String result = target.sayHelloWithHashMap2(arg0); 97 org.omg.CORBA_2_3.portable.OutputStream out = 98 (org.omg.CORBA_2_3.portable.OutputStream) reply.createReply(); 99 out.write_value(result,String.class); 100 return out; 101 } 102 case 23: 103 if (method.equals("sayHelloWithInetAddress")) { 104 InetAddress arg0 = (InetAddress) in.read_value(InetAddress.class); 105 String result = target.sayHelloWithInetAddress(arg0); 106 org.omg.CORBA_2_3.portable.OutputStream out = 107 (org.omg.CORBA_2_3.portable.OutputStream) reply.createReply(); 108 out.write_value(result,String.class); 109 return out; 110 } 111 case 25: 112 if (method.equals("sayHelloWithReentrantLock")) { 113 ReentrantLock arg0 = (ReentrantLock) in.read_value(ReentrantLock.class); 114 String result = target.sayHelloWithReentrantLock(arg0); 115 org.omg.CORBA_2_3.portable.OutputStream out = 116 (org.omg.CORBA_2_3.portable.OutputStream) reply.createReply(); 117 out.write_value(result,String.class); 118 return out; 119 } 120 } 121 throw new BAD_OPERATION(); 122 } catch (SystemException ex) { 123 throw ex; 124 } catch (Throwable ex) { 125 throw new UnknownException(ex); 126 } 127 } 128 }