Mercurial > hg > blitz_condensed
comparison src/org/dancres/blitz/remote/Landlord.java @ 0:3dc0c5604566
Initial checkin of blitz 2.0 fcs - no installer yet.
author | Dan Creswell <dan.creswell@gmail.com> |
---|---|
date | Sat, 21 Mar 2009 11:00:06 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:3dc0c5604566 |
---|---|
1 package org.dancres.blitz.remote; | |
2 | |
3 import java.rmi.Remote; | |
4 import java.rmi.RemoteException; | |
5 | |
6 import net.jini.core.lease.UnknownLeaseException; | |
7 import net.jini.core.lease.LeaseDeniedException; | |
8 | |
9 import org.dancres.blitz.lease.SpaceUID; | |
10 | |
11 /** | |
12 Remote lease renewal operations will be carried out through this interface | |
13 */ | |
14 public interface Landlord extends Remote { | |
15 public LeaseResults renew(SpaceUID[] aLeases, long[] aDurations) | |
16 throws RemoteException; | |
17 | |
18 /** | |
19 @return <code>null</code> if all cancels worked, otherwise, return | |
20 an array init'd with the exceptions mapped at the same indices as the | |
21 originally passed leases. | |
22 */ | |
23 public LeaseResults cancel(SpaceUID[] aLeases) | |
24 throws RemoteException; | |
25 | |
26 public long renew(SpaceUID aUID, long aDuration) | |
27 throws UnknownLeaseException, LeaseDeniedException, RemoteException; | |
28 | |
29 public void cancel(SpaceUID aUID) | |
30 throws UnknownLeaseException, RemoteException; | |
31 } |