diff src/org/dancres/blitz/remote/perf/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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/org/dancres/blitz/remote/perf/Landlord.java	Sat Mar 21 11:00:06 2009 +0000
@@ -0,0 +1,31 @@
+package org.dancres.blitz.remote.perf;
+
+import java.rmi.Remote;
+import java.rmi.RemoteException;
+
+import net.jini.core.lease.UnknownLeaseException;
+import net.jini.core.lease.LeaseDeniedException;
+
+import org.dancres.blitz.lease.SpaceUID;
+
+/**
+   Remote lease renewal operations will be carried out through this interface
+ */
+public interface Landlord extends Remote {
+    public LeaseResults renew(SpaceUID[] aLeases, long[] aDurations)
+        throws RemoteException;
+
+    /**
+       @return <code>null</code> if all cancels worked, otherwise, return
+       an array init'd with the exceptions mapped at the same indices as the
+       originally passed leases.
+     */
+    public LeaseResults cancel(SpaceUID[] aLeases)
+        throws RemoteException;
+
+    public long renew(SpaceUID aUID, long aDuration)
+        throws UnknownLeaseException, LeaseDeniedException, RemoteException;
+
+    public void cancel(SpaceUID aUID)
+        throws UnknownLeaseException, RemoteException;
+}