Package | Description |
---|---|
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.
|
org.apache.river.example.browser |
A visualization tool for exploring Jini Network Technology
communities (djinns) with support for ServiceUI.
|
org.apache.river.fiddler |
Provides the server side of an implementation of the lookup discovery service
(see
). |
Modifier and Type | Interface and Description |
---|---|
interface |
DiscoveryChangeListener
This interface must be implemented by entities that wish to receive
notification of the following events.
|
Modifier and Type | Class and Description |
---|---|
private class |
AbstractLookupDiscoveryManager.GroupDiscoveryListener
Class that defines the listener that is registered with the
LookupDiscovery that performs group discovery
on behalf of this LookupDiscoveryManager . |
(package private) class |
AbstractLookupDiscoveryManager.LocatorDiscoveryListener
Class that defines the listener that is registered with the
LookupLocatorDiscovery that performs locator discovery
on behalf of this LookupDiscoveryManager . |
Modifier and Type | Field and Description |
---|---|
private DiscoveryListener |
AbstractLookupDiscoveryManager.groupListener
The listener that receives discovered, discarded, and changed events
from the
LookupDiscovery utility that manages group
discovery on behalf of this LookupDiscoveryManager . |
private DiscoveryListener |
AbstractLookupDiscoveryManager.locatorListener
The listener that receives discovered and discarded events from the
LookupLocatorDiscovery utility that manages locator
discovery on behalf of this LookupDiscoveryManager . |
Modifier and Type | Field and Description |
---|---|
private List<DiscoveryListener> |
AbstractLookupLocatorDiscovery.listeners
Stores DiscoveryListeners
|
List<DiscoveryListener> |
AbstractLookupLocatorDiscovery.NotifyTask.listeners
The listeners to notify
|
private Set<DiscoveryListener> |
AbstractLookupDiscoveryManager.listeners
Contains the instances of
DiscoveryListener that clients
register with the LookupDiscoveryManager . |
private List<DiscoveryListener> |
AbstractLookupDiscovery.listeners
Set of listeners to be sent discovered/discarded/changed events.
|
List<DiscoveryListener> |
AbstractLookupDiscovery.NotifyTask.listeners
The set of listeners to notify
|
Modifier and Type | Method and Description |
---|---|
void |
DiscoveryManagement.addDiscoveryListener(DiscoveryListener listener)
Adds an instance of
DiscoveryListener to the set of
objects listening for discovery events. |
void |
AbstractLookupLocatorDiscovery.addDiscoveryListener(DiscoveryListener l)
Add a DiscoveryListener to the listener set.
|
void |
AbstractLookupDiscoveryManager.addDiscoveryListener(DiscoveryListener listener)
Adds an instance of
DiscoveryListener to the set of
objects listening for discovery events. |
void |
AbstractLookupDiscovery.addDiscoveryListener(DiscoveryListener l)
Register a listener as interested in receiving DiscoveryEvent
notifications.
|
private void |
AbstractLookupDiscoveryManager.notifyListener(DiscoveryListener l,
Map<ServiceRegistrar,String[]> groupsMap,
int eventType)
Notify a specific listener for a discovery event.
|
void |
DiscoveryManagement.removeDiscoveryListener(DiscoveryListener listener)
Removes a listener from the set of objects listening for discovery
events.
|
void |
AbstractLookupLocatorDiscovery.removeDiscoveryListener(DiscoveryListener l)
Remove a DiscoveryListener from the listener set.
|
void |
AbstractLookupDiscoveryManager.removeDiscoveryListener(DiscoveryListener listener)
Removes a listener from the set of objects listening for discovery
events.
|
void |
AbstractLookupDiscovery.removeDiscoveryListener(DiscoveryListener l)
Indicate that a listener is no longer interested in receiving
DiscoveryEvent notifications.
|
Modifier and Type | Method and Description |
---|---|
private void |
AbstractLookupLocatorDiscovery.addNotify(List<DiscoveryListener> notifies,
Map<ServiceRegistrar,String[]> groupsMap,
boolean discard)
Add a notification task to the pending queue, and start an instance of
the Notifier thread if one isn't already running.
|
private void |
AbstractLookupDiscovery.addNotify(List<DiscoveryListener> notifies,
Map<ServiceRegistrar,String[]> groupsMap,
int eventType)
Add a notification task to the pending queue, and wake up the Notifier.
|
Constructor and Description |
---|
AbstractLookupDiscoveryManager(DiscoveryListener listener,
LookupDiscovery lookup,
LookupLocatorDiscovery locator)
Constructs an instance of this class
|
LookupDiscoveryManager(String[] groups,
LookupLocator[] locators,
DiscoveryListener listener)
Constructs an instance of this class that will organize and manage
all discovery-related activities on behalf of the client or service
that instantiates this class.
|
LookupDiscoveryManager(String[] groups,
LookupLocator[] locators,
DiscoveryListener listener,
Configuration config)
Constructs an instance of this class, using the given
Configuration , that will organize and manage all
discovery-related activities on behalf of the client or service
that instantiates this class. |
Constructor and Description |
---|
NotifyTask(List<DiscoveryListener> listeners,
Map<ServiceRegistrar,String[]> groupsMap,
boolean discard) |
NotifyTask(List<DiscoveryListener> listeners,
Map<ServiceRegistrar,String[]> groupsMap,
int eventType) |
Modifier and Type | Class and Description |
---|---|
private class |
JoinManager.DiscMgrListener |
private class |
ServiceDiscoveryManager.DiscMgrListener |
Modifier and Type | Class and Description |
---|---|
private class |
Browser.LookupListener |
Modifier and Type | Class and Description |
---|---|
private class |
FiddlerImpl.LookupDiscoveryListener
Class whose discovered() method is invoked by threads in the
LookupDiscovery class whenever a new lookup service is discovered
on behalf of a client registration
|
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.