Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openjdk-multiarch-jdk8u
Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/test/javax/rmi/PortableRemoteObject/_HelloInterface_Stub.java
38838 views
1
// Stub 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.rmi.UnexpectedException;
9
import java.util.HashMap;
10
import java.util.concurrent.ConcurrentHashMap;
11
import java.util.concurrent.locks.ReentrantLock;
12
import javax.rmi.CORBA.Stub;
13
import javax.rmi.CORBA.Util;
14
import org.omg.CORBA.ORB;
15
import org.omg.CORBA.SystemException;
16
import org.omg.CORBA.portable.ApplicationException;
17
import org.omg.CORBA.portable.InputStream;
18
import org.omg.CORBA.portable.OutputStream;
19
import org.omg.CORBA.portable.RemarshalException;
20
import org.omg.CORBA.portable.ResponseHandler;
21
import org.omg.CORBA.portable.ServantObject;
22
23
24
public class _HelloInterface_Stub extends Stub implements HelloInterface {
25
26
private static final String[] _type_ids = {
27
"RMI:HelloInterface:0000000000000000"
28
};
29
30
public String[] _ids() {
31
return (String[]) _type_ids.clone();
32
}
33
34
public String sayHello(String arg0) throws java.rmi.RemoteException {
35
if (!Util.isLocal(this)) {
36
try {
37
org.omg.CORBA_2_3.portable.InputStream in = null;
38
try {
39
org.omg.CORBA_2_3.portable.OutputStream out =
40
(org.omg.CORBA_2_3.portable.OutputStream)
41
_request("sayHello", true);
42
out.write_value(arg0,String.class);
43
in = (org.omg.CORBA_2_3.portable.InputStream)_invoke(out);
44
return (String) in.read_value(String.class);
45
} catch (ApplicationException ex) {
46
in = (org.omg.CORBA_2_3.portable.InputStream) ex.getInputStream();
47
String $_id = in.read_string();
48
throw new UnexpectedException($_id);
49
} catch (RemarshalException ex) {
50
return sayHello(arg0);
51
} finally {
52
_releaseReply(in);
53
}
54
} catch (SystemException ex) {
55
throw Util.mapSystemException(ex);
56
}
57
} else {
58
ServantObject so = _servant_preinvoke("sayHello",HelloInterface.class);
59
if (so == null) {
60
return sayHello(arg0);
61
}
62
try {
63
return ((HelloInterface)so.servant).sayHello(arg0);
64
} catch (Throwable ex) {
65
Throwable exCopy = (Throwable)Util.copyObject(ex,_orb());
66
throw Util.wrapException(exCopy);
67
} finally {
68
_servant_postinvoke(so);
69
}
70
}
71
}
72
73
public String sayHelloToTest(Test arg0) throws java.rmi.RemoteException {
74
if (!Util.isLocal(this)) {
75
try {
76
org.omg.CORBA_2_3.portable.InputStream in = null;
77
try {
78
org.omg.CORBA_2_3.portable.OutputStream out =
79
(org.omg.CORBA_2_3.portable.OutputStream)
80
_request("sayHelloToTest", true);
81
out.write_value(arg0,Test.class);
82
in = (org.omg.CORBA_2_3.portable.InputStream)_invoke(out);
83
return (String) in.read_value(String.class);
84
} catch (ApplicationException ex) {
85
in = (org.omg.CORBA_2_3.portable.InputStream) ex.getInputStream();
86
String $_id = in.read_string();
87
throw new UnexpectedException($_id);
88
} catch (RemarshalException ex) {
89
return sayHelloToTest(arg0);
90
} finally {
91
_releaseReply(in);
92
}
93
} catch (SystemException ex) {
94
throw Util.mapSystemException(ex);
95
}
96
} else {
97
ServantObject so = _servant_preinvoke("sayHelloToTest",HelloInterface.class);
98
if (so == null) {
99
return sayHelloToTest(arg0);
100
}
101
try {
102
Test arg0Copy = (Test) Util.copyObject(arg0,_orb());
103
return ((HelloInterface)so.servant).sayHelloToTest(arg0Copy);
104
} catch (Throwable ex) {
105
Throwable exCopy = (Throwable)Util.copyObject(ex,_orb());
106
throw Util.wrapException(exCopy);
107
} finally {
108
_servant_postinvoke(so);
109
}
110
}
111
}
112
113
public String sayHelloWithInetAddress(InetAddress arg0) throws java.rmi.RemoteException {
114
if (!Util.isLocal(this)) {
115
try {
116
org.omg.CORBA_2_3.portable.InputStream in = null;
117
try {
118
org.omg.CORBA_2_3.portable.OutputStream out =
119
(org.omg.CORBA_2_3.portable.OutputStream)
120
_request("sayHelloWithInetAddress", true);
121
out.write_value(arg0,InetAddress.class);
122
in = (org.omg.CORBA_2_3.portable.InputStream)_invoke(out);
123
return (String) in.read_value(String.class);
124
} catch (ApplicationException ex) {
125
in = (org.omg.CORBA_2_3.portable.InputStream) ex.getInputStream();
126
String $_id = in.read_string();
127
throw new UnexpectedException($_id);
128
} catch (RemarshalException ex) {
129
return sayHelloWithInetAddress(arg0);
130
} finally {
131
_releaseReply(in);
132
}
133
} catch (SystemException ex) {
134
throw Util.mapSystemException(ex);
135
}
136
} else {
137
ServantObject so = _servant_preinvoke("sayHelloWithInetAddress",HelloInterface.class);
138
if (so == null) {
139
return sayHelloWithInetAddress(arg0);
140
}
141
try {
142
InetAddress arg0Copy = (InetAddress) Util.copyObject(arg0,_orb());
143
return ((HelloInterface)so.servant).sayHelloWithInetAddress(arg0Copy);
144
} catch (Throwable ex) {
145
Throwable exCopy = (Throwable)Util.copyObject(ex,_orb());
146
throw Util.wrapException(exCopy);
147
} finally {
148
_servant_postinvoke(so);
149
}
150
}
151
}
152
153
public String sayHelloWithHashMap(ConcurrentHashMap arg0) throws java.rmi.RemoteException {
154
if (!Util.isLocal(this)) {
155
try {
156
org.omg.CORBA_2_3.portable.InputStream in = null;
157
try {
158
org.omg.CORBA_2_3.portable.OutputStream out =
159
(org.omg.CORBA_2_3.portable.OutputStream)
160
_request("sayHelloWithHashMap", true);
161
out.write_value(arg0,ConcurrentHashMap.class);
162
in = (org.omg.CORBA_2_3.portable.InputStream)_invoke(out);
163
return (String) in.read_value(String.class);
164
} catch (ApplicationException ex) {
165
in = (org.omg.CORBA_2_3.portable.InputStream) ex.getInputStream();
166
String $_id = in.read_string();
167
throw new UnexpectedException($_id);
168
} catch (RemarshalException ex) {
169
return sayHelloWithHashMap(arg0);
170
} finally {
171
_releaseReply(in);
172
}
173
} catch (SystemException ex) {
174
throw Util.mapSystemException(ex);
175
}
176
} else {
177
ServantObject so = _servant_preinvoke("sayHelloWithHashMap",HelloInterface.class);
178
if (so == null) {
179
return sayHelloWithHashMap(arg0);
180
}
181
try {
182
ConcurrentHashMap arg0Copy = (ConcurrentHashMap) Util.copyObject(arg0,_orb());
183
return ((HelloInterface)so.servant).sayHelloWithHashMap(arg0Copy);
184
} catch (Throwable ex) {
185
Throwable exCopy = (Throwable)Util.copyObject(ex,_orb());
186
throw Util.wrapException(exCopy);
187
} finally {
188
_servant_postinvoke(so);
189
}
190
}
191
}
192
193
public String sayHelloWithHashMap2(HashMap arg0) throws java.rmi.RemoteException {
194
if (!Util.isLocal(this)) {
195
try {
196
org.omg.CORBA_2_3.portable.InputStream in = null;
197
try {
198
org.omg.CORBA_2_3.portable.OutputStream out =
199
(org.omg.CORBA_2_3.portable.OutputStream)
200
_request("sayHelloWithHashMap2", true);
201
out.write_value(arg0,HashMap.class);
202
in = (org.omg.CORBA_2_3.portable.InputStream)_invoke(out);
203
return (String) in.read_value(String.class);
204
} catch (ApplicationException ex) {
205
in = (org.omg.CORBA_2_3.portable.InputStream) ex.getInputStream();
206
String $_id = in.read_string();
207
throw new UnexpectedException($_id);
208
} catch (RemarshalException ex) {
209
return sayHelloWithHashMap2(arg0);
210
} finally {
211
_releaseReply(in);
212
}
213
} catch (SystemException ex) {
214
throw Util.mapSystemException(ex);
215
}
216
} else {
217
ServantObject so = _servant_preinvoke("sayHelloWithHashMap2",HelloInterface.class);
218
if (so == null) {
219
return sayHelloWithHashMap2(arg0);
220
}
221
try {
222
HashMap arg0Copy = (HashMap) Util.copyObject(arg0,_orb());
223
return ((HelloInterface)so.servant).sayHelloWithHashMap2(arg0Copy);
224
} catch (Throwable ex) {
225
Throwable exCopy = (Throwable)Util.copyObject(ex,_orb());
226
throw Util.wrapException(exCopy);
227
} finally {
228
_servant_postinvoke(so);
229
}
230
}
231
}
232
233
public String sayHelloWithReentrantLock(ReentrantLock arg0) throws java.rmi.RemoteException {
234
if (!Util.isLocal(this)) {
235
try {
236
org.omg.CORBA_2_3.portable.InputStream in = null;
237
try {
238
org.omg.CORBA_2_3.portable.OutputStream out =
239
(org.omg.CORBA_2_3.portable.OutputStream)
240
_request("sayHelloWithReentrantLock", true);
241
out.write_value(arg0,ReentrantLock.class);
242
in = (org.omg.CORBA_2_3.portable.InputStream)_invoke(out);
243
return (String) in.read_value(String.class);
244
} catch (ApplicationException ex) {
245
in = (org.omg.CORBA_2_3.portable.InputStream) ex.getInputStream();
246
String $_id = in.read_string();
247
throw new UnexpectedException($_id);
248
} catch (RemarshalException ex) {
249
return sayHelloWithReentrantLock(arg0);
250
} finally {
251
_releaseReply(in);
252
}
253
} catch (SystemException ex) {
254
throw Util.mapSystemException(ex);
255
}
256
} else {
257
ServantObject so = _servant_preinvoke("sayHelloWithReentrantLock",HelloInterface.class);
258
if (so == null) {
259
return sayHelloWithReentrantLock(arg0);
260
}
261
try {
262
ReentrantLock arg0Copy = (ReentrantLock) Util.copyObject(arg0,_orb());
263
return ((HelloInterface)so.servant).sayHelloWithReentrantLock(arg0Copy);
264
} catch (Throwable ex) {
265
Throwable exCopy = (Throwable)Util.copyObject(ex,_orb());
266
throw Util.wrapException(exCopy);
267
} finally {
268
_servant_postinvoke(so);
269
}
270
}
271
}
272
}
273
274