Package | Description |
---|---|
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.
|
org.apache.river.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.
|
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.
|
protected ServiceRegistrar |
LookupLocator.getRegistrar(InvocationConstraints constraints)
Perform unicast discovery and return the ServiceRegistrar
object for the given lookup service, with the given constraints.
|
Modifier and Type | Field and Description |
---|---|
protected ServiceRegistrar |
IncomingUnicastResponse.registrar
The registrar we have discovered.
|
protected ServiceRegistrar[] |
RemoteDiscoveryEvent.regs
Array containing a subset of the set of proxies to the lookup
service(s) with which this event is associated.
|
Modifier and Type | Method and Description |
---|---|
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. |
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[] |
LookupDiscoveryRegistration.getRegistrars()
Returns an array consisting of instances of the ServiceRegistrar
interface.
|
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 |
---|---|
Map<ServiceRegistrar,String[]> |
DiscoveryEvent.getGroups()
Returns a set that maps to each registrar referenced by this event,
the current set of groups in which each registrar is a member.
|
Modifier and Type | Method and Description |
---|---|
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 |
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. |
static void |
OutgoingUnicastResponse.marshal(OutputStream str,
ServiceRegistrar reg,
String[] groups)
Marshal a unicast response to the given output stream.
|
Constructor and Description |
---|
DiscoveryEvent(Object source,
ServiceRegistrar[] regs)
Construct a new
DiscoveryEvent object, with the given
source and set of registrars. |
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 . |
Constructor and Description |
---|
DiscoveryEvent(Object source,
Map<ServiceRegistrar,String[]> groups)
Construct a new
DiscoveryEvent object, with the given
source and registrars-to-groups mapping. |
RemoteDiscoveryEvent(Object source,
long eventID,
long seqNum,
MarshalledObject handback,
boolean discarded,
Map<ServiceRegistrar,String> groups)
Constructs a new instance of
RemoteDiscoveryEvent . |
Modifier and Type | Method and Description |
---|---|
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 |
---|---|
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. |
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.