001: /*
002: * RMI skeleton class
003: * for class org.apache.harmony.rmi.server.DGCImpl
004: * Compatible with stub protocol version 1.1
005: *
006: * Generated by DRL RMI Compiler (rmic).
007: *
008: * DO NOT EDIT!!!
009: * Contents subject to change without notice!
010: */
011: package org.apache.harmony.rmi.server;
012:
013: import org.apache.harmony.rmi.internal.nls.Messages;
014:
015: public final class DGCImpl_Skel implements java.rmi.server.Skeleton {
016:
017: private static final long interfaceHash = -669196253586618813L;
018:
019: private static final java.rmi.server.Operation[] operations = {
020: new java.rmi.server.Operation(
021: "void clean(java.rmi.server.ObjID[], long, java.rmi.dgc.VMID, boolean)"), //$NON-NLS-1$
022: new java.rmi.server.Operation(
023: "java.rmi.dgc.Lease dirty(java.rmi.server.ObjID[], long, java.rmi.dgc.Lease)") //$NON-NLS-1$
024: };
025:
026: public java.rmi.server.Operation[] getOperations() {
027: return (java.rmi.server.Operation[]) operations.clone();
028: }
029:
030: public void dispatch(java.rmi.Remote obj,
031: java.rmi.server.RemoteCall call, int opnum, long hash)
032: throws java.lang.Exception {
033: if (hash != interfaceHash) {
034: // rmi.2D=Interface hash mismatch, expected: {0}, received: {1}
035: throw new java.rmi.server.SkeletonMismatchException(
036: Messages.getString("rmi.2D", interfaceHash, hash)); //$NON-NLS-1$
037: }
038:
039: org.apache.harmony.rmi.server.DGCImpl server = (org.apache.harmony.rmi.server.DGCImpl) obj;
040:
041: switch (opnum) {
042:
043: case 0: { // clean(ObjID[], long, VMID, boolean)
044:
045: java.rmi.server.ObjID[] $param_arrayOf_ObjID_1;
046: long $param_long_2;
047: java.rmi.dgc.VMID $param_VMID_3;
048: boolean $param_boolean_4;
049:
050: try {
051: java.io.ObjectInput in = call.getInputStream();
052: $param_arrayOf_ObjID_1 = (java.rmi.server.ObjID[]) in
053: .readObject();
054: $param_long_2 = in.readLong();
055: $param_VMID_3 = (java.rmi.dgc.VMID) in.readObject();
056: $param_boolean_4 = in.readBoolean();
057: } catch (java.io.IOException e) {
058: // rmi.2C=Error unmarshalling arguments
059: throw new java.rmi.UnmarshalException(Messages
060: .getString("rmi.2C"), e); //$NON-NLS-1$
061: } catch (java.lang.ClassNotFoundException e) {
062: // rmi.2C=Error unmarshalling arguments
063: throw new java.rmi.UnmarshalException(Messages
064: .getString("rmi.2C"), e); //$NON-NLS-1$
065: } finally {
066: call.releaseInputStream();
067: }
068:
069: server.clean($param_arrayOf_ObjID_1, $param_long_2,
070: $param_VMID_3, $param_boolean_4);
071:
072: try {
073: call.getResultStream(true);
074: } catch (java.io.IOException e) {
075: // rmi.2A=Error marshalling return
076: throw new java.rmi.MarshalException(Messages
077: .getString("rmi.2A"), e); //$NON-NLS-1$
078: }
079:
080: break;
081: }
082:
083: case 1: { // dirty(ObjID[], long, Lease)
084:
085: java.rmi.server.ObjID[] $param_arrayOf_ObjID_1;
086: long $param_long_2;
087: java.rmi.dgc.Lease $param_Lease_3;
088:
089: try {
090: java.io.ObjectInput in = call.getInputStream();
091: $param_arrayOf_ObjID_1 = (java.rmi.server.ObjID[]) in
092: .readObject();
093: $param_long_2 = in.readLong();
094: $param_Lease_3 = (java.rmi.dgc.Lease) in.readObject();
095: } catch (java.io.IOException e) {
096: // rmi.2C=Error unmarshalling arguments
097: throw new java.rmi.UnmarshalException(Messages
098: .getString("rmi.2C"), e); //$NON-NLS-1$
099: } catch (java.lang.ClassNotFoundException e) {
100: // rmi.2C=Error unmarshalling arguments
101: throw new java.rmi.UnmarshalException(Messages
102: .getString("rmi.2C"), e); //$NON-NLS-1$
103: } finally {
104: call.releaseInputStream();
105: }
106:
107: java.rmi.dgc.Lease $result = server.dirty(
108: $param_arrayOf_ObjID_1, $param_long_2,
109: $param_Lease_3);
110:
111: try {
112: java.io.ObjectOutput out = call.getResultStream(true);
113: out.writeObject($result);
114: } catch (java.io.IOException e) {
115: // rmi.2A=Error marshalling return
116: throw new java.rmi.MarshalException(Messages
117: .getString("rmi.2A"), e); //$NON-NLS-1$
118: }
119:
120: break;
121: }
122:
123: default:
124: // rmi.2B=Invalid method number: {0}
125: throw new java.rmi.UnmarshalException(Messages.getString(
126: "rmi.2B", opnum)); //$NON-NLS-1$
127: }
128: }
129: }
|