blob: 16a3278505bbca43fa6e7f248db76d7c50f98a86 [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 UnregisterGroup_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 justGoAway()"),
33 new java.rmi.server.Operation("void ping()"),
34 new java.rmi.server.Operation("void shutdown()"),
35 new java.rmi.server.Operation("void unregister()")
36 };
37
38 private static final long interfaceHash = -4733924075192691630L;
39
40 private static final long serialVersionUID = 2;
41
42 private static boolean useNewInvoke;
43 private static java.lang.reflect.Method $method_justGoAway_0;
44 private static java.lang.reflect.Method $method_ping_1;
45 private static java.lang.reflect.Method $method_shutdown_2;
46 private static java.lang.reflect.Method $method_unregister_3;
47
48 static {
49 try {
50 java.rmi.server.RemoteRef.class.getMethod("invoke",
51 new java.lang.Class[] {
52 java.rmi.Remote.class,
53 java.lang.reflect.Method.class,
54 java.lang.Object[].class,
55 long.class
56 });
57 useNewInvoke = true;
58 $method_justGoAway_0 = ActivateMe.class.getMethod("justGoAway", new java.lang.Class[] {});
59 $method_ping_1 = ActivateMe.class.getMethod("ping", new java.lang.Class[] {});
60 $method_shutdown_2 = ActivateMe.class.getMethod("shutdown", new java.lang.Class[] {});
61 $method_unregister_3 = ActivateMe.class.getMethod("unregister", new java.lang.Class[] {});
62 } catch (java.lang.NoSuchMethodException e) {
63 useNewInvoke = false;
64 }
65 }
66
67 // constructors
68 public UnregisterGroup_Stub() {
69 super();
70 }
71 public UnregisterGroup_Stub(java.rmi.server.RemoteRef ref) {
72 super(ref);
73 }
74
75 // methods from remote interfaces
76
77 // implementation of justGoAway()
78 public void justGoAway()
79 throws java.rmi.RemoteException
80 {
81 try {
82 if (useNewInvoke) {
83 ref.invoke(this, $method_justGoAway_0, null, -5382478058620783904L);
84 } else {
85 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject) this, operations, 0, interfaceHash);
86 ref.invoke(call);
87 ref.done(call);
88 }
89 } catch (java.lang.RuntimeException e) {
90 throw e;
91 } catch (java.rmi.RemoteException e) {
92 throw e;
93 } catch (java.lang.Exception e) {
94 throw new java.rmi.UnexpectedException("undeclared checked exception", e);
95 }
96 }
97
98 // implementation of ping()
99 public void ping()
100 throws java.rmi.RemoteException
101 {
102 try {
103 if (useNewInvoke) {
104 ref.invoke(this, $method_ping_1, null, 5866401369815527589L);
105 } else {
106 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject) this, operations, 1, interfaceHash);
107 ref.invoke(call);
108 ref.done(call);
109 }
110 } catch (java.lang.RuntimeException e) {
111 throw e;
112 } catch (java.rmi.RemoteException e) {
113 throw e;
114 } catch (java.lang.Exception e) {
115 throw new java.rmi.UnexpectedException("undeclared checked exception", e);
116 }
117 }
118
119 // implementation of shutdown()
120 public void shutdown()
121 throws java.lang.Exception
122 {
123 if (useNewInvoke) {
124 ref.invoke(this, $method_shutdown_2, null, -7207851917985848402L);
125 } else {
126 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject) this, operations, 2, interfaceHash);
127 ref.invoke(call);
128 ref.done(call);
129 }
130 }
131
132 // implementation of unregister()
133 public void unregister()
134 throws java.lang.Exception
135 {
136 if (useNewInvoke) {
137 ref.invoke(this, $method_unregister_3, null, -5366864281862648102L);
138 } else {
139 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject) this, operations, 3, interfaceHash);
140 ref.invoke(call);
141 ref.done(call);
142 }
143 }
144}