1
2
3
4 package nl.tudelft.simulation.naming;
5
6 public final class RemoteContext_Skel implements java.rmi.server.Skeleton
7 {
8 private static final java.rmi.server.Operation[] operations = {
9 new java.rmi.server.Operation(
10 "void addNamingListener(java.lang.String, int, nl.tudelft.simulation.naming.listener.RemoteContextListenerInterface)"),
11 new java.rmi.server.Operation(
12 "void addNamingListener(javax.naming.Name, int, nl.tudelft.simulation.naming.listener.RemoteContextListenerInterface)"),
13 new java.rmi.server.Operation(
14 "java.lang.Object addToEnvironment(java.lang.String, java.lang.Object)"),
15 new java.rmi.server.Operation(
16 "void bind(java.lang.String, java.lang.Object)"),
17 new java.rmi.server.Operation(
18 "void bind(javax.naming.Name, java.lang.Object)"),
19 new java.rmi.server.Operation("void close()"),
20 new java.rmi.server.Operation(
21 "java.lang.String composeName(java.lang.String, java.lang.String)"),
22 new java.rmi.server.Operation(
23 "javax.naming.Name composeName(javax.naming.Name, javax.naming.Name)"),
24 new java.rmi.server.Operation(
25 "nl.tudelft.simulation.naming.RemoteContextInterface createSubcontext(java.lang.String)"),
26 new java.rmi.server.Operation(
27 "nl.tudelft.simulation.naming.RemoteContextInterface createSubcontext(javax.naming.Name)"),
28 new java.rmi.server.Operation(
29 "void destroySubcontext(java.lang.String)"),
30 new java.rmi.server.Operation(
31 "void destroySubcontext(javax.naming.Name)"),
32 new java.rmi.server.Operation(
33 "java.util.Hashtable getEnvironment()"),
34 new java.rmi.server.Operation(
35 "java.lang.String getNameInNamespace()"),
36 new java.rmi.server.Operation(
37 "javax.naming.NameParser getNameParser(java.lang.String)"),
38 new java.rmi.server.Operation(
39 "javax.naming.NameParser getNameParser(javax.naming.Name)"),
40 new java.rmi.server.Operation(
41 "javax.naming.NamingEnumeration list(java.lang.String)"),
42 new java.rmi.server.Operation(
43 "javax.naming.NamingEnumeration list(javax.naming.Name)"),
44 new java.rmi.server.Operation(
45 "javax.naming.NamingEnumeration listBindings(java.lang.String)"),
46 new java.rmi.server.Operation(
47 "javax.naming.NamingEnumeration listBindings(javax.naming.Name)"),
48 new java.rmi.server.Operation(
49 "java.lang.Object lookup(java.lang.String)"),
50 new java.rmi.server.Operation(
51 "java.lang.Object lookup(javax.naming.Name)"),
52 new java.rmi.server.Operation(
53 "java.lang.Object lookupLink(java.lang.String)"),
54 new java.rmi.server.Operation(
55 "java.lang.Object lookupLink(javax.naming.Name)"),
56 new java.rmi.server.Operation(
57 "void rebind(java.lang.String, java.lang.Object)"),
58 new java.rmi.server.Operation(
59 "void rebind(javax.naming.Name, java.lang.Object)"),
60 new java.rmi.server.Operation(
61 "java.lang.Object removeFromEnvironment(java.lang.String)"),
62 new java.rmi.server.Operation(
63 "void removeNamingListener(nl.tudelft.simulation.naming.listener.RemoteContextListenerInterface)"),
64 new java.rmi.server.Operation(
65 "void rename(java.lang.String, java.lang.String)"),
66 new java.rmi.server.Operation(
67 "void rename(javax.naming.Name, javax.naming.Name)"),
68 new java.rmi.server.Operation("boolean targetMustExist()"),
69 new java.rmi.server.Operation("void unbind(java.lang.String)"),
70 new java.rmi.server.Operation("void unbind(javax.naming.Name)")};
71
72 private static final long interfaceHash = 3693339914894794256L;
73
74 public java.rmi.server.Operation[] getOperations()
75 {
76 return (java.rmi.server.Operation[]) operations.clone();
77 }
78
79 public void dispatch(java.rmi.Remote obj, java.rmi.server.RemoteCall call,
80 int opnum, long hash) throws java.lang.Exception
81 {
82 if (opnum < 0)
83 {
84 if (hash == 9179197076634010990L)
85 {
86 opnum = 0;
87 } else if (hash == 5053602188799244793L)
88 {
89 opnum = 1;
90 } else if (hash == 7423587362257126597L)
91 {
92 opnum = 2;
93 } else if (hash == 2512476498253195943L)
94 {
95 opnum = 3;
96 } else if (hash == 4746601859634963434L)
97 {
98 opnum = 4;
99 } else if (hash == -4742752445160157748L)
100 {
101 opnum = 5;
102 } else if (hash == -397955118207351708L)
103 {
104 opnum = 6;
105 } else if (hash == -4674196241299859862L)
106 {
107 opnum = 7;
108 } else if (hash == -6717789437514911157L)
109 {
110 opnum = 8;
111 } else if (hash == -5163627906617366579L)
112 {
113 opnum = 9;
114 } else if (hash == -5484013438598057362L)
115 {
116 opnum = 10;
117 } else if (hash == 1989154285507206592L)
118 {
119 opnum = 11;
120 } else if (hash == 6831211682874889519L)
121 {
122 opnum = 12;
123 } else if (hash == -1194853037862003409L)
124 {
125 opnum = 13;
126 } else if (hash == 5710977930164118855L)
127 {
128 opnum = 14;
129 } else if (hash == -8896846450780974690L)
130 {
131 opnum = 15;
132 } else if (hash == 7650658781653938493L)
133 {
134 opnum = 16;
135 } else if (hash == 1967945493319070025L)
136 {
137 opnum = 17;
138 } else if (hash == 6904926823795646738L)
139 {
140 opnum = 18;
141 } else if (hash == 378518927385056723L)
142 {
143 opnum = 19;
144 } else if (hash == -1898805598492908578L)
145 {
146 opnum = 20;
147 } else if (hash == -790108502850547550L)
148 {
149 opnum = 21;
150 } else if (hash == -7059825740248303745L)
151 {
152 opnum = 22;
153 } else if (hash == -8326898712775774153L)
154 {
155 opnum = 23;
156 } else if (hash == -129221743250872862L)
157 {
158 opnum = 24;
159 } else if (hash == 8031864381464841478L)
160 {
161 opnum = 25;
162 } else if (hash == -7172282782142951249L)
163 {
164 opnum = 26;
165 } else if (hash == 9164040526369065167L)
166 {
167 opnum = 27;
168 } else if (hash == 2349483723651990964L)
169 {
170 opnum = 28;
171 } else if (hash == -1948007926874613057L)
172 {
173 opnum = 29;
174 } else if (hash == -2766650220085268527L)
175 {
176 opnum = 30;
177 } else if (hash == 7305022919901907578L)
178 {
179 opnum = 31;
180 } else if (hash == 8176650517119097487L)
181 {
182 opnum = 32;
183 } else
184 {
185 throw new java.rmi.UnmarshalException("invalid method hash");
186 }
187 } else
188 {
189 if (hash != interfaceHash)
190 throw new java.rmi.server.SkeletonMismatchException(
191 "interface hash mismatch");
192 }
193
194 nl.tudelft.simulation.naming.RemoteContext server = (nl.tudelft.simulation.naming.RemoteContext) obj;
195 switch (opnum)
196 {
197 case 0 :
198
199 {
200 java.lang.String $param_String_1;
201 int $param_int_2;
202 nl.tudelft.simulation.naming.listener.RemoteContextListenerInterface $param_RemoteContextListenerInterface_3;
203 try
204 {
205 java.io.ObjectInput in = call.getInputStream();
206 $param_String_1 = (java.lang.String) in.readObject();
207 $param_int_2 = in.readInt();
208 $param_RemoteContextListenerInterface_3 = (nl.tudelft.simulation.naming.listener.RemoteContextListenerInterface) in
209 .readObject();
210 } catch (java.io.IOException e)
211 {
212 throw new java.rmi.UnmarshalException(
213 "error unmarshalling arguments", e);
214 } catch (java.lang.ClassNotFoundException e)
215 {
216 throw new java.rmi.UnmarshalException(
217 "error unmarshalling arguments", e);
218 } finally
219 {
220 call.releaseInputStream();
221 }
222 server.addNamingListener($param_String_1, $param_int_2,
223 $param_RemoteContextListenerInterface_3);
224 try
225 {
226 call.getResultStream(true);
227 } catch (java.io.IOException e)
228 {
229 throw new java.rmi.MarshalException(
230 "error marshalling return", e);
231 }
232 break;
233 }
234
235 case 1 :
236
237 {
238 javax.naming.Name $param_Name_1;
239 int $param_int_2;
240 nl.tudelft.simulation.naming.listener.RemoteContextListenerInterface $param_RemoteContextListenerInterface_3;
241 try
242 {
243 java.io.ObjectInput in = call.getInputStream();
244 $param_Name_1 = (javax.naming.Name) in.readObject();
245 $param_int_2 = in.readInt();
246 $param_RemoteContextListenerInterface_3 = (nl.tudelft.simulation.naming.listener.RemoteContextListenerInterface) in
247 .readObject();
248 } catch (java.io.IOException e)
249 {
250 throw new java.rmi.UnmarshalException(
251 "error unmarshalling arguments", e);
252 } catch (java.lang.ClassNotFoundException e)
253 {
254 throw new java.rmi.UnmarshalException(
255 "error unmarshalling arguments", e);
256 } finally
257 {
258 call.releaseInputStream();
259 }
260 server.addNamingListener($param_Name_1, $param_int_2,
261 $param_RemoteContextListenerInterface_3);
262 try
263 {
264 call.getResultStream(true);
265 } catch (java.io.IOException e)
266 {
267 throw new java.rmi.MarshalException(
268 "error marshalling return", e);
269 }
270 break;
271 }
272
273 case 2 :
274 {
275 java.lang.String $param_String_1;
276 java.lang.Object $param_Object_2;
277 try
278 {
279 java.io.ObjectInput in = call.getInputStream();
280 $param_String_1 = (java.lang.String) in.readObject();
281 $param_Object_2 = (java.lang.Object) in.readObject();
282 } catch (java.io.IOException e)
283 {
284 throw new java.rmi.UnmarshalException(
285 "error unmarshalling arguments", e);
286 } catch (java.lang.ClassNotFoundException e)
287 {
288 throw new java.rmi.UnmarshalException(
289 "error unmarshalling arguments", e);
290 } finally
291 {
292 call.releaseInputStream();
293 }
294 java.lang.Object $result = server.addToEnvironment(
295 $param_String_1, $param_Object_2);
296 try
297 {
298 java.io.ObjectOutput out = call.getResultStream(true);
299 out.writeObject($result);
300 } catch (java.io.IOException e)
301 {
302 throw new java.rmi.MarshalException(
303 "error marshalling return", e);
304 }
305 break;
306 }
307
308 case 3 :
309 {
310 java.lang.String $param_String_1;
311 java.lang.Object $param_Object_2;
312 try
313 {
314 java.io.ObjectInput in = call.getInputStream();
315 $param_String_1 = (java.lang.String) in.readObject();
316 $param_Object_2 = (java.lang.Object) in.readObject();
317 } catch (java.io.IOException e)
318 {
319 throw new java.rmi.UnmarshalException(
320 "error unmarshalling arguments", e);
321 } catch (java.lang.ClassNotFoundException e)
322 {
323 throw new java.rmi.UnmarshalException(
324 "error unmarshalling arguments", e);
325 } finally
326 {
327 call.releaseInputStream();
328 }
329 server.bind($param_String_1, $param_Object_2);
330 try
331 {
332 call.getResultStream(true);
333 } catch (java.io.IOException e)
334 {
335 throw new java.rmi.MarshalException(
336 "error marshalling return", e);
337 }
338 break;
339 }
340
341 case 4 :
342 {
343 javax.naming.Name $param_Name_1;
344 java.lang.Object $param_Object_2;
345 try
346 {
347 java.io.ObjectInput in = call.getInputStream();
348 $param_Name_1 = (javax.naming.Name) in.readObject();
349 $param_Object_2 = (java.lang.Object) in.readObject();
350 } catch (java.io.IOException e)
351 {
352 throw new java.rmi.UnmarshalException(
353 "error unmarshalling arguments", e);
354 } catch (java.lang.ClassNotFoundException e)
355 {
356 throw new java.rmi.UnmarshalException(
357 "error unmarshalling arguments", e);
358 } finally
359 {
360 call.releaseInputStream();
361 }
362 server.bind($param_Name_1, $param_Object_2);
363 try
364 {
365 call.getResultStream(true);
366 } catch (java.io.IOException e)
367 {
368 throw new java.rmi.MarshalException(
369 "error marshalling return", e);
370 }
371 break;
372 }
373
374 case 5 :
375 {
376 call.releaseInputStream();
377 server.close();
378 try
379 {
380 call.getResultStream(true);
381 } catch (java.io.IOException e)
382 {
383 throw new java.rmi.MarshalException(
384 "error marshalling return", e);
385 }
386 break;
387 }
388
389 case 6 :
390 {
391 java.lang.String $param_String_1;
392 java.lang.String $param_String_2;
393 try
394 {
395 java.io.ObjectInput in = call.getInputStream();
396 $param_String_1 = (java.lang.String) in.readObject();
397 $param_String_2 = (java.lang.String) in.readObject();
398 } catch (java.io.IOException e)
399 {
400 throw new java.rmi.UnmarshalException(
401 "error unmarshalling arguments", e);
402 } catch (java.lang.ClassNotFoundException e)
403 {
404 throw new java.rmi.UnmarshalException(
405 "error unmarshalling arguments", e);
406 } finally
407 {
408 call.releaseInputStream();
409 }
410 java.lang.String $result = server.composeName($param_String_1,
411 $param_String_2);
412 try
413 {
414 java.io.ObjectOutput out = call.getResultStream(true);
415 out.writeObject($result);
416 } catch (java.io.IOException e)
417 {
418 throw new java.rmi.MarshalException(
419 "error marshalling return", e);
420 }
421 break;
422 }
423
424 case 7 :
425 {
426 javax.naming.Name $param_Name_1;
427 javax.naming.Name $param_Name_2;
428 try
429 {
430 java.io.ObjectInput in = call.getInputStream();
431 $param_Name_1 = (javax.naming.Name) in.readObject();
432 $param_Name_2 = (javax.naming.Name) in.readObject();
433 } catch (java.io.IOException e)
434 {
435 throw new java.rmi.UnmarshalException(
436 "error unmarshalling arguments", e);
437 } catch (java.lang.ClassNotFoundException e)
438 {
439 throw new java.rmi.UnmarshalException(
440 "error unmarshalling arguments", e);
441 } finally
442 {
443 call.releaseInputStream();
444 }
445 javax.naming.Name $result = server.composeName($param_Name_1,
446 $param_Name_2);
447 try
448 {
449 java.io.ObjectOutput out = call.getResultStream(true);
450 out.writeObject($result);
451 } catch (java.io.IOException e)
452 {
453 throw new java.rmi.MarshalException(
454 "error marshalling return", e);
455 }
456 break;
457 }
458
459 case 8 :
460 {
461 java.lang.String $param_String_1;
462 try
463 {
464 java.io.ObjectInput in = call.getInputStream();
465 $param_String_1 = (java.lang.String) in.readObject();
466 } catch (java.io.IOException e)
467 {
468 throw new java.rmi.UnmarshalException(
469 "error unmarshalling arguments", e);
470 } catch (java.lang.ClassNotFoundException e)
471 {
472 throw new java.rmi.UnmarshalException(
473 "error unmarshalling arguments", e);
474 } finally
475 {
476 call.releaseInputStream();
477 }
478 nl.tudelft.simulation.naming.RemoteContextInterface $result = server
479 .createSubcontext($param_String_1);
480 try
481 {
482 java.io.ObjectOutput out = call.getResultStream(true);
483 out.writeObject($result);
484 } catch (java.io.IOException e)
485 {
486 throw new java.rmi.MarshalException(
487 "error marshalling return", e);
488 }
489 break;
490 }
491
492 case 9 :
493 {
494 javax.naming.Name $param_Name_1;
495 try
496 {
497 java.io.ObjectInput in = call.getInputStream();
498 $param_Name_1 = (javax.naming.Name) in.readObject();
499 } catch (java.io.IOException e)
500 {
501 throw new java.rmi.UnmarshalException(
502 "error unmarshalling arguments", e);
503 } catch (java.lang.ClassNotFoundException e)
504 {
505 throw new java.rmi.UnmarshalException(
506 "error unmarshalling arguments", e);
507 } finally
508 {
509 call.releaseInputStream();
510 }
511 nl.tudelft.simulation.naming.RemoteContextInterface $result = server
512 .createSubcontext($param_Name_1);
513 try
514 {
515 java.io.ObjectOutput out = call.getResultStream(true);
516 out.writeObject($result);
517 } catch (java.io.IOException e)
518 {
519 throw new java.rmi.MarshalException(
520 "error marshalling return", e);
521 }
522 break;
523 }
524
525 case 10 :
526 {
527 java.lang.String $param_String_1;
528 try
529 {
530 java.io.ObjectInput in = call.getInputStream();
531 $param_String_1 = (java.lang.String) in.readObject();
532 } catch (java.io.IOException e)
533 {
534 throw new java.rmi.UnmarshalException(
535 "error unmarshalling arguments", e);
536 } catch (java.lang.ClassNotFoundException e)
537 {
538 throw new java.rmi.UnmarshalException(
539 "error unmarshalling arguments", e);
540 } finally
541 {
542 call.releaseInputStream();
543 }
544 server.destroySubcontext($param_String_1);
545 try
546 {
547 call.getResultStream(true);
548 } catch (java.io.IOException e)
549 {
550 throw new java.rmi.MarshalException(
551 "error marshalling return", e);
552 }
553 break;
554 }
555
556 case 11 :
557 {
558 javax.naming.Name $param_Name_1;
559 try
560 {
561 java.io.ObjectInput in = call.getInputStream();
562 $param_Name_1 = (javax.naming.Name) in.readObject();
563 } catch (java.io.IOException e)
564 {
565 throw new java.rmi.UnmarshalException(
566 "error unmarshalling arguments", e);
567 } catch (java.lang.ClassNotFoundException e)
568 {
569 throw new java.rmi.UnmarshalException(
570 "error unmarshalling arguments", e);
571 } finally
572 {
573 call.releaseInputStream();
574 }
575 server.destroySubcontext($param_Name_1);
576 try
577 {
578 call.getResultStream(true);
579 } catch (java.io.IOException e)
580 {
581 throw new java.rmi.MarshalException(
582 "error marshalling return", e);
583 }
584 break;
585 }
586
587 case 12 :
588 {
589 call.releaseInputStream();
590 java.util.Hashtable $result = server.getEnvironment();
591 try
592 {
593 java.io.ObjectOutput out = call.getResultStream(true);
594 out.writeObject($result);
595 } catch (java.io.IOException e)
596 {
597 throw new java.rmi.MarshalException(
598 "error marshalling return", e);
599 }
600 break;
601 }
602
603 case 13 :
604 {
605 call.releaseInputStream();
606 java.lang.String $result = server.getNameInNamespace();
607 try
608 {
609 java.io.ObjectOutput out = call.getResultStream(true);
610 out.writeObject($result);
611 } catch (java.io.IOException e)
612 {
613 throw new java.rmi.MarshalException(
614 "error marshalling return", e);
615 }
616 break;
617 }
618
619 case 14 :
620 {
621 java.lang.String $param_String_1;
622 try
623 {
624 java.io.ObjectInput in = call.getInputStream();
625 $param_String_1 = (java.lang.String) in.readObject();
626 } catch (java.io.IOException e)
627 {
628 throw new java.rmi.UnmarshalException(
629 "error unmarshalling arguments", e);
630 } catch (java.lang.ClassNotFoundException e)
631 {
632 throw new java.rmi.UnmarshalException(
633 "error unmarshalling arguments", e);
634 } finally
635 {
636 call.releaseInputStream();
637 }
638 javax.naming.NameParser $result = server
639 .getNameParser($param_String_1);
640 try
641 {
642 java.io.ObjectOutput out = call.getResultStream(true);
643 out.writeObject($result);
644 } catch (java.io.IOException e)
645 {
646 throw new java.rmi.MarshalException(
647 "error marshalling return", e);
648 }
649 break;
650 }
651
652 case 15 :
653 {
654 javax.naming.Name $param_Name_1;
655 try
656 {
657 java.io.ObjectInput in = call.getInputStream();
658 $param_Name_1 = (javax.naming.Name) in.readObject();
659 } catch (java.io.IOException e)
660 {
661 throw new java.rmi.UnmarshalException(
662 "error unmarshalling arguments", e);
663 } catch (java.lang.ClassNotFoundException e)
664 {
665 throw new java.rmi.UnmarshalException(
666 "error unmarshalling arguments", e);
667 } finally
668 {
669 call.releaseInputStream();
670 }
671 javax.naming.NameParser $result = server
672 .getNameParser($param_Name_1);
673 try
674 {
675 java.io.ObjectOutput out = call.getResultStream(true);
676 out.writeObject($result);
677 } catch (java.io.IOException e)
678 {
679 throw new java.rmi.MarshalException(
680 "error marshalling return", e);
681 }
682 break;
683 }
684
685 case 16 :
686 {
687 java.lang.String $param_String_1;
688 try
689 {
690 java.io.ObjectInput in = call.getInputStream();
691 $param_String_1 = (java.lang.String) in.readObject();
692 } catch (java.io.IOException e)
693 {
694 throw new java.rmi.UnmarshalException(
695 "error unmarshalling arguments", e);
696 } catch (java.lang.ClassNotFoundException e)
697 {
698 throw new java.rmi.UnmarshalException(
699 "error unmarshalling arguments", e);
700 } finally
701 {
702 call.releaseInputStream();
703 }
704 javax.naming.NamingEnumeration $result = server
705 .list($param_String_1);
706 try
707 {
708 java.io.ObjectOutput out = call.getResultStream(true);
709 out.writeObject($result);
710 } catch (java.io.IOException e)
711 {
712 throw new java.rmi.MarshalException(
713 "error marshalling return", e);
714 }
715 break;
716 }
717
718 case 17 :
719 {
720 javax.naming.Name $param_Name_1;
721 try
722 {
723 java.io.ObjectInput in = call.getInputStream();
724 $param_Name_1 = (javax.naming.Name) in.readObject();
725 } catch (java.io.IOException e)
726 {
727 throw new java.rmi.UnmarshalException(
728 "error unmarshalling arguments", e);
729 } catch (java.lang.ClassNotFoundException e)
730 {
731 throw new java.rmi.UnmarshalException(
732 "error unmarshalling arguments", e);
733 } finally
734 {
735 call.releaseInputStream();
736 }
737 javax.naming.NamingEnumeration $result = server
738 .list($param_Name_1);
739 try
740 {
741 java.io.ObjectOutput out = call.getResultStream(true);
742 out.writeObject($result);
743 } catch (java.io.IOException e)
744 {
745 throw new java.rmi.MarshalException(
746 "error marshalling return", e);
747 }
748 break;
749 }
750
751 case 18 :
752 {
753 java.lang.String $param_String_1;
754 try
755 {
756 java.io.ObjectInput in = call.getInputStream();
757 $param_String_1 = (java.lang.String) in.readObject();
758 } catch (java.io.IOException e)
759 {
760 throw new java.rmi.UnmarshalException(
761 "error unmarshalling arguments", e);
762 } catch (java.lang.ClassNotFoundException e)
763 {
764 throw new java.rmi.UnmarshalException(
765 "error unmarshalling arguments", e);
766 } finally
767 {
768 call.releaseInputStream();
769 }
770 javax.naming.NamingEnumeration $result = server
771 .listBindings($param_String_1);
772 try
773 {
774 java.io.ObjectOutput out = call.getResultStream(true);
775 out.writeObject($result);
776 } catch (java.io.IOException e)
777 {
778 throw new java.rmi.MarshalException(
779 "error marshalling return", e);
780 }
781 break;
782 }
783
784 case 19 :
785 {
786 javax.naming.Name $param_Name_1;
787 try
788 {
789 java.io.ObjectInput in = call.getInputStream();
790 $param_Name_1 = (javax.naming.Name) in.readObject();
791 } catch (java.io.IOException e)
792 {
793 throw new java.rmi.UnmarshalException(
794 "error unmarshalling arguments", e);
795 } catch (java.lang.ClassNotFoundException e)
796 {
797 throw new java.rmi.UnmarshalException(
798 "error unmarshalling arguments", e);
799 } finally
800 {
801 call.releaseInputStream();
802 }
803 javax.naming.NamingEnumeration $result = server
804 .listBindings($param_Name_1);
805 try
806 {
807 java.io.ObjectOutput out = call.getResultStream(true);
808 out.writeObject($result);
809 } catch (java.io.IOException e)
810 {
811 throw new java.rmi.MarshalException(
812 "error marshalling return", e);
813 }
814 break;
815 }
816
817 case 20 :
818 {
819 java.lang.String $param_String_1;
820 try
821 {
822 java.io.ObjectInput in = call.getInputStream();
823 $param_String_1 = (java.lang.String) in.readObject();
824 } catch (java.io.IOException e)
825 {
826 throw new java.rmi.UnmarshalException(
827 "error unmarshalling arguments", e);
828 } catch (java.lang.ClassNotFoundException e)
829 {
830 throw new java.rmi.UnmarshalException(
831 "error unmarshalling arguments", e);
832 } finally
833 {
834 call.releaseInputStream();
835 }
836 java.lang.Object $result = server.lookup($param_String_1);
837 try
838 {
839 java.io.ObjectOutput out = call.getResultStream(true);
840 out.writeObject($result);
841 } catch (java.io.IOException e)
842 {
843 throw new java.rmi.MarshalException(
844 "error marshalling return", e);
845 }
846 break;
847 }
848
849 case 21 :
850 {
851 javax.naming.Name $param_Name_1;
852 try
853 {
854 java.io.ObjectInput in = call.getInputStream();
855 $param_Name_1 = (javax.naming.Name) in.readObject();
856 } catch (java.io.IOException e)
857 {
858 throw new java.rmi.UnmarshalException(
859 "error unmarshalling arguments", e);
860 } catch (java.lang.ClassNotFoundException e)
861 {
862 throw new java.rmi.UnmarshalException(
863 "error unmarshalling arguments", e);
864 } finally
865 {
866 call.releaseInputStream();
867 }
868 java.lang.Object $result = server.lookup($param_Name_1);
869 try
870 {
871 java.io.ObjectOutput out = call.getResultStream(true);
872 out.writeObject($result);
873 } catch (java.io.IOException e)
874 {
875 throw new java.rmi.MarshalException(
876 "error marshalling return", e);
877 }
878 break;
879 }
880
881 case 22 :
882 {
883 java.lang.String $param_String_1;
884 try
885 {
886 java.io.ObjectInput in = call.getInputStream();
887 $param_String_1 = (java.lang.String) in.readObject();
888 } catch (java.io.IOException e)
889 {
890 throw new java.rmi.UnmarshalException(
891 "error unmarshalling arguments", e);
892 } catch (java.lang.ClassNotFoundException e)
893 {
894 throw new java.rmi.UnmarshalException(
895 "error unmarshalling arguments", e);
896 } finally
897 {
898 call.releaseInputStream();
899 }
900 java.lang.Object $result = server.lookupLink($param_String_1);
901 try
902 {
903 java.io.ObjectOutput out = call.getResultStream(true);
904 out.writeObject($result);
905 } catch (java.io.IOException e)
906 {
907 throw new java.rmi.MarshalException(
908 "error marshalling return", e);
909 }
910 break;
911 }
912
913 case 23 :
914 {
915 javax.naming.Name $param_Name_1;
916 try
917 {
918 java.io.ObjectInput in = call.getInputStream();
919 $param_Name_1 = (javax.naming.Name) in.readObject();
920 } catch (java.io.IOException e)
921 {
922 throw new java.rmi.UnmarshalException(
923 "error unmarshalling arguments", e);
924 } catch (java.lang.ClassNotFoundException e)
925 {
926 throw new java.rmi.UnmarshalException(
927 "error unmarshalling arguments", e);
928 } finally
929 {
930 call.releaseInputStream();
931 }
932 java.lang.Object $result = server.lookupLink($param_Name_1);
933 try
934 {
935 java.io.ObjectOutput out = call.getResultStream(true);
936 out.writeObject($result);
937 } catch (java.io.IOException e)
938 {
939 throw new java.rmi.MarshalException(
940 "error marshalling return", e);
941 }
942 break;
943 }
944
945 case 24 :
946 {
947 java.lang.String $param_String_1;
948 java.lang.Object $param_Object_2;
949 try
950 {
951 java.io.ObjectInput in = call.getInputStream();
952 $param_String_1 = (java.lang.String) in.readObject();
953 $param_Object_2 = (java.lang.Object) in.readObject();
954 } catch (java.io.IOException e)
955 {
956 throw new java.rmi.UnmarshalException(
957 "error unmarshalling arguments", e);
958 } catch (java.lang.ClassNotFoundException e)
959 {
960 throw new java.rmi.UnmarshalException(
961 "error unmarshalling arguments", e);
962 } finally
963 {
964 call.releaseInputStream();
965 }
966 server.rebind($param_String_1, $param_Object_2);
967 try
968 {
969 call.getResultStream(true);
970 } catch (java.io.IOException e)
971 {
972 throw new java.rmi.MarshalException(
973 "error marshalling return", e);
974 }
975 break;
976 }
977
978 case 25 :
979 {
980 javax.naming.Name $param_Name_1;
981 java.lang.Object $param_Object_2;
982 try
983 {
984 java.io.ObjectInput in = call.getInputStream();
985 $param_Name_1 = (javax.naming.Name) in.readObject();
986 $param_Object_2 = (java.lang.Object) in.readObject();
987 } catch (java.io.IOException e)
988 {
989 throw new java.rmi.UnmarshalException(
990 "error unmarshalling arguments", e);
991 } catch (java.lang.ClassNotFoundException e)
992 {
993 throw new java.rmi.UnmarshalException(
994 "error unmarshalling arguments", e);
995 } finally
996 {
997 call.releaseInputStream();
998 }
999 server.rebind($param_Name_1, $param_Object_2);
1000 try
1001 {
1002 call.getResultStream(true);
1003 } catch (java.io.IOException e)
1004 {
1005 throw new java.rmi.MarshalException(
1006 "error marshalling return", e);
1007 }
1008 break;
1009 }
1010
1011 case 26 :
1012 {
1013 java.lang.String $param_String_1;
1014 try
1015 {
1016 java.io.ObjectInput in = call.getInputStream();
1017 $param_String_1 = (java.lang.String) in.readObject();
1018 } catch (java.io.IOException e)
1019 {
1020 throw new java.rmi.UnmarshalException(
1021 "error unmarshalling arguments", e);
1022 } catch (java.lang.ClassNotFoundException e)
1023 {
1024 throw new java.rmi.UnmarshalException(
1025 "error unmarshalling arguments", e);
1026 } finally
1027 {
1028 call.releaseInputStream();
1029 }
1030 java.lang.Object $result = server
1031 .removeFromEnvironment($param_String_1);
1032 try
1033 {
1034 java.io.ObjectOutput out = call.getResultStream(true);
1035 out.writeObject($result);
1036 } catch (java.io.IOException e)
1037 {
1038 throw new java.rmi.MarshalException(
1039 "error marshalling return", e);
1040 }
1041 break;
1042 }
1043
1044 case 27 :
1045 {
1046 nl.tudelft.simulation.naming.listener.RemoteContextListenerInterface $param_RemoteContextListenerInterface_1;
1047 try
1048 {
1049 java.io.ObjectInput in = call.getInputStream();
1050 $param_RemoteContextListenerInterface_1 = (nl.tudelft.simulation.naming.listener.RemoteContextListenerInterface) in
1051 .readObject();
1052 } catch (java.io.IOException e)
1053 {
1054 throw new java.rmi.UnmarshalException(
1055 "error unmarshalling arguments", e);
1056 } catch (java.lang.ClassNotFoundException e)
1057 {
1058 throw new java.rmi.UnmarshalException(
1059 "error unmarshalling arguments", e);
1060 } finally
1061 {
1062 call.releaseInputStream();
1063 }
1064 server
1065 .removeNamingListener($param_RemoteContextListenerInterface_1);
1066 try
1067 {
1068 call.getResultStream(true);
1069 } catch (java.io.IOException e)
1070 {
1071 throw new java.rmi.MarshalException(
1072 "error marshalling return", e);
1073 }
1074 break;
1075 }
1076
1077 case 28 :
1078 {
1079 java.lang.String $param_String_1;
1080 java.lang.String $param_String_2;
1081 try
1082 {
1083 java.io.ObjectInput in = call.getInputStream();
1084 $param_String_1 = (java.lang.String) in.readObject();
1085 $param_String_2 = (java.lang.String) in.readObject();
1086 } catch (java.io.IOException e)
1087 {
1088 throw new java.rmi.UnmarshalException(
1089 "error unmarshalling arguments", e);
1090 } catch (java.lang.ClassNotFoundException e)
1091 {
1092 throw new java.rmi.UnmarshalException(
1093 "error unmarshalling arguments", e);
1094 } finally
1095 {
1096 call.releaseInputStream();
1097 }
1098 server.rename($param_String_1, $param_String_2);
1099 try
1100 {
1101 call.getResultStream(true);
1102 } catch (java.io.IOException e)
1103 {
1104 throw new java.rmi.MarshalException(
1105 "error marshalling return", e);
1106 }
1107 break;
1108 }
1109
1110 case 29 :
1111 {
1112 javax.naming.Name $param_Name_1;
1113 javax.naming.Name $param_Name_2;
1114 try
1115 {
1116 java.io.ObjectInput in = call.getInputStream();
1117 $param_Name_1 = (javax.naming.Name) in.readObject();
1118 $param_Name_2 = (javax.naming.Name) in.readObject();
1119 } catch (java.io.IOException e)
1120 {
1121 throw new java.rmi.UnmarshalException(
1122 "error unmarshalling arguments", e);
1123 } catch (java.lang.ClassNotFoundException e)
1124 {
1125 throw new java.rmi.UnmarshalException(
1126 "error unmarshalling arguments", e);
1127 } finally
1128 {
1129 call.releaseInputStream();
1130 }
1131 server.rename($param_Name_1, $param_Name_2);
1132 try
1133 {
1134 call.getResultStream(true);
1135 } catch (java.io.IOException e)
1136 {
1137 throw new java.rmi.MarshalException(
1138 "error marshalling return", e);
1139 }
1140 break;
1141 }
1142
1143 case 30 :
1144 {
1145 call.releaseInputStream();
1146 boolean $result = server.targetMustExist();
1147 try
1148 {
1149 java.io.ObjectOutput out = call.getResultStream(true);
1150 out.writeBoolean($result);
1151 } catch (java.io.IOException e)
1152 {
1153 throw new java.rmi.MarshalException(
1154 "error marshalling return", e);
1155 }
1156 break;
1157 }
1158
1159 case 31 :
1160 {
1161 java.lang.String $param_String_1;
1162 try
1163 {
1164 java.io.ObjectInput in = call.getInputStream();
1165 $param_String_1 = (java.lang.String) in.readObject();
1166 } catch (java.io.IOException e)
1167 {
1168 throw new java.rmi.UnmarshalException(
1169 "error unmarshalling arguments", e);
1170 } catch (java.lang.ClassNotFoundException e)
1171 {
1172 throw new java.rmi.UnmarshalException(
1173 "error unmarshalling arguments", e);
1174 } finally
1175 {
1176 call.releaseInputStream();
1177 }
1178 server.unbind($param_String_1);
1179 try
1180 {
1181 call.getResultStream(true);
1182 } catch (java.io.IOException e)
1183 {
1184 throw new java.rmi.MarshalException(
1185 "error marshalling return", e);
1186 }
1187 break;
1188 }
1189
1190 case 32 :
1191 {
1192 javax.naming.Name $param_Name_1;
1193 try
1194 {
1195 java.io.ObjectInput in = call.getInputStream();
1196 $param_Name_1 = (javax.naming.Name) in.readObject();
1197 } catch (java.io.IOException e)
1198 {
1199 throw new java.rmi.UnmarshalException(
1200 "error unmarshalling arguments", e);
1201 } catch (java.lang.ClassNotFoundException e)
1202 {
1203 throw new java.rmi.UnmarshalException(
1204 "error unmarshalling arguments", e);
1205 } finally
1206 {
1207 call.releaseInputStream();
1208 }
1209 server.unbind($param_Name_1);
1210 try
1211 {
1212 call.getResultStream(true);
1213 } catch (java.io.IOException e)
1214 {
1215 throw new java.rmi.MarshalException(
1216 "error marshalling return", e);
1217 }
1218 break;
1219 }
1220
1221 default :
1222 throw new java.rmi.UnmarshalException("invalid method number");
1223 }
1224 }
1225 }