ServiceItem
object that satisfies the given filter
parameter. The service item returned must have been previously discovered to be both registered with one or more of the lookup services in the managed set, and to match criteria defined by the entity.
The semantics of the filter
argument are identical to those of the filter
argument specified for a number of the methods defined in the interface of the ServiceDiscoveryManager
utility class. This argument is intended to allow an entity to separate its filtering into two steps: an initial filter applied during the discovery phase, and a finer resolution filter applied upon retrieval from the cache. As with the methods of the ServiceDiscoveryManager
, if null
is the value of this argument, then no additional filtering will be performed.
@param filter used for matching ServiceItem
s. A null value means no additional filtering should be applied.
@return ServiceItem that satisfies the filter, and that was previously discovered to be registered with one or more lookup services in the managed set. A null
value will be returned if no ServiceItem
is found that matches the criteria or if the cache is empty.
|
|