Package | Description |
---|---|
net.jini.lookup |
Standard utility classes for managing the join state of a service
and the service discovery duties of a client or service.
|
Modifier and Type | Class and Description |
---|---|
private static class |
ServiceDiscoveryManager.ServiceDiscoveryListenerImpl
Class that defines the listener that will receive local events from the
internal LookupCache used in the blocking versions of lookup().
|
Modifier and Type | Field and Description |
---|---|
(package private) ServiceDiscoveryListener |
ServiceDiscoveryManager.LookupCacheImpl.ServiceNotifyDo.sl |
Modifier and Type | Field and Description |
---|---|
private Collection<ServiceDiscoveryListener> |
ServiceDiscoveryManager.LookupCacheImpl.sItemListeners |
Modifier and Type | Method and Description |
---|---|
void |
ServiceDiscoveryManager.LookupCacheImpl.addListener(ServiceDiscoveryListener listener) |
void |
LookupCache.addListener(ServiceDiscoveryListener listener)
Registers a
ServiceDiscoveryListener object with
the event mechanism of a LookupCache . |
private void |
ServiceDiscoveryManager.LookupCacheImpl.addServiceNotify(ServiceItem item,
ServiceDiscoveryListener srvcListener)
Sends a notification to the given listener when a ServiceItem has
been added.
|
LookupCache |
ServiceDiscoveryManager.createLookupCache(ServiceTemplate tmpl,
ServiceItemFilter filter,
ServiceDiscoveryListener listener)
The
createLookupCache method allows the client-like entity
to request that the ServiceDiscoveryManager create a new
managed set (or cache) and populate it with services, which match
criteria defined by the entity, and whose references are registered with
one or more of the lookup services the entity has targeted for discovery. |
private ServiceDiscoveryManager.LookupCacheImpl |
ServiceDiscoveryManager.createLookupCache(ServiceTemplate tmpl,
ServiceItemFilter filter,
ServiceDiscoveryListener listener,
long leaseDuration)
Creates a LookupCache with specific lease duration.
|
void |
ServiceDiscoveryManager.LookupCacheImpl.removeListener(ServiceDiscoveryListener listener) |
void |
LookupCache.removeListener(ServiceDiscoveryListener listener)
Removes a
ServiceDiscoveryListener object from the set
of listeners currently registered with the LookupCache . |
Constructor and Description |
---|
LookupCacheImpl(ServiceTemplate tmpl,
ServiceItemFilter filter,
ServiceDiscoveryListener sListener,
long leaseDuration,
ServiceDiscoveryManager sdm) |
ServiceNotifyDo(ServiceItem oldItem,
ServiceItem item,
int action,
ServiceDiscoveryListener sl,
LookupCache lookupCache) |
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.