49 |
public class DGCImpl |
public class DGCImpl |
50 |
extends UnicastRemoteObject implements DGC { |
extends UnicastRemoteObject implements DGC { |
51 |
|
|
52 |
|
private static final long leaseValue = 600000L; |
53 |
|
|
54 |
public DGCImpl() throws RemoteException { |
public DGCImpl() throws RemoteException { |
55 |
super(new UnicastServerRef(new ObjID(ObjID.DGC_ID), 0, RMISocketFactory.getSocketFactory())); |
super(new UnicastServerRef(new ObjID(ObjID.DGC_ID), 0, RMISocketFactory.getSocketFactory())); |
56 |
} |
} |
57 |
|
|
58 |
public Lease dirty(ObjID[] ids, long sequenceNum, Lease lease) throws RemoteException { |
public Lease dirty(ObjID[] ids, long sequenceNum, Lease lease) throws RemoteException { |
59 |
System.out.println("DGCImpl.dirty - not implemented"); |
VMID vmid = lease.getVMID(); |
60 |
|
lease = new Lease(vmid, leaseValue); |
61 |
|
System.out.println("DGCImpl.dirty - not completely implemented"); |
62 |
return (lease); |
return (lease); |
63 |
} |
} |
64 |
|
|