Package | Description |
---|---|
net.jini.core.event |
The
RemoteEventListener interface and related standard classes. |
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.core.transaction |
These are the transaction abstraction's interfaces and classes.
|
net.jini.core.transaction.server |
These are the default transaction semantics for participant/manager interaction.
|
net.jini.discovery |
These are utility classes and interfaces that conform to the discovery and join
protocol defined in the Jini Discovery and Join Specification.
|
net.jini.event | |
net.jini.lease |
Standard service and utility classes for managing leases.
|
net.jini.lookup |
Standard utility classes for managing the join state of a service
and the service discovery duties of a client or service.
|
net.jini.space |
JavaSpaces servers provide a place on the network, a space,
for clients to store and exchange objects.
|
org.apache.river.example.browser |
A visualization tool for exploring Jini Network Technology
communities (djinns) with support for ServiceUI.
|
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.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 | Field and Description |
---|---|
private Lease |
EventRegistration.lease
The registration lease.
|
Modifier and Type | Method and Description |
---|---|
Lease |
EventRegistration.getLease()
Returns the Lease object for this registration.
|
Constructor and Description |
---|
EventRegistration(long eventID,
Object source,
Lease lease,
long seqNum)
Constructs an EventRegistration object.
|
Modifier and Type | Field and Description |
---|---|
Map<Lease,Exception> |
LeaseMapException.exceptionMap
A Map from Lease to Exception, containing each lease that failed to
renew or cancel, and the exception that resulted from that lease's
renewal or cancel attempt.
|
Modifier and Type | Method and Description |
---|---|
LeaseMap<? extends Lease,Long> |
Lease.createLeaseMap(long duration)
Creates a Map object that can contain leases whose renewal or
cancellation can be batched, and adds the current lease to that map.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Lease.canBatch(Lease lease)
Returns a boolean indicating whether or not the lease given as a
parameter can be batched (placed in the same LeaseMap) with the
current lease.
|
Constructor and Description |
---|
LeaseMapException(String s,
Map<Lease,Exception> exceptionMap)
Constructs a LeaseMapException for the specified map with a
detail message.
|
Modifier and Type | Method and Description |
---|---|
Lease |
ServiceRegistration.getLease()
Returns the lease that controls the service registration, allowing
the lease to be renewed or cancelled.
|
Modifier and Type | Field and Description |
---|---|
Lease |
Transaction.Created.lease
The lease.
|
Lease |
NestableTransaction.Created.lease
The lease.
|
Constructor and Description |
---|
Created(NestableTransaction transaction,
Lease lease)
Simple constructor.
|
Created(Transaction transaction,
Lease lease)
Simple constructor.
|
Modifier and Type | Field and Description |
---|---|
Lease |
TransactionManager.Created.lease
The lease.
|
Constructor and Description |
---|
Created(long id,
Lease lease)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
Lease |
LookupDiscoveryRegistration.getLease()
Returns the Lease object that controls a client's registration with
the lookup discovery service.
|
Modifier and Type | Method and Description |
---|---|
Lease |
MailboxRegistration.getLease()
Returns the
Lease object associated
with this registration. |
Modifier and Type | Field and Description |
---|---|
Lease |
LeaseRenewalManager.Entry.lease
The lease
|
private Lease |
LeaseRenewalEvent.lease
The failed lease.
|
private Lease[] |
LeaseUnmarshalException.unmarshalledLeases
Array containing the set of instances of
Lease that
were successfully unmarshalled during the process in which at
least one failure occurred. |
Modifier and Type | Method and Description |
---|---|
abstract Lease |
RenewalFailureEvent.getLease()
Returns the lease that could not be renewed.
|
Lease |
LeaseRenewalEvent.getLease()
Returns a reference to the lease to which the event pertains.
|
Lease[] |
LeaseUnmarshalException.getLeases()
Accessor method that returns an array consisting of instances of
Lease , where each element of the array corresponds
to a successfully unmarshalled object. |
Lease[] |
LeaseRenewalSet.getLeases()
Returns all the leases currently in the set.
|
Lease |
LeaseRenewalSet.getRenewalSetLease()
Returns the lease that controls the lifetime of this set.
|
Lease |
ExpirationWarningEvent.getRenewalSetLease()
Convenience method to retrieve the
Lease associated
with the source of this event. |
Lease |
LeaseRenewalSet.remove(Lease leaseToRemove)
Removes the specified lease from set.
|
Modifier and Type | Method and Description |
---|---|
private void |
LeaseRenewalManager.addLease(Lease lease,
long desiredExpiration,
long renewDuration,
LeaseListener listener,
long now) |
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
|
private LeaseRenewalManager.Entry |
LeaseRenewalManager.findEntryDo(Lease lease)
Find a lease entry, or null
|
private static LeaseRenewalManager.Entry |
LeaseRenewalManager.findLeaseFromIterator(Iterator iter,
Lease lease)
Find a lease entry, or null
|
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).
|
Lease |
LeaseRenewalSet.remove(Lease leaseToRemove)
Removes the specified lease from set.
|
void |
LeaseRenewalManager.remove(Lease lease)
Removes a given lease from the managed set of leases; but does
not cancel the given lease.
|
void |
LeaseRenewalSet.renewFor(Lease leaseToRenew,
long desiredDuration)
Include a client lease in the set for a specified duration.
|
void |
LeaseRenewalManager.renewFor(Lease lease,
long desiredDuration,
LeaseListener listener)
Include a lease in the managed set for a specified duration.
|
void |
LeaseRenewalSet.renewFor(Lease leaseToRenew,
long desiredDuration,
long renewDuration)
Include a client lease in the set for a specified duration and
with a specified renewal duration.
|
void |
LeaseRenewalManager.renewFor(Lease lease,
long desiredDuration,
long renewDuration,
LeaseListener listener)
Include a lease in the managed set for a specified duration and
with specified renewal duration.
|
void |
LeaseRenewalManager.renewUntil(Lease lease,
long desiredExpiration,
LeaseListener listener)
Include a lease in the managed set until a specified time.
|
void |
LeaseRenewalManager.renewUntil(Lease lease,
long desiredExpiration,
long renewDuration,
LeaseListener listener)
Include a lease in the managed set until a specified time and
with a specified renewal duration.
|
private static boolean |
LeaseRenewalManager.Entry.sameConstraints(Lease l1,
Lease l2)
Returns true if the two leases both implement RemoteMethodControl
and have the same constraints for Lease methods, or both don't
implement RemoteMethodControl, else returns false.
|
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.
|
Constructor and Description |
---|
Entry(Lease lease,
long expiration,
long renewDuration,
long renewalRTT,
LeaseListener listener) |
LeaseRenewalEvent(LeaseRenewalManager source,
Lease lease,
long expiration,
Throwable ex)
Constructs an instance of this class with the specified state.
|
LeaseRenewalManager(Lease lease,
long desiredExpiration,
LeaseListener listener)
Constructs an instance of this class that will initially manage a
single lease.
|
LeaseUnmarshalException(Lease[] leases,
MarshalledObject[] marshalledLeases,
Throwable[] exceptions)
Constructs a new instance of
LeaseUnmarshalException . |
LeaseUnmarshalException(String message,
Lease[] leases,
MarshalledObject[] marshalledLeases,
Throwable[] exceptions)
Constructs a new instance of
LeaseUnmarshalException
with a specified message. |
Modifier and Type | Field and Description |
---|---|
Lease |
ServiceDiscoveryManager.EventReg.lease |
(package private) Lease |
JoinManager.ProxyReg.serviceLease |
Modifier and Type | Method and Description |
---|---|
private void |
ServiceDiscoveryManager.cancelLease(Lease lease)
Cancels the given event lease.
|
Constructor and Description |
---|
EventReg(Object source,
long eventID,
long seqNo,
Lease lease) |
Modifier and Type | Method and Description |
---|---|
Lease |
MatchSet.getLease()
Returns a proxy to the
Lease associated with this
match set, or null if this match set is not
leased. |
Lease |
JavaSpace.write(Entry entry,
Transaction txn,
long lease)
Write a new entry into the space.
|
Modifier and Type | Field and Description |
---|---|
private Lease |
ServiceEditor.elease |
private Lease |
Browser.elease |
Modifier and Type | Class and Description |
---|---|
(package private) class |
FiddlerLease
When the Fiddler implementation of the lookup discovery service grants
a lease on a registration requested by a client, a proxy to that lease
is provided to allow the client to interact with the granted lease.
|
(package private) static class |
FiddlerLease.ConstrainableFiddlerLease
The constrainable version of the class
FiddlerLease . |
Modifier and Type | Method and Description |
---|---|
Lease |
FiddlerRegistration.getLease()
Returns the Lease object that controls a client's registration with
the lookup discovery service.
|
Modifier and Type | Method and Description |
---|---|
boolean |
FiddlerLease.canBatch(Lease lease)
Examines the input parameter to determine if that parameter, along
with the current lease (the current instance of this class), can
be batched in a
LeaseMap . |
boolean |
FiddlerLease.ConstrainableFiddlerLease.canBatch(Lease lease)
Examines the input parameter to determine if that parameter, along
with the current lease (the current instance of this class), can
be batched in a
LeaseMap . |
Modifier and Type | Class and Description |
---|---|
class |
ConstrainableLandlordLease
Constrainable sub-class of
LandlordLease . |
class |
LandlordLease
Basic implementation of
net.jini.core.lease.Lease that works
with the the Landlord protocol. |
Modifier and Type | Method and Description |
---|---|
(package private) static Lease |
LandlordLeaseMap.checkLease(Lease lease) |
Modifier and Type | Method and Description |
---|---|
LeaseMap<? extends Lease,Long> |
LandlordLease.createLeaseMap(long duration) |
Modifier and Type | Method and Description |
---|---|
boolean |
LandlordLease.canBatch(Lease lease) |
boolean |
ConstrainableLandlordLease.canBatch(Lease lease) |
(package private) static Lease |
LandlordLeaseMap.checkLease(Lease lease) |
Constructor and Description |
---|
LandlordLeaseMap(Landlord landlord,
Uuid landlordUuid,
Lease lease) |
LandlordLeaseMap(Landlord landlord,
Uuid landlordUuid,
Lease lease,
long duration)
Create a new
LandlordLeaseMap . |
Modifier and Type | Class and Description |
---|---|
class |
AbstractIDLeaseMap<K extends Lease>
AbstractIDLeaseMap is intended to work around some minor design warts in the
Lease interface:
In the real world, when a Lease is renewed, a new Lease contract document
is issued, however when an electronic Lease is renewed the Lease expiry
date is changed and the record of the previous Lease is lost. |
private static class |
AbstractIDLeaseMap.LeaseEntry<K extends Lease>
The logic behind this Entry is that the identity which maintains strong
references to the key and value will not be added to the set or leaseMap
if it's already present.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractLease
A base class for implementing lease objects.
|
Modifier and Type | Field and Description |
---|---|
private K |
AbstractIDLeaseMap.LeaseEntry.key |
private Lease |
BasicRenewalFailureEvent.lease
Transient cache of lease returned by
getLease method. |
Modifier and Type | Method and Description |
---|---|
Lease |
BasicRenewalFailureEvent.getLease()
Returns the lease that could not be renewed.
|
Constructor and Description |
---|
AbstractLeaseMap(Lease lease,
long duration)
Default to using a small HashMap.
|
AbstractLeaseMap(Map map,
Lease lease,
long duration)
Provide a map of your choice.
|
Modifier and Type | Field and Description |
---|---|
(package private) Lease |
Registration.lease
The service's registration lease
|
Modifier and Type | Method and Description |
---|---|
Lease |
Registration.getLease() |
Modifier and Type | Method and Description |
---|---|
(package private) static Registration |
Registration.create(Uuid id,
MailboxBackEnd server,
Lease lease)
Creates a mailbox registration proxy, returning an instance
that implements RemoteMethodControl if the server does too.
|
Constructor and Description |
---|
ConstrainableRegistration(Uuid id,
MailboxBackEnd server,
Lease lease,
MethodConstraints methodConstraints)
Creates an instance of this class.
|
Registration(Uuid id,
MailboxBackEnd srv,
Lease l)
Convenience constructor
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
ClientLeaseWrapper
Class that wraps client Leases.
|
Modifier and Type | Field and Description |
---|---|
private Lease |
ClientLeaseWrapper.clientLease
Transient copy of unpacked lease,
null if we could not
unpack or prepare the lease. |
private Lease |
ClientLeaseMapWrapper.EntryIterator.last
Lease associated with the last value returned by next()
|
(package private) Lease |
SetProxy.ourLease
Lease for this set.
|
Modifier and Type | Method and Description |
---|---|
private Lease |
ClientLeaseMapWrapper.checkKey(Object key)
Check that the key is valid for this map, if it is return the client
lease, if not throw IllegalArgumentException.
|
(package private) Lease |
ClientLeaseWrapper.getClientLease()
Get a reference to the client lease, unmarshalling and preparing it if
necessary.
|
private Lease |
ClientLeaseMapWrapper.EntrySet.getClientLease(Object o)
If the passed object is a Map.Entry that is in the
ClientMapWrapper return the client lease associated with it,
otherwise return null
|
Lease[] |
SetProxy.getLeases() |
Lease |
SetProxy.getRenewalSetLease() |
Lease |
SetProxy.remove(Lease leaseToRemove) |
Lease |
NormServerBaseImpl.remove(Uuid id,
Lease leaseToRemove) |
Lease |
NormServer.remove(Uuid id,
Lease leaseToRemove)
Remove a lease from a set.
|
Modifier and Type | Method and Description |
---|---|
LeaseMap<Lease,Long> |
ClientLeaseWrapper.createLeaseMap(long duration) |
Modifier and Type | Method and Description |
---|---|
private void |
NormServerBaseImpl.add(LeaseSet set,
Lease leaseToRenew,
long membershipDuration,
long renewDuration)
Add the lease to the set.
|
boolean |
ClientLeaseWrapper.canBatch(Lease lease)
Another lease can be batched with this one if it is a
ClientLeaseMapWrapper, if it is either a member of the same lease
renewal set or sets are not isolated, if neither lease is deformed, if
the leases either both have the same client constraints or do not
implement RemoteMethodControl, and if the underlying client leases can
be batched.
|
(package private) static SetProxy |
SetProxy.create(NormServer server,
Uuid id,
Lease lease)
Creates a lease set proxy, returning an instance that implements
RemoteMethodControl if the server does.
|
(package private) ClientLeaseWrapper |
LeaseTable.get(Lease clientLease)
Find the client lease wrapper associated with the passed lease.
|
(package private) ClientLeaseWrapper |
LeaseSet.getClientLeaseWrapper(Lease clientLease)
Return the wrapper for the specified client lease, or null if not
found.
|
(package private) ClientLeaseWrapper |
DeformedLeaseList.query(Lease clientLease,
Map table)
Query the list to see if the specified client lease is in this list
of deformed leases.
|
Lease |
SetProxy.remove(Lease leaseToRemove) |
Lease |
NormServerBaseImpl.remove(Uuid id,
Lease leaseToRemove) |
Lease |
NormServer.remove(Uuid id,
Lease leaseToRemove)
Remove a lease from a set.
|
void |
SetProxy.renewFor(Lease leaseToRenew,
long membershipDuration) |
void |
SetProxy.renewFor(Lease leaseToRenew,
long membershipDuration,
long renewDuration) |
void |
NormServerBaseImpl.renewFor(Uuid id,
Lease leaseToRenew,
long membershipDuration,
long renewDuration) |
void |
NormServer.renewFor(Uuid id,
Lease leaseToRenew,
long membershipDuration,
long renewDuration)
Add a lease to a set.
|
private static boolean |
ClientLeaseWrapper.sameConstraints(Lease l1,
Lease l2)
Returns true if the two leases both implement RemoteMethodControl and
have the same constraints for Lease methods, or both don't implement
RemoteMethodControl, else returns false.
|
Constructor and Description |
---|
ClientLeaseWrapper(Lease clientLease,
long UID,
List renewedList,
LeaseSet leaseSet,
long membershipDuration,
long renewDuration,
long now)
Simple constructor
|
ConstrainableSetProxy(NormServer server,
Uuid id,
Lease lease,
MethodConstraints methodConstraints)
Creates an instance of this class.
|
SetProxy(NormServer server,
Uuid id,
Lease lease)
Simple constructor.
|
Modifier and Type | Field and Description |
---|---|
private Lease |
MatchSetProxy.lease
Lease assocated with this query
|
Modifier and Type | Method and Description |
---|---|
protected Lease |
SpaceProxy2.constructLease(Uuid uuid,
long expiration)
Create a new lease with the specified id and initial expiration
|
protected Lease |
ConstrainableSpaceProxy2.constructLease(Uuid uuid,
long expiration) |
Lease |
MatchSetProxy.getLease() |
protected Lease |
SpaceProxy2.newLease(Uuid uuid,
long duration)
Create a new lease with the specified id and initial duration
|
Lease |
SpaceProxy2.write(Entry entry,
Transaction txn,
long lease) |
Modifier and Type | Class and Description |
---|---|
(package private) class |
ConstrainableEventLease
EventLease subclass that supports constraints.
|
(package private) class |
ConstrainableServiceLease
ServiceLease subclass that supports constraints.
|
(package private) class |
EventLease
When a registrar (lookup service) grants a lease on an event registration
on behalf of some object (client), a proxy is employed to allow the client
to interact with the lease; this class is the implementation of that proxy.
|
(package private) class |
RegistrarLease
The base class for lease proxies.
|
(package private) class |
ServiceLease
A ServiceLease is a proxy for a service registration lease at a registrar.
|
Modifier and Type | Method and Description |
---|---|
Lease |
Registration.getLease() |
Modifier and Type | Method and Description |
---|---|
LeaseMap<? extends Lease,Long> |
RegistrarLease.createLeaseMap(long duration)
Creates a lease map.
|
LeaseMap<? extends Lease,Long> |
ConstrainableServiceLease.createLeaseMap(long duration)
Creates a constraint-aware lease map.
|
LeaseMap<? extends Lease,Long> |
ConstrainableEventLease.createLeaseMap(long duration)
Creates a constraint-aware lease map.
|
Modifier and Type | Method and Description |
---|---|
boolean |
RegistrarLease.canBatch(Lease lease)
Two leases can be batched if they are both RegistrarLeases and
have the same server.
|
boolean |
ConstrainableServiceLease.canBatch(Lease lease)
Two leases can be batched if they are both RegistrarLeases, share the
same server, and have compatible constraints.
|
boolean |
ConstrainableEventLease.canBatch(Lease lease)
Two leases can be batched if they are both RegistrarLeases, share the
same server, and have compatible constraints.
|
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.