Mercurial > hg > blitz_condensed
view src/org/dancres/blitz/lease/LeaseHandler.java @ 34:6f68e94c1fb8 default tip
Add CondensedStats monitoring utility, equivalent to vmstat
author | Dominic Cleal <dominic-cleal@cdo2.com> |
---|---|
date | Thu, 05 Aug 2010 11:07:25 +0100 |
parents | 3dc0c5604566 |
children |
line wrap: on
line source
package org.dancres.blitz.lease; import java.io.IOException; import net.jini.core.lease.UnknownLeaseException; import net.jini.core.lease.LeaseDeniedException; /** Each LeaseHandler instance knows how to renew/cancel a leased resource identified by a particular type of SpaceUID. @see org.dancres.blitz.lease.LeaseHandlers */ public interface LeaseHandler { public boolean recognizes(SpaceUID aUID); /** @return the duration actually assigned to the resource associated with the SpaceUID after bounding etc. */ public long renew(SpaceUID aUID, long aLeaseDuration) throws UnknownLeaseException, LeaseDeniedException, IOException; public void cancel(SpaceUID aUID) throws UnknownLeaseException, IOException; }