Package com.sun.jini.landlord
This is a utility for services implementing leases. The Landlord is the basic interface that defines the
utility. A service that exports leases implements the
Landlord interface, which is used for callbacks by the utility
classes when a lease's status changes. Each leased resource is identified
by a landlord-generated Uuid called a cookie. The
Lease object handed to the client contains the
cookie, and that cookie is used when communicating with the landlord about
the lease.
The utility classes define a lease object type LandlordLease. The Lease objects
handed to clients will be of this type. LandlordLease objects
talk to the Landlord about the lease. A factory class, LeaseFactory, can be used to generate new
leases. The package also contains a constrainable implementation of
Lease, ConstrainableLandlordLease, that implements
RemoteMethodControl and supports proxy
trust verification (when used with LandlordProxyVerifier) and suitable implementations
of LeaseMap. It also contains utilities and
interfaces to assist you in implementing the Landlord
interfaces: LandlordUtil, LeasePeriodPolicy, and FixedLeasePeriodPolicy.
Using the classes in this package, you can write services that export leases and handle primarily those factors that are unique to your service, letting the utility classes do generic lease-related work.
-
ClassDescriptionConstrainable sub-class of
LandlordLease.Constrainable sub-class ofLandlordLeaseMap.Simple implementation ofLeasePeriodPolicythat grants lease times based on a fixed default and maximum lease.Interface that granters of leases must implement in order to work with theLandlordLeaseimplementation of theLeaseinterface.Simple class that holds return values of theLandlord.renewAllmethod.Basic implementation ofnet.jini.core.lease.Leasethat works with the the Landlord protocol.Implementation ofLeaseMapforLandlordLease.This class defines a trust verifier for the proxies defined in the landlord package.Static methods useful for implementing landlords.Server side representation of a leaseFactory forLandlordLeaseinstances.Interface for objects that define what policy to use when calculating lease grants and renewals.Simple class that holds a pair of times, the new expiration and duration for a lease.Interface that defines the basic landlord primitives (renew and cancel) as local methods.OverridedFixedLeasePeriodPolicy.currentTime()by usingSystemTime#timeMills()