Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mobile
Path: blob/master/src/java.rmi/share/classes/sun/rmi/registry/RegistryImpl_Stub.java
41154 views
1
/*
2
* Copyright (c) 2017, 2019, 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. Oracle designates this
8
* particular file as subject to the "Classpath" exception as provided
9
* by Oracle in the LICENSE file that accompanied this code.
10
*
11
* This code is distributed in the hope that it will be useful, but WITHOUT
12
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14
* version 2 for more details (a copy is included in the LICENSE file that
15
* accompanied this code).
16
*
17
* You should have received a copy of the GNU General Public License version
18
* 2 along with this work; if not, write to the Free Software Foundation,
19
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20
*
21
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22
* or visit www.oracle.com if you need additional information or have any
23
* questions.
24
*/
25
26
package sun.rmi.registry;
27
28
import java.io.IOException;
29
30
import sun.rmi.transport.StreamRemoteCall;
31
32
/**
33
* Stubs to invoke RegistryImpl remote methods.
34
* Originally generated from RMIC but frozen to match RegistryImpl_Skel.
35
*/
36
@SuppressWarnings({"deprecation", "serial"})
37
public final class RegistryImpl_Stub
38
extends java.rmi.server.RemoteStub
39
implements java.rmi.registry.Registry, java.rmi.Remote {
40
private static final java.rmi.server.Operation[] operations = {
41
new java.rmi.server.Operation("void bind(java.lang.String, java.rmi.Remote)"),
42
new java.rmi.server.Operation("java.lang.String list()[]"),
43
new java.rmi.server.Operation("java.rmi.Remote lookup(java.lang.String)"),
44
new java.rmi.server.Operation("void rebind(java.lang.String, java.rmi.Remote)"),
45
new java.rmi.server.Operation("void unbind(java.lang.String)")
46
};
47
48
private static final long interfaceHash = 4905912898345647071L;
49
50
// constructors
51
public RegistryImpl_Stub() {
52
super();
53
}
54
55
public RegistryImpl_Stub(java.rmi.server.RemoteRef ref) {
56
super(ref);
57
}
58
59
// methods from remote interfaces
60
61
// implementation of bind(String, Remote)
62
public void bind(java.lang.String $param_String_1, java.rmi.Remote $param_Remote_2)
63
throws java.rmi.AccessException, java.rmi.AlreadyBoundException, java.rmi.RemoteException {
64
try {
65
StreamRemoteCall call = (StreamRemoteCall)ref.newCall(this, operations, 0, interfaceHash);
66
try {
67
java.io.ObjectOutput out = call.getOutputStream();
68
out.writeObject($param_String_1);
69
out.writeObject($param_Remote_2);
70
} catch (java.io.IOException e) {
71
throw new java.rmi.MarshalException("error marshalling arguments", e);
72
}
73
ref.invoke(call);
74
ref.done(call);
75
} catch (java.lang.RuntimeException e) {
76
throw e;
77
} catch (java.rmi.RemoteException e) {
78
throw e;
79
} catch (java.rmi.AlreadyBoundException e) {
80
throw e;
81
} catch (java.lang.Exception e) {
82
throw new java.rmi.UnexpectedException("undeclared checked exception", e);
83
}
84
}
85
86
// implementation of list()
87
public java.lang.String[] list()
88
throws java.rmi.AccessException, java.rmi.RemoteException {
89
try {
90
StreamRemoteCall call = (StreamRemoteCall)ref.newCall(this, operations, 1, interfaceHash);
91
ref.invoke(call);
92
java.lang.String[] $result;
93
try {
94
java.io.ObjectInput in = call.getInputStream();
95
$result = (java.lang.String[]) in.readObject();
96
} catch (ClassCastException | IOException | ClassNotFoundException e) {
97
call.discardPendingRefs();
98
throw new java.rmi.UnmarshalException("error unmarshalling return", e);
99
} finally {
100
ref.done(call);
101
}
102
return $result;
103
} catch (java.lang.RuntimeException e) {
104
throw e;
105
} catch (java.rmi.RemoteException e) {
106
throw e;
107
} catch (java.lang.Exception e) {
108
throw new java.rmi.UnexpectedException("undeclared checked exception", e);
109
}
110
}
111
112
// implementation of lookup(String)
113
public java.rmi.Remote lookup(java.lang.String $param_String_1)
114
throws java.rmi.AccessException, java.rmi.NotBoundException, java.rmi.RemoteException {
115
try {
116
StreamRemoteCall call = (StreamRemoteCall)ref.newCall(this, operations, 2, interfaceHash);
117
try {
118
java.io.ObjectOutput out = call.getOutputStream();
119
out.writeObject($param_String_1);
120
} catch (java.io.IOException e) {
121
throw new java.rmi.MarshalException("error marshalling arguments", e);
122
}
123
ref.invoke(call);
124
java.rmi.Remote $result;
125
try {
126
java.io.ObjectInput in = call.getInputStream();
127
$result = (java.rmi.Remote) in.readObject();
128
} catch (ClassCastException | IOException | ClassNotFoundException e) {
129
call.discardPendingRefs();
130
throw new java.rmi.UnmarshalException("error unmarshalling return", e);
131
} finally {
132
ref.done(call);
133
}
134
return $result;
135
} catch (java.lang.RuntimeException e) {
136
throw e;
137
} catch (java.rmi.RemoteException e) {
138
throw e;
139
} catch (java.rmi.NotBoundException e) {
140
throw e;
141
} catch (java.lang.Exception e) {
142
throw new java.rmi.UnexpectedException("undeclared checked exception", e);
143
}
144
}
145
146
// implementation of rebind(String, Remote)
147
public void rebind(java.lang.String $param_String_1, java.rmi.Remote $param_Remote_2)
148
throws java.rmi.AccessException, java.rmi.RemoteException {
149
try {
150
StreamRemoteCall call = (StreamRemoteCall)ref.newCall(this, operations, 3, interfaceHash);
151
try {
152
java.io.ObjectOutput out = call.getOutputStream();
153
out.writeObject($param_String_1);
154
out.writeObject($param_Remote_2);
155
} catch (java.io.IOException e) {
156
throw new java.rmi.MarshalException("error marshalling arguments", e);
157
}
158
ref.invoke(call);
159
ref.done(call);
160
} catch (java.lang.RuntimeException e) {
161
throw e;
162
} catch (java.rmi.RemoteException e) {
163
throw e;
164
} catch (java.lang.Exception e) {
165
throw new java.rmi.UnexpectedException("undeclared checked exception", e);
166
}
167
}
168
169
// implementation of unbind(String)
170
public void unbind(java.lang.String $param_String_1)
171
throws java.rmi.AccessException, java.rmi.NotBoundException, java.rmi.RemoteException {
172
try {
173
StreamRemoteCall call = (StreamRemoteCall)ref.newCall(this, operations, 4, interfaceHash);
174
try {
175
java.io.ObjectOutput out = call.getOutputStream();
176
out.writeObject($param_String_1);
177
} catch (java.io.IOException e) {
178
throw new java.rmi.MarshalException("error marshalling arguments", e);
179
}
180
ref.invoke(call);
181
ref.done(call);
182
} catch (java.lang.RuntimeException e) {
183
throw e;
184
} catch (java.rmi.RemoteException e) {
185
throw e;
186
} catch (java.rmi.NotBoundException e) {
187
throw e;
188
} catch (java.lang.Exception e) {
189
throw new java.rmi.UnexpectedException("undeclared checked exception", e);
190
}
191
}
192
}
193
194