001: /*
002: * RMI stub 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_Stub extends java.rmi.server.RemoteStub
016: implements java.rmi.dgc.DGC {
017:
018: private static final long interfaceHash = -669196253586618813L;
019:
020: private static final java.rmi.server.Operation[] operations = {
021: new java.rmi.server.Operation(
022: "void clean(java.rmi.server.ObjID[], long, java.rmi.dgc.VMID, boolean)"), //$NON-NLS-1$
023: new java.rmi.server.Operation(
024: "java.rmi.dgc.Lease dirty(java.rmi.server.ObjID[], long, java.rmi.dgc.Lease)") //$NON-NLS-1$
025: };
026:
027: public DGCImpl_Stub() {
028: super ();
029: }
030:
031: public DGCImpl_Stub(java.rmi.server.RemoteRef ref) {
032: super (ref);
033: }
034:
035: // Implementation of clean(ObjID[], long, VMID, boolean)
036: public void clean(java.rmi.server.ObjID[] $param_arrayOf_ObjID_1,
037: long $param_long_2, java.rmi.dgc.VMID $param_VMID_3,
038: boolean $param_boolean_4) throws java.rmi.RemoteException {
039: try {
040: java.rmi.server.RemoteCall call = ref.newCall(
041: (java.rmi.server.RemoteObject) this , operations, 0,
042: interfaceHash);
043:
044: try {
045: java.io.ObjectOutput out = call.getOutputStream();
046: out.writeObject($param_arrayOf_ObjID_1);
047: out.writeLong($param_long_2);
048: out.writeObject($param_VMID_3);
049: out.writeBoolean($param_boolean_4);
050: } catch (java.io.IOException e) {
051: throw new java.rmi.MarshalException(Messages
052: .getString("rmi.26"), e); //$NON-NLS-1$
053: }
054:
055: ref.invoke(call);
056:
057: ref.done(call);
058: } catch (java.lang.RuntimeException e) {
059: throw e;
060: } catch (java.rmi.RemoteException e) {
061: throw e;
062: } catch (java.lang.Exception e) {
063: throw new java.rmi.UnexpectedException(Messages
064: .getString("rmi.0C"), e); //$NON-NLS-1$
065: }
066: }
067:
068: // Implementation of dirty(ObjID[], long, Lease)
069: public java.rmi.dgc.Lease dirty(
070: java.rmi.server.ObjID[] $param_arrayOf_ObjID_1,
071: long $param_long_2, java.rmi.dgc.Lease $param_Lease_3)
072: throws java.rmi.RemoteException {
073: try {
074: java.rmi.server.RemoteCall call = ref.newCall(
075: (java.rmi.server.RemoteObject) this , operations, 1,
076: interfaceHash);
077:
078: try {
079: java.io.ObjectOutput out = call.getOutputStream();
080: out.writeObject($param_arrayOf_ObjID_1);
081: out.writeLong($param_long_2);
082: out.writeObject($param_Lease_3);
083: } catch (java.io.IOException e) {
084: throw new java.rmi.MarshalException(Messages
085: .getString("rmi.26"), e); //$NON-NLS-1$
086: }
087:
088: ref.invoke(call);
089:
090: java.rmi.dgc.Lease $result;
091:
092: try {
093: java.io.ObjectInput in = call.getInputStream();
094: $result = (java.rmi.dgc.Lease) in.readObject();
095: } catch (java.io.IOException e) {
096: throw new java.rmi.UnmarshalException(Messages
097: .getString("rmi.27"), e); //$NON-NLS-1$
098: } catch (java.lang.ClassNotFoundException e) {
099: throw new java.rmi.UnmarshalException(Messages
100: .getString("rmi.27"), e); //$NON-NLS-1$
101: } finally {
102: ref.done(call);
103: }
104:
105: return $result;
106: } catch (java.lang.RuntimeException e) {
107: throw e;
108: } catch (java.rmi.RemoteException e) {
109: throw e;
110: } catch (java.lang.Exception e) {
111: throw new java.rmi.UnexpectedException(Messages
112: .getString("rmi.0C"), e); //$NON-NLS-1$
113: }
114: }
115: }
|