blob: 1fa93b1788312d4e132c8f14d0c7d792d860bbe0 [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 CheckUnmarshalOnStopThread_Stub
28 extends java.rmi.server.RemoteStub
29 implements CheckUnmarshal, java.rmi.Remote
30{
31 private static final java.rmi.server.Operation[] operations = {
32 new java.rmi.server.Operation("PoisonPill getPoisonPill()"),
33 new java.rmi.server.Operation("void passRuntimeExceptionParameter(RuntimeExceptionParameter)"),
34 new java.rmi.server.Operation("java.lang.Object ping()")
35 };
36
37 private static final long interfaceHash = -5923540687975666490L;
38
39 private static final long serialVersionUID = 2;
40
41 private static boolean useNewInvoke;
42 private static java.lang.reflect.Method $method_getPoisonPill_0;
43 private static java.lang.reflect.Method $method_passRuntimeExceptionParameter_1;
44 private static java.lang.reflect.Method $method_ping_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_getPoisonPill_0 = CheckUnmarshal.class.getMethod("getPoisonPill", new java.lang.Class[] {});
57 $method_passRuntimeExceptionParameter_1 = CheckUnmarshal.class.getMethod("passRuntimeExceptionParameter", new java.lang.Class[] {RuntimeExceptionParameter.class});
58 $method_ping_2 = CheckUnmarshal.class.getMethod("ping", new java.lang.Class[] {});
59 } catch (java.lang.NoSuchMethodException e) {
60 useNewInvoke = false;
61 }
62 }
63
64 // constructors
65 public CheckUnmarshalOnStopThread_Stub() {
66 super();
67 }
68 public CheckUnmarshalOnStopThread_Stub(java.rmi.server.RemoteRef ref) {
69 super(ref);
70 }
71
72 // methods from remote interfaces
73
74 // implementation of getPoisonPill()
75 public PoisonPill getPoisonPill()
76 throws java.rmi.RemoteException
77 {
78 try {
79 if (useNewInvoke) {
80 Object $result = ref.invoke(this, $method_getPoisonPill_0, null, 5776441251039617360L);
81 return ((PoisonPill) $result);
82 } else {
83 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject) this, operations, 0, interfaceHash);
84 ref.invoke(call);
85 PoisonPill $result;
86 try {
87 java.io.ObjectInput in = call.getInputStream();
88 $result = (PoisonPill) 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 passRuntimeExceptionParameter(RuntimeExceptionParameter)
108 public void passRuntimeExceptionParameter(RuntimeExceptionParameter $param_RuntimeExceptionParameter_1)
109 throws java.rmi.RemoteException
110 {
111 try {
112 if (useNewInvoke) {
113 ref.invoke(this, $method_passRuntimeExceptionParameter_1, new java.lang.Object[] {$param_RuntimeExceptionParameter_1}, -4427599990679364365L);
114 } else {
115 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject) this, operations, 1, interfaceHash);
116 try {
117 java.io.ObjectOutput out = call.getOutputStream();
118 out.writeObject($param_RuntimeExceptionParameter_1);
119 } catch (java.io.IOException e) {
120 throw new java.rmi.MarshalException("error marshalling arguments", e);
121 }
122 ref.invoke(call);
123 ref.done(call);
124 }
125 } catch (java.lang.RuntimeException e) {
126 throw e;
127 } catch (java.rmi.RemoteException e) {
128 throw e;
129 } catch (java.lang.Exception e) {
130 throw new java.rmi.UnexpectedException("undeclared checked exception", e);
131 }
132 }
133
134 // implementation of ping()
135 public java.lang.Object ping()
136 throws java.rmi.RemoteException
137 {
138 try {
139 if (useNewInvoke) {
140 Object $result = ref.invoke(this, $method_ping_2, null, 7635508643486276040L);
141 return ((java.lang.Object) $result);
142 } else {
143 java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject) this, operations, 2, interfaceHash);
144 ref.invoke(call);
145 java.lang.Object $result;
146 try {
147 java.io.ObjectInput in = call.getInputStream();
148 $result = (java.lang.Object) in.readObject();
149 } catch (java.io.IOException e) {
150 throw new java.rmi.UnmarshalException("error unmarshalling return", e);
151 } catch (java.lang.ClassNotFoundException e) {
152 throw new java.rmi.UnmarshalException("error unmarshalling return", e);
153 } finally {
154 ref.done(call);
155 }
156 return $result;
157 }
158 } catch (java.lang.RuntimeException e) {
159 throw e;
160 } catch (java.rmi.RemoteException e) {
161 throw e;
162 } catch (java.lang.Exception e) {
163 throw new java.rmi.UnexpectedException("undeclared checked exception", e);
164 }
165 }
166}