1/* 2 * Copyright (c) 1998, 2001, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24// Stub class generated by rmic, do not edit. 25// Contents subject to change without notice. 26 27public final class InactiveGroup_Stub 28 extends java.rmi.server.RemoteStub 29 implements ActivateMe 30{ 31 private static final java.rmi.server.Operation[] operations = { 32 new java.rmi.server.Operation("ActivateMe getUnicastVersion()"), 33 new java.rmi.server.Operation("void ping()"), 34 new java.rmi.server.Operation("void shutdown()") 35 }; 36 37 private static final long interfaceHash = -23477180812089514L; 38 39 private static final long serialVersionUID = 2; 40 41 private static boolean useNewInvoke; 42 private static java.lang.reflect.Method $method_getUnicastVersion_0; 43 private static java.lang.reflect.Method $method_ping_1; 44 private static java.lang.reflect.Method $method_shutdown_2; 45 46 static { 47 try { 48 java.rmi.server.RemoteRef.class.getMethod("invoke", 49 new java.lang.Class[] { 50 java.rmi.Remote.class, 51 java.lang.reflect.Method.class, 52 java.lang.Object[].class, 53 long.class 54 }); 55 useNewInvoke = true; 56 $method_getUnicastVersion_0 = ActivateMe.class.getMethod("getUnicastVersion", new java.lang.Class[] {}); 57 $method_ping_1 = ActivateMe.class.getMethod("ping", new java.lang.Class[] {}); 58 $method_shutdown_2 = ActivateMe.class.getMethod("shutdown", new java.lang.Class[] {}); 59 } catch (java.lang.NoSuchMethodException e) { 60 useNewInvoke = false; 61 } 62 } 63 64 // constructors 65 public InactiveGroup_Stub() { 66 super(); 67 } 68 public InactiveGroup_Stub(java.rmi.server.RemoteRef ref) { 69 super(ref); 70 } 71 72 // methods from remote interfaces 73 74 // implementation of getUnicastVersion() 75 public ActivateMe getUnicastVersion() 76 throws java.rmi.RemoteException 77 { 78 try { 79 if (useNewInvoke) { 80 Object $result = ref.invoke(this, $method_getUnicastVersion_0, null, -4366214672304578894L); 81 return ((ActivateMe) $result); 82 } else { 83 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject) this, operations, 0, interfaceHash); 84 ref.invoke(call); 85 ActivateMe $result; 86 try { 87 java.io.ObjectInput in = call.getInputStream(); 88 $result = (ActivateMe) in.readObject(); 89 } catch (java.io.IOException e) { 90 throw new java.rmi.UnmarshalException("error unmarshalling return", e); 91 } catch (java.lang.ClassNotFoundException e) { 92 throw new java.rmi.UnmarshalException("error unmarshalling return", e); 93 } finally { 94 ref.done(call); 95 } 96 return $result; 97 } 98 } catch (java.lang.RuntimeException e) { 99 throw e; 100 } catch (java.rmi.RemoteException e) { 101 throw e; 102 } catch (java.lang.Exception e) { 103 throw new java.rmi.UnexpectedException("undeclared checked exception", e); 104 } 105 } 106 107 // implementation of ping() 108 public void ping() 109 throws java.rmi.RemoteException 110 { 111 try { 112 if (useNewInvoke) { 113 ref.invoke(this, $method_ping_1, null, 5866401369815527589L); 114 } else { 115 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject) this, operations, 1, interfaceHash); 116 ref.invoke(call); 117 ref.done(call); 118 } 119 } catch (java.lang.RuntimeException e) { 120 throw e; 121 } catch (java.rmi.RemoteException e) { 122 throw e; 123 } catch (java.lang.Exception e) { 124 throw new java.rmi.UnexpectedException("undeclared checked exception", e); 125 } 126 } 127 128 // implementation of shutdown() 129 public void shutdown() 130 throws java.lang.Exception 131 { 132 if (useNewInvoke) { 133 ref.invoke(this, $method_shutdown_2, null, -7207851917985848402L); 134 } else { 135 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject) this, operations, 2, interfaceHash); 136 ref.invoke(call); 137 ref.done(call); 138 } 139 } 140} 141