home *** CD-ROM | disk | FTP | other *** search
- package sun.rmi.transport;
-
- import java.io.IOException;
- import java.io.ObjectInput;
- import java.io.ObjectOutput;
- import java.rmi.MarshalException;
- import java.rmi.RemoteException;
- import java.rmi.UnexpectedException;
- import java.rmi.UnmarshalException;
- import java.rmi.dgc.DGC;
- import java.rmi.dgc.Lease;
- import java.rmi.dgc.VMID;
- import java.rmi.server.ObjID;
- import java.rmi.server.Operation;
- import java.rmi.server.RemoteCall;
- import java.rmi.server.RemoteRef;
- import java.rmi.server.RemoteStub;
-
- public final class DGCImpl_Stub extends RemoteStub implements DGC {
- private static Operation[] operations = new Operation[]{new Operation("void clean(java.rmi.server.ObjID[], long, java.rmi.dgc.VMID, boolean)"), new Operation("java.rmi.dgc.Lease dirty(java.rmi.server.ObjID[], long, java.rmi.dgc.Lease)")};
- private static final long interfaceHash = -669196253586618813L;
-
- public DGCImpl_Stub() {
- }
-
- public DGCImpl_Stub(RemoteRef var1) {
- super(var1);
- }
-
- public void clean(ObjID[] var1, long var2, VMID var4, boolean var5) throws RemoteException {
- byte var6 = 0;
- RemoteRef var7 = super.ref;
- RemoteCall var8 = var7.newCall(this, operations, var6, -669196253586618813L);
-
- try {
- ObjectOutput var9 = var8.getOutputStream();
- var9.writeObject(var1);
- var9.writeLong(var2);
- var9.writeObject(var4);
- var9.writeBoolean(var5);
- } catch (IOException var12) {
- throw new MarshalException("Error marshaling arguments", var12);
- }
-
- try {
- var7.invoke(var8);
- } catch (RemoteException var10) {
- throw var10;
- } catch (Exception var11) {
- throw new UnexpectedException("Unexpected exception", var11);
- }
-
- var7.done(var8);
- }
-
- public Lease dirty(ObjID[] var1, long var2, Lease var4) throws RemoteException {
- byte var5 = 1;
- RemoteRef var6 = super.ref;
- RemoteCall var7 = var6.newCall(this, operations, var5, -669196253586618813L);
-
- try {
- ObjectOutput var8 = var7.getOutputStream();
- var8.writeObject(var1);
- var8.writeLong(var2);
- var8.writeObject(var4);
- } catch (IOException var25) {
- throw new MarshalException("Error marshaling arguments", var25);
- }
-
- try {
- var6.invoke(var7);
- } catch (RemoteException var23) {
- throw var23;
- } catch (Exception var24) {
- throw new UnexpectedException("Unexpected exception", var24);
- }
-
- Lease var26;
- try {
- ObjectInput var11 = var7.getInputStream();
- var26 = (Lease)var11.readObject();
- } catch (IOException var19) {
- throw new UnmarshalException("Error unmarshaling return", var19);
- } catch (ClassNotFoundException var20) {
- throw new UnmarshalException("Return value class not found", var20);
- } catch (Exception var21) {
- throw new UnexpectedException("Unexpected exception", var21);
- } finally {
- var6.done(var7);
- }
-
- return var26;
- }
- }
-