Package | Description |
---|---|
net.jini.core.lookup |
These are the lookup service interfaces and classes.
|
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 |
---|---|
ServiceItem[] |
ServiceMatches.items
Matching items (up to maxMatches from lookup method).
|
Modifier and Type | Method and Description |
---|---|
ServiceItem |
ServiceItem.clone()
Clone has been implemented to allow utilities such as
ServiceDiscoveryManager to avoid sharing
internally stored instances with client code. |
abstract ServiceItem |
ServiceEvent.getServiceItem()
Returns the new state of the item, or null if the item was deleted
from the lookup service.
|
Modifier and Type | Method and Description |
---|---|
ServiceRegistration |
ServiceRegistrar.register(ServiceItem item,
long leaseDuration)
Register a new service or re-register an existing service.
|
Constructor and Description |
---|
ServiceMatches(ServiceItem[] items,
int totalMatches)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
ServiceItem |
ServiceDiscoveryEvent.getPostEventServiceItem()
Returns an instance of a
ServiceItem containing the
service reference corresponding to the given event. |
ServiceItem |
ServiceDiscoveryEvent.getPreEventServiceItem()
Returns an instance of a
ServiceItem containing the
service reference corresponding to the given event. |
ServiceItem |
LookupCache.lookup(ServiceItemFilter filter)
Finds a
ServiceItem object that satisfies the given
filter parameter. |
ServiceItem[] |
LookupCache.lookup(ServiceItemFilter filter,
int maxMatches)
Finds an array of instances of
ServiceItem that each
satisfy the given filter parameter. |
ServiceItem[] |
ServiceDiscoveryManager.lookup(ServiceTemplate tmpl,
int minMatches,
int maxMatches,
ServiceItemFilter filter,
long waitDur)
Queries each available lookup service in the managed set for service(s)
that match the input criteria.
|
ServiceItem[] |
ServiceDiscoveryManager.lookup(ServiceTemplate tmpl,
int maxMatches,
ServiceItemFilter filter)
Queries each available lookup service in the managed set for service(s)
that match the input criteria.
|
ServiceItem |
ServiceDiscoveryManager.lookup(ServiceTemplate tmpl,
ServiceItemFilter filter)
Queries each available lookup service in the set of lookup services
managed by the
ServiceDiscoveryManager (the managed
set) for a service reference that matches criteria defined by the
entity that invokes this method. |
ServiceItem |
ServiceDiscoveryManager.lookup(ServiceTemplate tmpl,
ServiceItemFilter filter,
long waitDur)
Queries each available lookup service in the managed set for a service
that matches the input criteria.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ServiceItemFilter.check(ServiceItem item)
This method defines the implementation of the additional selection
criteria (additional matching and/or proxy preparation) to apply to a
ServiceItem object found
through standard template matching. |
Constructor and Description |
---|
ServiceDiscoveryEvent(Object source,
ServiceItem preEventItem,
ServiceItem postEventItem)
The constructor of
ServiceDiscoveryEvent takes
three arguments:
An instance of Object corresponding to the
instance of LookupCache from which the given event
originated
A ServiceItem reference representing the state
of the service (associated with the given event) prior to the
occurrence of the event
A ServiceItem reference representing the state
of the service after the occurrence of the event
If null is passed as the source parameter for the
constructor, a NullPointerException will be thrown. |
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.