Package | Description |
---|---|
net.jini.core.lease |
These are distributed leasing interfaces and classes.
|
net.jini.core.lookup |
These are the lookup service interfaces and classes.
|
net.jini.lease |
Standard service and utility classes for managing leases.
|
org.apache.river.fiddler |
Provides the server side of an implementation of the lookup discovery service
(see
). |
org.apache.river.landlord |
This is a utility for services implementing leases.
|
org.apache.river.lease |
Some basic utility classes for helping with
client-side lease renewal operations.
|
org.apache.river.mahalo |
Provides implementations of the
TransactionManager service.
|
org.apache.river.mercury |
Provides implementations of the
EventMailbox service.
|
org.apache.river.norm |
Provides implementations of
LeaseRenewalService . |
org.apache.river.outrigger |
This is an implementation of a JavaSpaces technology-enabled service.
|
org.apache.river.reggie |
Provides implementations of
ServiceRegistrar . |
Modifier and Type | Method and Description |
---|---|
void |
Lease.cancel()
Used by the lease holder to indicate that it is no longer interested
in the resource or information held by the lease.
|
void |
Lease.renew(long duration)
Used to renew a lease for an additional period of time, specified in
milliseconds.
|
Modifier and Type | Method and Description |
---|---|
void |
ServiceRegistration.addAttributes(Entry[] attrSets)
Adds the specified attribute sets (those that aren't duplicates of
existing attribute sets) to the registered service item.
|
void |
ServiceRegistration.modifyAttributes(Entry[] attrSetTemplates,
Entry[] attrSets)
Modifies existing attribute sets.
|
void |
ServiceRegistration.setAttributes(Entry[] attrSets)
Deletes all of the service item's existing attributes, and replaces
them with the specified attribute sets.
|
Modifier and Type | Method and Description |
---|---|
void |
LeaseRenewalManager.cancel(Lease lease)
Removes a given lease from the managed set, and cancels it.
|
private LeaseRenewalManager.Entry |
LeaseRenewalManager.findEntry(Lease lease)
Find a lease entry, throw exception if not found or expired
normally
|
long |
LeaseRenewalManager.getExpiration(Lease lease)
Returns the current desired expiration time associated with a
particular lease, (not the actual expiration that was granted
when the lease was created or last renewed).
|
void |
LeaseRenewalManager.remove(Lease lease)
Removes a given lease from the managed set of leases; but does
not cancel the given lease.
|
void |
LeaseRenewalManager.setExpiration(Lease lease,
long expiration)
Replaces the current desired expiration of a given lease from the
managed set with a new desired expiration time.
|
Modifier and Type | Method and Description |
---|---|
void |
FiddlerLease.cancel()
This method allows the entity to which the current lease is granted
(the lease holder) to indicate that it is no longer interested
in the resources provided to the entity by the lookup discovery
service.
|
void |
FiddlerImpl.cancelLease(Uuid registrationID,
Uuid leaseID)
This method is the "backend" server counterpart to the
cancel method specified by the Lease
interface and implemented in the FiddlerLease class; an
instance of which is returned by the getLease method
of the LookupDiscoveryRegistration proxy (an instance of
FiddlerRegistration ) that is returned by this service
when a client requests a registration. |
void |
Fiddler.cancelLease(Uuid registrationID,
Uuid leaseID)
This method cancels the lease corresponding to the given
registrationID and leaseID parameters. |
private void |
FiddlerImpl.cancelLeaseDo(FiddlerImpl.RegistrationInfo regInfo,
Uuid leaseID)
Called by the public method
cancelLease . |
private void |
FiddlerImpl.cancelLeaseDo(Uuid registrationID,
HashMap registrationByID,
Uuid leaseID)
Called by the
apply method of the class
LeaseCancelledLogObj (which is invoked during state
recovery). |
protected long |
FiddlerLease.doRenew(long duration)
This method allows the entity to which the current lease is granted
(the lease holder) to indicate that it is still interested in the
resources of the lookup discovery service, and to request continued
access to those resources for an amount of time (in milliseconds)
relative to the current time.
|
long |
FiddlerImpl.renewLease(Uuid registrationID,
Uuid leaseID,
long duration)
This method is the "backend" server counterpart to the
renew method specified by the Lease interface,
implemented in the org.apache.river.lease.AbstractLease class,
and invoked by way of the doRenew method of the
FiddlerLease class; an instance of which is
returned by the getLease method of the
LookupDiscoveryRegistration proxy (an instance of
FiddlerRegistration ) that is returned by this service
when a client requests a registration. |
long |
Fiddler.renewLease(Uuid registrationID,
Uuid leaseID,
long duration)
This method renews the lease corresponding to the given
registrationID and leaseID parameters,
granting a new duration that is less than or equal to the requested
duration value contained in the duration parameter. |
private long |
FiddlerImpl.renewLeaseDo(FiddlerImpl.RegistrationInfo regInfo,
Uuid leaseID,
long duration)
Called by the public method
renewLease . |
private long |
FiddlerImpl.renewLeaseInt(FiddlerImpl.RegistrationInfo regInfo,
Uuid leaseID,
long duration,
long curTime)
Called by the method
renewLeaseDo . |
Modifier and Type | Method and Description |
---|---|
void |
LandlordLease.cancel() |
void |
LocalLandlord.cancel(Uuid cookie)
Cancel the lease that is associated with the given cookie.
|
void |
Landlord.cancel(Uuid cookie)
Called by the lease when its
cancel method is
called. |
protected long |
LandlordLease.doRenew(long renewDuration) |
long |
LocalLandlord.renew(Uuid cookie,
long duration)
Renew the lease that is associated with the given cookie.
|
long |
Landlord.renew(Uuid cookie,
long duration)
Called by the lease when its
renew method is called. |
Modifier and Type | Method and Description |
---|---|
protected abstract long |
AbstractLease.doRenew(long duration)
Renew the lease for a duration relative to now, and return
the duration actually granted.
|
void |
AbstractLease.renew(long duration)
Renew the lease for a duration relative to now.
|
Modifier and Type | Method and Description |
---|---|
void |
TxnManagerImpl.cancel(Uuid uuid)
Cancels the lease on a
Transaction . |
void |
LeaseExpirationMgr.Expirer.cancel(Uuid cookie)
Called by a LeaseExpirationMgr when it needs to expire a
resource.
|
long |
TxnManagerImpl.renew(Uuid uuid,
long extension)
Requests the renewal of a lease on a
Transaction . |
private void |
TxnManagerImpl.verifyLeaseUuid(Uuid uuid) |
Modifier and Type | Method and Description |
---|---|
void |
MailboxImpl.cancel(Uuid cookie) |
void |
MailboxImpl.LocalLandlordAdaptor.cancel(Uuid cookie) |
private void |
MailboxImpl.cancelDo(Uuid cookie)
Performs the actual registration cancellation logic
|
long |
MailboxImpl.renew(Uuid cookie,
long extension) |
long |
MailboxImpl.LocalLandlordAdaptor.renew(Uuid cookie,
long extension) |
private long |
MailboxImpl.renewDo(Uuid cookie,
long extension)
Performs the actual registration renewal logic
|
Modifier and Type | Method and Description |
---|---|
void |
NormServerBaseImpl.cancel(Uuid cookie) |
void |
ClientLeaseWrapper.renew(long duration) |
long |
NormServerBaseImpl.renew(Uuid cookie,
long extension) |
Modifier and Type | Method and Description |
---|---|
private UnknownLeaseException |
OutriggerServerImpl.throwNewUnknownLeaseException(Object cookie)
Log and throw a new UnknownLeaseException
|
Modifier and Type | Method and Description |
---|---|
void |
OutriggerServerWrapper.cancel(Uuid cookie) |
void |
OutriggerServerImpl.cancel(Uuid cookie) |
long |
OutriggerServerWrapper.renew(Uuid cookie,
long extension) |
long |
OutriggerServerImpl.renew(Uuid cookie,
long extension) |
private UnknownLeaseException |
OutriggerServerImpl.throwNewUnknownLeaseException(Object cookie)
Log and throw a new UnknownLeaseException
|
Modifier and Type | Method and Description |
---|---|
void |
Registration.addAttributes(Entry[] attrSets) |
void |
RegistrarImpl.addAttributes(ServiceID serviceID,
Uuid leaseID,
EntryRep[] attrSets) |
void |
Registrar.addAttributes(ServiceID serviceID,
Uuid leaseID,
EntryRep[] attrSets)
Adds the specified attribute sets (those that aren't duplicates of
existing attribute sets) to the registered service item.
|
private void |
RegistrarImpl.addAttributesDo(ServiceID serviceID,
Uuid leaseID,
EntryRep[] attrSets)
The code that does the real work of addAttributes.
|
void |
ServiceLease.cancel() |
void |
EventLease.cancel() |
void |
RegistrarImpl.cancelEventLease(long eventID,
Uuid leaseID) |
void |
Registrar.cancelEventLease(long eventID,
Uuid leaseID)
Cancels an event lease.
|
private void |
RegistrarImpl.cancelEventLeaseDo(long eventID,
Uuid leaseID)
The code that does the real work of cancelEventLease.
|
void |
RegistrarImpl.cancelServiceLease(ServiceID serviceID,
Uuid leaseID) |
void |
Registrar.cancelServiceLease(ServiceID serviceID,
Uuid leaseID)
Cancels a service lease.
|
private void |
RegistrarImpl.cancelServiceLeaseDo(ServiceID serviceID,
Uuid leaseID)
The code that does the real work of cancelServiceLease.
|
private RegistrarImpl.EventReg |
RegistrarImpl.checkEvent(Uuid leaseID,
long eventID,
long now) |
private RegistrarImpl.SvcReg |
RegistrarImpl.checkLease(ServiceID serviceID,
Uuid leaseID,
long now) |
protected long |
ServiceLease.doRenew(long duration)
Do the actual renew.
|
protected long |
EventLease.doRenew(long duration)
Renews the event lease associated with an instance of this class.
|
void |
Registration.modifyAttributes(Entry[] attrSetTmpls,
Entry[] attrSets) |
void |
RegistrarImpl.modifyAttributes(ServiceID serviceID,
Uuid leaseID,
EntryRep[] attrSetTmpls,
EntryRep[] attrSets) |
void |
Registrar.modifyAttributes(ServiceID serviceID,
Uuid leaseID,
EntryRep[] attrSetTmpls,
EntryRep[] attrSets)
Modifies existing attribute sets of a registered service item.
|
private void |
RegistrarImpl.modifyAttributesDo(ServiceID serviceID,
Uuid leaseID,
EntryRep[] attrSetTmpls,
EntryRep[] attrSets)
The code that does the real work of modifyAttributes.
|
long |
RegistrarImpl.renewEventLease(long eventID,
Uuid leaseID,
long renewDuration) |
long |
Registrar.renewEventLease(long eventID,
Uuid leaseID,
long duration)
Renews an event lease.
|
private long |
RegistrarImpl.renewEventLeaseDo(long eventID,
Uuid leaseID,
long renewDuration)
The code that does the real work of renewEventLease.
|
private long |
RegistrarImpl.renewEventLeaseInt(long eventID,
Uuid leaseID,
long renewDuration,
long now) |
long |
RegistrarImpl.renewServiceLease(ServiceID serviceID,
Uuid leaseID,
long renewDuration) |
long |
Registrar.renewServiceLease(ServiceID serviceID,
Uuid leaseID,
long duration)
Renews a service lease.
|
private long |
RegistrarImpl.renewServiceLeaseDo(ServiceID serviceID,
Uuid leaseID,
long renewDuration)
The code that does the real work of renewServiceLease.
|
private long |
RegistrarImpl.renewServiceLeaseInt(ServiceID serviceID,
Uuid leaseID,
long renewDuration,
long now)
Renew a service lease for a relative duration from now.
|
void |
Registration.setAttributes(Entry[] attrSets) |
void |
RegistrarImpl.setAttributes(ServiceID serviceID,
Uuid leaseID,
EntryRep[] attrSets) |
void |
Registrar.setAttributes(ServiceID serviceID,
Uuid leaseID,
EntryRep[] attrSets)
Deletes all of the service item's existing attributes, and replaces
them with the specified attribute sets.
|
private void |
RegistrarImpl.setAttributesDo(ServiceID serviceID,
Uuid leaseID,
EntryRep[] attrSets)
The code that does the real work of setAttributes.
|
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.