diff src/org/dancres/blitz/remote/perf/LeaseResults.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/LeaseResults.java	Sat Mar 21 11:00:06 2009 +0000
@@ -0,0 +1,21 @@
+package org.dancres.blitz.remote.perf;
+
+/**
+   <p>Used to convey the results of a renew/cancelAll method invocation.</p>
+
+   <p>Should consist of two arrays - one contains longs - for renew, if -1
+   failure else it's a new duration which should be added to local system
+   time millis and put in the lease.  The other array contains exceptions
+   for those with a -1.  In the case of cancel, only the exception array
+   is populated and the entries are null indicating successful cancel or
+   an exception indicating a problem.</p>
+ */
+public class LeaseResults implements java.io.Serializable {
+    long[] theNewDurations;
+    Exception[] theFailures;
+
+    LeaseResults(long[] aNewDurations, Exception[] aFails) {
+        theNewDurations = aNewDurations;
+        theFailures = aFails;
+    }
+}