com.sun.jini.landlord
Class LandlordUtil
java.lang.Object
   com.sun.jini.landlord.LandlordUtil
com.sun.jini.landlord.LandlordUtil
- public class LandlordUtil 
- extends Object
Static methods useful for implementing landlords.
- Since:
- 2.0
- Author:
- Sun Microsystems, Inc.
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
LandlordUtil
public LandlordUtil()
renewAll
public static Landlord.RenewResults renewAll(LocalLandlord landlord,
                                             Uuid[] cookies,
                                             long[] durations)
- Call landlord.renew()for each object incookie[], passingcookie[i]anddurations[i].  Gather the results and 
 exceptions into aRenewResultsobject.
 
- 
- Parameters:
- landlord- A grantor of leases.
- cookies- an array of- Uuids, each uniquely and
                universally identifying a lease
- durations- an array of longs, each representing a
                  duration in milliseconds that the client
                  wants the lease associated with the object
                  from the corresponding element of- cookiesrenewed for.
- Returns:
- A RenewResultsobject that contains the new
         duration of each lease that was successfully renewed or
         the exception encountered for each lease that could not
         be renewed.
 
cancelAll
public static Map cancelAll(LocalLandlord landlord,
                            Uuid[] cookies)
- Call landlord.cancel()for each object incookies[], passingcookies[i].
 
- 
- Parameters:
- landlord- a grantor of leases
- cookies- an array of- Uuids, each uniquely and
                universally identifying a lease
- Returns:
- If no exceptions are encountered, return
         null, otherwise, return a Map that 
         for each failedcancel()call maps
         the passed cookie object to the exception that 
         was generated
 
Copyright © GigaSpaces.