Re: serviceRemoved / serviceAdded problem

Juan Ramirez <[email protected]>
Newsgroups gmane.comp.java.sun.jini
Organization Sun Microsystems
Message-ID <[email protected]>
Francisco Dário Mourão wrote On 01/19/07 13:48,:

> ...is it me or this is a bit confusing... the min for maximum lease... what about the minimum lease? How can I specify the min for the minimum lease?
>

Hi, Fransisco.  There is no mechanism to configure a minimum lease in Reggie.
In fact, the "Jini Lookup Service" and "Jini Distributed Leasing" specifications
disallow imposing a minimum lease on Reggie's part.  A lease grantor may grant
leases that are shorter than requested, but never leases that are longer than
have been requested (which is where a minimum lease parameter in Reggie would
come in).  Granting a lease that is shorter than requested makes sense because
leasing helps a lease grantor release resources that are no longer in use.  If a
lease grantor grants arbitrarily long leases, it may end up holding on to
resources that are no longer in use.

The notion of a minimum maximum lease might be a little confusing.  It is used
to set a floor on how large of a lease Reggie will grant when Lease.ANY or
Lease.FOREVER are requested.  The parameter defines a floor, as Reggie may grant
leases longer than minMax*Lease if it is under heavy load with many service and
event registrations.

Hope this helps,

Juan

--------------------------------------------------------------------------
Getting Started:     http://www.jini.org/wiki/Category:Getting_Started
Community Web Site:  http://jini.org
jini-users Archive:  http://archives.java.sun.com/archives/jini-users.html
Unsubscribing:       email "signoff JINI-USERS"  to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.