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 | Field and Description |
---|---|
private java.util.concurrent.ConcurrentMap<ServiceID,ServiceDiscoveryManager.ServiceItemReg> |
ServiceDiscoveryManager.LookupCacheImpl.serviceIdMap |
Modifier and Type | Method and Description |
---|---|
private Iterator<Map.Entry<ServiceID,ServiceDiscoveryManager.ServiceItemReg>> |
ServiceDiscoveryManager.LookupCacheImpl.getServiceIdMapEntrySetIterator() |
Modifier and Type | Method and Description |
---|---|
private ServiceItem |
ServiceDiscoveryManager.LookupCacheImpl.addFilteredItemToMap(ServiceItem item,
ServiceItem filteredItem,
ServiceDiscoveryManager.ServiceItemReg itemReg)
Convenience method called by
filterMaybeDiscard that
finds the ServiceItemReg element in the
serviceIdMap that corresponds to the given
ServiceItem and, if such an element is found, replaces
the item field of that element with the given
item parameter; and sets the filteredItem
field of that element to the value contained in the
filteredItem parameter. |
private void |
ServiceDiscoveryManager.LookupCacheImpl.discardRetryLater(ServiceItem item,
boolean sendEvent,
ServiceDiscoveryManager.ServiceItemReg itemReg)
Convenience method called by
filterMaybeDiscard that
finds in the serviceIdMap , the
ServiceItemReg element corresponding to the given
ServiceItem , sets a service removed event, and queues a
ServiceDiscardTimerTask to retry the filter at a later
time. |
private ServiceItem |
ServiceDiscoveryManager.LookupCacheImpl.filterMaybeDiscard(ServiceID srvcID,
ServiceDiscoveryManager.ServiceItemReg itemReg,
ServiceItem item,
boolean sendEvent)
Applies the first-stage
filter associated with the
current instance of LookupCache to the given
item and returns the resulting filtered item if the
filter is passed (or is null ); otherwise,
returns null and sends a service removed event if the
sendEvent parameter is true . |
private void |
ServiceDiscoveryManager.LookupCacheImpl.itemMatchMatchChange(ServiceID srvcID,
ServiceDiscoveryManager.ServiceItemReg itemReg,
ServiceRegistrar proxy,
ServiceItem newItem,
boolean matchMatchEvent)
With respect to a given service (referenced by the parameter
newItem), if either an event has been received from the given lookup
service (referenced by the proxy parameter), or a snapshot of the
given lookup service's state has been retrieved, this method
determines whether the service's attributes have changed, or whether
a new version of the service has been registered.
|
private boolean |
ServiceDiscoveryManager.LookupCacheImpl.removeServiceIdMapSendNoEvent(ServiceID sid,
ServiceDiscoveryManager.ServiceItemReg itemReg)
Removes an entry in the serviceIdMap, but sends no notification.
|
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.