src/share/classes/sun/rmi/transport/DGCImpl.java

Print this page

        

*** 82,92 **** new RuntimeUtil.GetInstanceAction()).getScheduler(); /** remote implementation of DGC interface for this VM */ private static DGCImpl dgc; /** table that maps VMID to LeaseInfo */ ! private Map<VMID,LeaseInfo> leaseTable = new HashMap<VMID,LeaseInfo>(); /** checks for lease expiration */ private Future<?> checker = null; /** * Return the remote implementation of the DGC interface for --- 82,92 ---- new RuntimeUtil.GetInstanceAction()).getScheduler(); /** remote implementation of DGC interface for this VM */ private static DGCImpl dgc; /** table that maps VMID to LeaseInfo */ ! private Map<VMID,LeaseInfo> leaseTable = new HashMap<>(); /** checks for lease expiration */ private Future<?> checker = null; /** * Return the remote implementation of the DGC interface for
*** 234,244 **** */ private void checkLeases() { long time = System.currentTimeMillis(); /* List of vmids that need to be removed from the leaseTable */ ! List<LeaseInfo> toUnregister = new ArrayList<LeaseInfo>(); /* Build a list of leaseInfo objects that need to have * targets removed from their notifySet. Remove expired * leases from leaseTable. */ --- 234,244 ---- */ private void checkLeases() { long time = System.currentTimeMillis(); /* List of vmids that need to be removed from the leaseTable */ ! List<LeaseInfo> toUnregister = new ArrayList<>(); /* Build a list of leaseInfo objects that need to have * targets removed from their notifySet. Remove expired * leases from leaseTable. */
*** 311,321 **** } private static class LeaseInfo { VMID vmid; long expiration; ! Set<Target> notifySet = new HashSet<Target>(); LeaseInfo(VMID vmid, long lease) { this.vmid = vmid; expiration = System.currentTimeMillis() + lease; } --- 311,321 ---- } private static class LeaseInfo { VMID vmid; long expiration; ! Set<Target> notifySet = new HashSet<>(); LeaseInfo(VMID vmid, long lease) { this.vmid = vmid; expiration = System.currentTimeMillis() + lease; }