J. Duke | 319a3b9 | 2007-12-01 00:00:00 +0000 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright 1998 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 | // Skeleton class generated by rmic, do not edit. |
| 25 | // Contents subject to change without notice. |
| 26 | |
| 27 | public final class ForceLogSnapshot_Skel |
| 28 | implements java.rmi.server.Skeleton |
| 29 | { |
| 30 | private static final java.rmi.server.Operation[] operations = { |
| 31 | new java.rmi.server.Operation("void crash()"), |
| 32 | new java.rmi.server.Operation("void ping(int, java.lang.String)") |
| 33 | }; |
| 34 | |
| 35 | private static final long interfaceHash = -5865767584502007357L; |
| 36 | |
| 37 | public java.rmi.server.Operation[] getOperations() { |
| 38 | return (java.rmi.server.Operation[]) operations.clone(); |
| 39 | } |
| 40 | |
| 41 | public void dispatch(java.rmi.Remote obj, java.rmi.server.RemoteCall call, int opnum, long hash) |
| 42 | throws java.lang.Exception |
| 43 | { |
| 44 | if (opnum < 0) { |
| 45 | if (hash == 8484760490859430950L) { |
| 46 | opnum = 0; |
| 47 | } else if (hash == -1519179153769139224L) { |
| 48 | opnum = 1; |
| 49 | } else { |
| 50 | throw new java.rmi.UnmarshalException("invalid method hash"); |
| 51 | } |
| 52 | } else { |
| 53 | if (hash != interfaceHash) |
| 54 | throw new java.rmi.server.SkeletonMismatchException("interface hash mismatch"); |
| 55 | } |
| 56 | |
| 57 | ForceLogSnapshot server = (ForceLogSnapshot) obj; |
| 58 | switch (opnum) { |
| 59 | case 0: // crash() |
| 60 | { |
| 61 | call.releaseInputStream(); |
| 62 | server.crash(); |
| 63 | try { |
| 64 | call.getResultStream(true); |
| 65 | } catch (java.io.IOException e) { |
| 66 | throw new java.rmi.MarshalException("error marshalling return", e); |
| 67 | } |
| 68 | break; |
| 69 | } |
| 70 | |
| 71 | case 1: // ping(int, String) |
| 72 | { |
| 73 | int $param_int_1; |
| 74 | java.lang.String $param_String_2; |
| 75 | try { |
| 76 | java.io.ObjectInput in = call.getInputStream(); |
| 77 | $param_int_1 = in.readInt(); |
| 78 | $param_String_2 = (java.lang.String) in.readObject(); |
| 79 | } catch (java.io.IOException e) { |
| 80 | throw new java.rmi.UnmarshalException("error unmarshalling arguments", e); |
| 81 | } catch (java.lang.ClassNotFoundException e) { |
| 82 | throw new java.rmi.UnmarshalException("error unmarshalling arguments", e); |
| 83 | } finally { |
| 84 | call.releaseInputStream(); |
| 85 | } |
| 86 | server.ping($param_int_1, $param_String_2); |
| 87 | try { |
| 88 | call.getResultStream(true); |
| 89 | } catch (java.io.IOException e) { |
| 90 | throw new java.rmi.MarshalException("error marshalling return", e); |
| 91 | } |
| 92 | break; |
| 93 | } |
| 94 | |
| 95 | default: |
| 96 | throw new java.rmi.UnmarshalException("invalid method number"); |
| 97 | } |
| 98 | } |
| 99 | } |