blob: 7ee760d3b0e64ebe14f8d311eb193082e9707679 [file] [log] [blame]
J. Duke319a3b92007-12-01 00:00:00 +00001/*
2 * Copyright 1998-1999 Sun Microsystems, Inc. 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
20 * CA 95054 USA or visit www.sun.com if you need additional information or
21 * have any questions.
22 */
23
24// Stub class generated by rmic, do not edit.
25// Contents subject to change without notice.
26
27public final class ElucidateNoSuchMethod_Stub
28 extends java.rmi.server.RemoteStub
29 implements ActivateMe, java.rmi.Remote
30{
31 private static final java.rmi.server.Operation[] operations = {
32 new java.rmi.server.Operation("void ping()"),
33 new java.rmi.server.Operation("void shutdown()")
34 };
35
36 private static final long interfaceHash = 10333549859256328L;
37
38 private static final long serialVersionUID = 2;
39
40 private static boolean useNewInvoke;
41 private static java.lang.reflect.Method $method_ping_0;
42 private static java.lang.reflect.Method $method_shutdown_1;
43
44 static {
45 try {
46 java.rmi.server.RemoteRef.class.getMethod("invoke",
47 new java.lang.Class[] {
48 java.rmi.Remote.class,
49 java.lang.reflect.Method.class,
50 java.lang.Object[].class,
51 long.class
52 });
53 useNewInvoke = true;
54 $method_ping_0 = ActivateMe.class.getMethod("ping", new java.lang.Class[] {});
55 $method_shutdown_1 = ActivateMe.class.getMethod("shutdown", new java.lang.Class[] {});
56 } catch (java.lang.NoSuchMethodException e) {
57 useNewInvoke = false;
58 }
59 }
60
61 // constructors
62 public ElucidateNoSuchMethod_Stub() {
63 super();
64 }
65 public ElucidateNoSuchMethod_Stub(java.rmi.server.RemoteRef ref) {
66 super(ref);
67 }
68
69 // methods from remote interfaces
70
71 // implementation of ping()
72 public void ping()
73 throws java.rmi.RemoteException
74 {
75 try {
76 if (useNewInvoke) {
77 ref.invoke(this, $method_ping_0, null, 5866401369815527589L);
78 } else {
79 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject) this, operations, 0, interfaceHash);
80 ref.invoke(call);
81 ref.done(call);
82 }
83 } catch (java.lang.RuntimeException e) {
84 throw e;
85 } catch (java.rmi.RemoteException e) {
86 throw e;
87 } catch (java.lang.Exception e) {
88 throw new java.rmi.UnexpectedException("undeclared checked exception", e);
89 }
90 }
91
92 // implementation of shutdown()
93 public void shutdown()
94 throws java.lang.Exception
95 {
96 if (useNewInvoke) {
97 ref.invoke(this, $method_shutdown_1, null, -7207851917985848402L);
98 } else {
99 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject) this, operations, 1, interfaceHash);
100 ref.invoke(call);
101 ref.done(call);
102 }
103 }
104}