1:
37:
38:
39:
40:
41: package ;
42:
43: public final class RegistryImpl_Skel
44: implements java.rmi.server.Skeleton
45: {
46: private static final long interfaceHash = 4905912898345647071L;
47:
48: private static final java.rmi.server.Operation[] operations = {
49: new java.rmi.server.Operation("void bind(java.lang.String, java.rmi.Remote"),
50: new java.rmi.server.Operation("java.lang.String[] list("),
51: new java.rmi.server.Operation("java.rmi.Remote lookup(java.lang.String"),
52: new java.rmi.server.Operation("void rebind(java.lang.String, java.rmi.Remote"),
53: new java.rmi.server.Operation("void unbind(java.lang.String")
54: };
55:
56: public java.rmi.server.Operation[] getOperations() {
57: return ((java.rmi.server.Operation[]) operations.clone());
58: }
59:
60: public void dispatch(java.rmi.Remote obj, java.rmi.server.RemoteCall call, int opnum, long hash) throws java.lang.Exception {
61: if (opnum < 0) {
62: if (hash == 7583982177005850366L) {
63: opnum = 0;
64: }
65: else if (hash == 2571371476350237748L) {
66: opnum = 1;
67: }
68: else if (hash == -7538657168040752697L) {
69: opnum = 2;
70: }
71: else if (hash == -8381844669958460146L) {
72: opnum = 3;
73: }
74: else if (hash == 7305022919901907578L) {
75: opnum = 4;
76: }
77: else {
78: throw new java.rmi.server.SkeletonMismatchException("interface hash mismatch");
79: }
80: }
81: else if (hash != interfaceHash) {
82: throw new java.rmi.server.SkeletonMismatchException("interface hash mismatch");
83: }
84:
85: gnu.java.rmi.registry.RegistryImpl server = (gnu.java.rmi.registry.RegistryImpl)obj;
86: switch (opnum) {
87: case 0:
88: {
89: java.lang.String $param_0;
90: java.rmi.Remote $param_1;
91: try {
92: java.io.ObjectInput in = call.getInputStream();
93: $param_0 = (java.lang.String)in.readObject();
94: $param_1 = (java.rmi.Remote)in.readObject();
95:
96: }
97: catch (java.io.IOException e) {
98: throw new java.rmi.UnmarshalException("error unmarshalling arguments", e);
99: }
100: catch (java.lang.ClassCastException e) {
101: throw new java.rmi.UnmarshalException("error unmarshalling arguments", e);
102: }
103: finally {
104: call.releaseInputStream();
105: }
106: server.bind($param_0, $param_1);
107: try {
108: java.io.ObjectOutput out = call.getResultStream(true);
109: }
110: catch (java.io.IOException e) {
111: throw new java.rmi.MarshalException("error marshalling return", e);
112: }
113: break;
114: }
115:
116: case 1:
117: {
118: try {
119: java.io.ObjectInput in = call.getInputStream();
120:
121: }
122: catch (java.io.IOException e) {
123: throw new java.rmi.UnmarshalException("error unmarshalling arguments", e);
124: }
125: finally {
126: call.releaseInputStream();
127: }
128: java.lang.String[] $result = server.list();
129: try {
130: java.io.ObjectOutput out = call.getResultStream(true);
131: out.writeObject($result);
132: }
133: catch (java.io.IOException e) {
134: throw new java.rmi.MarshalException("error marshalling return", e);
135: }
136: break;
137: }
138:
139: case 2:
140: {
141: java.lang.String $param_0;
142: try {
143: java.io.ObjectInput in = call.getInputStream();
144: $param_0 = (java.lang.String)in.readObject();
145:
146: }
147: catch (java.io.IOException e) {
148: throw new java.rmi.UnmarshalException("error unmarshalling arguments", e);
149: }
150: catch (java.lang.ClassCastException e) {
151: throw new java.rmi.UnmarshalException("error unmarshalling arguments", e);
152: }
153: finally {
154: call.releaseInputStream();
155: }
156: java.rmi.Remote $result = server.lookup($param_0);
157: try {
158: java.io.ObjectOutput out = call.getResultStream(true);
159: out.writeObject($result);
160: }
161: catch (java.io.IOException e) {
162: throw new java.rmi.MarshalException("error marshalling return", e);
163: }
164: break;
165: }
166:
167: case 3:
168: {
169: java.lang.String $param_0;
170: java.rmi.Remote $param_1;
171: try {
172: java.io.ObjectInput in = call.getInputStream();
173: $param_0 = (java.lang.String)in.readObject();
174: $param_1 = (java.rmi.Remote)in.readObject();
175:
176: }
177: catch (java.io.IOException e) {
178: throw new java.rmi.UnmarshalException("error unmarshalling arguments", e);
179: }
180: catch (java.lang.ClassCastException e) {
181: throw new java.rmi.UnmarshalException("error unmarshalling arguments", e);
182: }
183: finally {
184: call.releaseInputStream();
185: }
186: server.rebind($param_0, $param_1);
187: try {
188: java.io.ObjectOutput out = call.getResultStream(true);
189: }
190: catch (java.io.IOException e) {
191: throw new java.rmi.MarshalException("error marshalling return", e);
192: }
193: break;
194: }
195:
196: case 4:
197: {
198: java.lang.String $param_0;
199: try {
200: java.io.ObjectInput in = call.getInputStream();
201: $param_0 = (java.lang.String)in.readObject();
202:
203: }
204: catch (java.io.IOException e) {
205: throw new java.rmi.UnmarshalException("error unmarshalling arguments", e);
206: }
207: catch (java.lang.ClassCastException e) {
208: throw new java.rmi.UnmarshalException("error unmarshalling arguments", e);
209: }
210: finally {
211: call.releaseInputStream();
212: }
213: server.unbind($param_0);
214: try {
215: java.io.ObjectOutput out = call.getResultStream(true);
216: }
217: catch (java.io.IOException e) {
218: throw new java.rmi.MarshalException("error marshalling return", e);
219: }
220: break;
221: }
222:
223: default:
224: throw new java.rmi.UnmarshalException("invalid method number");
225: }
226: }
227: }