Package | Description |
---|---|
com.sun.jini.discovery |
Provides a set of constraints, low-level utility classes, and provider
interfaces for participating in versions 1 and 2 of the multicast request,
multicast announcement, and unicast discovery protocols.
|
com.sun.jini.example.browser |
A visualization tool for exploring Jini Network Technology
communities (djinns) with support for ServiceUI.
|
com.sun.jini.fiddler |
Provides the server side of an implementation of the lookup discovery service
(see
). |
com.sun.jini.reggie |
Provides implementations of
ServiceRegistrar . |
net.jini.core.discovery |
A standard utility class for finding particular lookup services.
|
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.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 |
---|---|
protected ServiceRegistrar |
UnicastResponse.registrar
The lookup service proxy.
|
Modifier and Type | Method and Description |
---|---|
ServiceRegistrar |
UnicastResponse.getRegistrar()
Returns the lookup service proxy.
|
Constructor and Description |
---|
UnicastResponse(String host,
int port,
String[] groups,
ServiceRegistrar registrar)
Creates new
UnicastResponse instance containing the given
values. |
Modifier and Type | Field and Description |
---|---|
private ServiceRegistrar |
Browser.lookup |
private ServiceRegistrar |
ServiceEditor.registrar |
private ServiceRegistrar |
ServiceBrowser.AttributePanel.registrar |
private ServiceRegistrar |
Browser.Lookup.registrar |
Modifier and Type | Method and Description |
---|---|
private void |
Browser.addOne(ServiceRegistrar registrar) |
Constructor and Description |
---|
Browser.Lookup(ServiceRegistrar registrar) |
ServiceBrowser.AttributePanel(ServiceItem item,
ServiceRegistrar registrar) |
ServiceBrowser(ServiceItem item,
ServiceRegistrar registrar,
Browser browser) |
ServiceEditor(ServiceItem item,
Object admin,
ServiceRegistrar registrar,
Browser browser) |
Modifier and Type | Field and Description |
---|---|
ServiceRegistrar |
FiddlerImpl.DiscardRegistrarTask.registrar
The registrar to discard
|
Modifier and Type | Method and Description |
---|---|
ServiceRegistrar[] |
FiddlerRegistration.getRegistrars()
Returns an array consisting of instances of the ServiceRegistrar
interface.
|
private ServiceRegistrar[] |
FiddlerImpl.intersectRegSets(ServiceRegistrar[] regs0,
ServiceRegistrar[] regs1)
Returns the set of registrars common to both input parameters
|
Modifier and Type | Method and Description |
---|---|
void |
FiddlerRegistration.discard(ServiceRegistrar registrar)
Informs the lookup discovery service of the existence of an
unavailable lookup service and requests that the lookup discovery
service discard the unavailable lookup service.
|
void |
FiddlerImpl.discard(Uuid registrationID,
ServiceRegistrar registrar)
This method is the "backend" server counterpart to the method of
the same name provided by the
LookupDiscoveryRegistration
proxy (an instance of FiddlerRegistration ) that is
returned by this service when a client requests a registration. |
void |
Fiddler.discard(Uuid registrationID,
ServiceRegistrar registrar)
Informs the lookup discovery service of the existence of an
unavailable lookup service and requests that the lookup discovery
service discard the unavailable lookup service.
|
private static void |
FiddlerRegistration.insertRegistrars(ServiceRegistrar[] regsArray,
ArrayList regsList)
Places the the lookup service reference(s), contained in the input
ArrayList, into the 'empty' slots occurring at the end (indicated
by the first null element) of the input array.
|
private ServiceRegistrar[] |
FiddlerImpl.intersectRegSets(ServiceRegistrar[] regs0,
ServiceRegistrar[] regs1)
Returns the set of registrars common to both input parameters
|
private ServiceRegistrar[] |
FiddlerImpl.intersectRegSets(ServiceRegistrar[] regs0,
ServiceRegistrar[] regs1)
Returns the set of registrars common to both input parameters
|
private HashMap |
FiddlerImpl.mapRegToGroups(ServiceRegistrar reg,
String[] groups)
Convenience method that creates and returns a mapping of a single
ServiceRegistrar instance to a set of groups. |
private boolean |
FiddlerImpl.regIsElementOfRegSet(ServiceRegistrar reg,
ServiceRegistrar[] regSet)
Returns true if the input registrar is an element of the given array
|
private boolean |
FiddlerImpl.regIsElementOfRegSet(ServiceRegistrar reg,
ServiceRegistrar[] regSet)
Returns true if the input registrar is an element of the given array
|
private static void |
FiddlerImpl.writeRegistrarsArray(ServiceRegistrar[] regs,
Logger logger,
Level level) |
Constructor and Description |
---|
FiddlerImpl.DiscardRegistrarTask(FiddlerImpl.RegistrationInfo regInfo,
ServiceRegistrar registrar)
Constructs an instance of this class and stores the registration
information.
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
ConstrainableRegistrarProxy
RegistrarProxy subclass that supports constraints.
|
(package private) class |
RegistrarProxy
A RegistrarProxy is a proxy for a registrar.
|
Modifier and Type | Method and Description |
---|---|
ServiceRegistrar |
LookupLocator.getRegistrar()
Perform unicast discovery and return the ServiceRegistrar
object for the given lookup service.
|
ServiceRegistrar |
LookupLocator.getRegistrar(int timeout)
Perform unicast discovery and return the ServiceRegistrar
object for the given lookup service, with the given discovery timeout.
|
private static ServiceRegistrar |
LookupLocator.getRegistrarFromSocket(Socket sock,
int timeout) |
Modifier and Type | Field and Description |
---|---|
ServiceRegistrar |
LookupLocatorDiscovery.LocatorReg.proxy |
ServiceRegistrar |
LookupDiscoveryManager.ProxyReg.proxy
The discovered registrar to be managed
|
protected ServiceRegistrar |
IncomingUnicastResponse.registrar
The registrar we have discovered.
|
private ServiceRegistrar[] |
LookupUnmarshalException.registrars
Array containing the set of instances of
ServiceRegistrar
that were successfully unmarshalled during the process in which at
least one failure occurred. |
protected ServiceRegistrar[] |
RemoteDiscoveryEvent.regs
Array containing a subset of the set of proxies to the lookup
service(s) with which this event is associated.
|
protected ServiceRegistrar[] |
DiscoveryEvent.regs
The registrars with which this event is associated.
|
Modifier and Type | Method and Description |
---|---|
private ServiceRegistrar[] |
LookupLocatorDiscovery.buildServiceRegistrar()
From each element of the set of LocatorReg objects that correspond
to lookup services that have been discovered, this method extracts
the ServiceRegistrar reference and returns all of the references
in an array of ServiceRegistrar.
|
private static ServiceRegistrar[] |
RemoteDiscoveryEvent.clipNullsFromEnd(ServiceRegistrar[] regsArray)
Convenience method that copies elements from the given array into
a new array, and returns the new array.
|
ServiceRegistrar |
IncomingUnicastResponse.getRegistrar()
Return the lookup service registrar we have discovered.
|
ServiceRegistrar |
ConstrainableLookupLocator.getRegistrar()
Performs unicast discovery as specified by
LookupLocator.getRegistrar() with the following differences. |
ServiceRegistrar |
ConstrainableLookupLocator.getRegistrar(int timeout)
Performs unicast discovery as specified by
LookupLocator.getRegistrar(int) , additionally applying the
supplied discovery constraints. |
private ServiceRegistrar |
ConstrainableLookupLocator.getRegistrar(InvocationConstraints constraints) |
ServiceRegistrar[] |
RemoteDiscoveryEvent.getRegistrars()
Returns an array consisting of instances of the ServiceRegistrar
interface.
|
ServiceRegistrar[] |
LookupUnmarshalException.getRegistrars()
Accessor method that returns an array consisting of instances of
ServiceRegistrar , where each element of the array
corresponds to a successfully unmarshalled object. |
ServiceRegistrar[] |
LookupLocatorDiscovery.getRegistrars()
Returns an array of instances of
ServiceRegistrar , each
corresponding to a proxy to one of the currently discovered lookup
services. |
ServiceRegistrar[] |
LookupDiscoveryRegistration.getRegistrars()
Returns an array consisting of instances of the ServiceRegistrar
interface.
|
ServiceRegistrar[] |
LookupDiscoveryManager.getRegistrars()
Returns an array of instances of
ServiceRegistrar , each
corresponding to a proxy to one of the currently discovered lookup
services. |
ServiceRegistrar[] |
LookupDiscovery.getRegistrars()
Returns an array of instances of
ServiceRegistrar , each
corresponding to a proxy to one of the currently discovered lookup
services. |
ServiceRegistrar[] |
DiscoveryManagement.getRegistrars()
Returns an array of instances of
ServiceRegistrar , each
corresponding to a proxy to one of the currently discovered lookup
services. |
ServiceRegistrar[] |
DiscoveryEvent.getRegistrars()
Return the set of registrars to which this event applies.
|
Modifier and Type | Method and Description |
---|---|
private static ServiceRegistrar[] |
RemoteDiscoveryEvent.clipNullsFromEnd(ServiceRegistrar[] regsArray)
Convenience method that copies elements from the given array into
a new array, and returns the new array.
|
void |
LookupLocatorDiscovery.discard(ServiceRegistrar proxy)
Removes an instance of
ServiceRegistrar from the
managed set of lookup services, making the corresponding lookup
service eligible for re-discovery. |
void |
LookupDiscoveryRegistration.discard(ServiceRegistrar registrar)
Informs the lookup discovery service of the existence of an
unavailable lookup service and requests that the lookup discovery
service discard the unavailable lookup service.
|
void |
LookupDiscoveryManager.discard(ServiceRegistrar proxy)
Removes an instance of
ServiceRegistrar from the
managed set of lookup services, making the corresponding lookup
service eligible for re-discovery. |
void |
LookupDiscovery.discard(ServiceRegistrar reg)
Discard a registrar from the set of registrars already
discovered.
|
void |
DiscoveryManagement.discard(ServiceRegistrar proxy)
Removes an instance of
ServiceRegistrar from the
managed set of lookup services, making the corresponding lookup
service eligible for re-discovery. |
private LookupDiscoveryManager.ProxyReg |
LookupDiscoveryManager.findReg(ServiceRegistrar proxy) |
private LookupLocator |
LookupLocatorDiscovery.findRegFromProxy(ServiceRegistrar proxy)
This method searches the set of discovered LocatorReg objects
for the element that contains the given ServiceRegistrar object.
|
private String[] |
LookupDiscovery.getActualGroups(ServiceRegistrar reg)
This method retrieves from the given
ServiceRegistrar ,
the current groups in which that registrar is a member. |
int |
LookupDiscoveryManager.getFrom(ServiceRegistrar proxy)
Return where the proxy come from.
|
private void |
LookupUnmarshalException.init(ServiceRegistrar[] registrars,
MarshalledObject[] marshalledRegistrars,
Throwable[] exceptions)
Initializes the abstract state of this class.
|
private static void |
RemoteDiscoveryEvent.insertRegistrars(ServiceRegistrar[] regsArray,
ArrayList regsList)
Places the lookup service reference(s), contained in the input
ArrayList, into the 'empty' slots occurring at the end (indicated
by the first null element) of the input array.
|
private Map |
LookupLocatorDiscovery.mapRegToGroups(ServiceRegistrar reg,
String[] curGroups)
Convenience method that creates and returns a mapping of a single
ServiceRegistrar instance to a set of groups. |
private Map |
LookupDiscovery.mapRegToGroups(ServiceRegistrar reg,
String[] curGroups)
Convenience method that creates and returns a mapping of a single
ServiceRegistrar instance to a set of groups. |
static void |
OutgoingUnicastResponse.marshal(OutputStream str,
ServiceRegistrar reg,
String[] groups)
Marshal a unicast response to the given output stream.
|
private void |
LookupDiscovery.notifyOnGroupChange(ServiceRegistrar reg,
String[] oldGroups,
String[] newGroups)
After a possible change in the member groups of the given
ServiceRegistrar parameter, this method compares
the registrar's original set of member groups to its new set
of member groups. |
private void |
LookupDiscovery.sendChanged(ServiceRegistrar reg,
String[] curGroups)
Convenience method that sends a changed event containing only
one registrar to all registered listeners that are interested in
such events.
|
private void |
LookupDiscovery.sendDiscarded(ServiceRegistrar reg,
String[] curGroups)
Convenience method that sends a discarded event containing only
one registrar to all registered listeners.
|
Constructor and Description |
---|
DiscoveryEvent(Object source,
ServiceRegistrar[] regs)
Construct a new
DiscoveryEvent object, with the given
source and set of registrars. |
LookupDiscoveryManager.ProxyReg(ServiceRegistrar proxy,
String[] memberGroups,
int from)
Constructs an instance of this wrapper class.
|
LookupUnmarshalException(ServiceRegistrar[] registrars,
MarshalledObject[] marshalledRegistrars,
Throwable[] exceptions)
Constructs a new instance of
LookupUnmarshalException . |
LookupUnmarshalException(ServiceRegistrar[] registrars,
MarshalledObject[] marshalledRegistrars,
Throwable[] exceptions,
String message)
Constructs a new instance of
LookupUnmarshalException . |
Modifier and Type | Field and Description |
---|---|
private ServiceRegistrar |
ServiceDiscoveryManager.ServiceItemReg.proxy |
ServiceRegistrar |
ServiceDiscoveryManager.ProxyReg.proxy |
private ServiceRegistrar |
ServiceDiscoveryManager.LeaseListenerImpl.proxy |
ServiceRegistrar |
JoinManager.ProxyReg.proxy
The prepared proxy to the lookup service referenced by
this class, and with which this join manager's service will be
registered.
|
Modifier and Type | Method and Description |
---|---|
private ServiceRegistrar[] |
ServiceDiscoveryManager.buildServiceRegistrar()
Returns array of ServiceRegistrar created from the proxyRegSet
|
ServiceRegistrar[] |
JoinManager.getJoinSet()
Returns an array of
ServiceRegistrar objects, each
corresponding to a lookup service with which the service is currently
registered (joined). |
Modifier and Type | Method and Description |
---|---|
boolean |
ServiceDiscoveryManager.ServiceItemReg.addProxy(ServiceRegistrar proxy,
ServiceItem item) |
private void |
ServiceDiscoveryManager.discard(ServiceRegistrar proxy)
Discards a ServiceRegistrar through the discovery manager.
|
private void |
ServiceDiscoveryManager.LookupCacheImpl.discardRetryLater(ServiceItem item,
ServiceRegistrar proxy,
boolean sendEvent)
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 void |
ServiceDiscoveryManager.fail(Throwable e,
ServiceRegistrar proxy,
String sourceClass,
String sourceMethod,
String msg,
boolean cacheTerminated)
Convenience method invoked when failure occurs in the cache
tasks executed in this utility.
|
private ServiceItem |
ServiceDiscoveryManager.LookupCacheImpl.filterMaybeDiscard(ServiceItem item,
ServiceRegistrar proxy,
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 ServiceDiscoveryManager.ProxyReg |
ServiceDiscoveryManager.findReg(ServiceRegistrar proxy)
Returns element from proxyRegSet that corresponds to the given proxy.
|
private JoinManager.ProxyReg |
JoinManager.findReg(ServiceRegistrar proxy)
For the given lookup service proxy, searches the
joinSet
for the corresponding ProxyReg element, and upon finding
such an element, returns that element; otherwise returns
null . |
private void |
ServiceDiscoveryManager.LookupCacheImpl.handleMatchNoMatch(ServiceRegistrar proxy,
ServiceID srvcID,
ServiceItem item)
Convenience method called by
NotifyEventTask.run (only
when a TRANSITION_MATCH_NOMATCH event is received) that removes
the given item from the serviceIdMap
and wakes up the ServiceDiscardTimerTask if the given
item is discarded; otherwise, sends a removed event. |
private void |
ServiceDiscoveryManager.LookupCacheImpl.itemMatchMatchChange(ServiceRegistrar proxy,
ServiceItem newItem,
ServiceDiscoveryManager.ServiceItemReg itemReg,
boolean matchMatchEvent)
With respect to a given service (referenced by both the parameter
newItem and the parameter itemReg), 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 void |
ServiceDiscoveryManager.listenerDiscovered(ServiceRegistrar proxy,
ArrayList notifies)
Sends discovered event to each listener listening for new lookups.
|
private void |
ServiceDiscoveryManager.listenerDropped(ServiceRegistrar[] proxys,
ArrayList notifies)
Sends discarded event to each listener waiting for discarded lookups.
|
private ServiceDiscoveryManager.EventReg |
ServiceDiscoveryManager.registerListener(ServiceRegistrar proxy,
ServiceTemplate tmpl,
RemoteEventListener listenerProxy,
long duration)
Registers for events from the lookup service associated with the
given proxy, and returns both the lease and the event sequence number
from the event registration wrapped in the locally-defined class,
EventReg . |
ServiceItem |
ServiceDiscoveryManager.ServiceItemReg.removeProxy(ServiceRegistrar proxy) |
Constructor and Description |
---|
JoinManager.ProxyReg(ServiceRegistrar proxy)
Constructor that associates this class with the lookup service
referenced in the given
ProxyReg parameter. |
ServiceDiscoveryManager.LeaseListenerImpl(ServiceRegistrar proxy) |
ServiceDiscoveryManager.ProxyReg(ServiceRegistrar proxy) |
ServiceDiscoveryManager.ServiceItemReg(ServiceRegistrar proxy,
ServiceItem item) |
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.