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.
|
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.
|
org.apache.river.discovery.internal | |
org.apache.river.reggie |
Provides implementations of
ServiceRegistrar . |
Modifier and Type | Field and Description |
---|---|
private Discovery |
AbstractLookupLocatorDiscovery.protocol2 |
private Discovery |
AbstractLookupDiscovery.protocol2 |
Modifier and Type | Method and Description |
---|---|
private Discovery |
AbstractLookupDiscovery.getDiscovery(int version)
Returns Discovery instance for the given version, or throws
DiscoveryProtocolException if the version is unsupported.
|
Modifier and Type | Method and Description |
---|---|
private UnicastResponse |
AbstractLookupDiscovery.doUnicastDiscovery(Socket socket,
DiscoveryConstraints unicastDiscoveryConstraints,
Discovery disco)
Performs unicast discovery over given socket based on protocol in use,
applying configured security constraints (if any).
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
DiscoveryV1
Class providing methods for implementing discovery protocol version 1.
|
(package private) class |
DiscoveryV2
Class providing methods for implementing discovery protocol version 2.
|
Modifier and Type | Method and Description |
---|---|
static Discovery |
Discovery.getProtocol1()
Returns an instance implementing protocol version 1.
|
static Discovery |
Discovery.getProtocol2(ClassLoader loader)
Returns an instance implementing protocol version 2 which uses providers
loaded from the given class loader, or the current context class loader
if the given loader is
null . |
static Discovery |
Discovery.getProtocol2(MulticastRequestEncoder[] mre,
MulticastRequestDecoder[] mrd,
MulticastAnnouncementEncoder[] mae,
MulticastAnnouncementDecoder[] mad,
UnicastDiscoveryClient[] udc,
UnicastDiscoveryServer[] uds)
Returns an instance implementing protocol version 2 which uses the given
providers.
|
Modifier and Type | Method and Description |
---|---|
private UnicastResponse |
MultiIPDiscovery.getSingleResponse(String host,
long connectionTimeout,
int port,
DiscoveryConstraints dc,
Discovery disco) |
protected abstract UnicastResponse |
MultiIPDiscovery.performDiscovery(Discovery disco,
DiscoveryConstraints dc,
Socket s) |
Modifier and Type | Field and Description |
---|---|
private Discovery |
RegistrarImpl.DecodeRequestTask.decoder
The decoder for parsing the packet
|
private Discovery |
RegistrarImpl.protocol2
Utility for participating in version 2 of discovery protocols
|
(package private) Discovery |
RegistrarImpl.Initializer.protocol2 |
Modifier and Type | Method and Description |
---|---|
private Discovery |
RegistrarImpl.getDiscovery(int version)
Returns Discovery instance implementing the given protocol version
|
Constructor and Description |
---|
DecodeRequestTask(DatagramPacket datagram,
Discovery decoder,
RegistrarImpl reggie,
Set<RegistrarImpl.AddressTask> runningTasks) |
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.