/[classpath]/classpath/gnu/java/rmi/dgc/DGCImpl.java
ViewVC logotype

Diff of /classpath/gnu/java/rmi/dgc/DGCImpl.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by mark, Tue Jan 22 22:26:57 2002 UTC revision 1.3 by cbj, Thu Mar 21 05:40:11 2002 UTC
# Line 49  import gnu.java.rmi.server.UnicastServer Line 49  import gnu.java.rmi.server.UnicastServer
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    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26