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.discovery.internal | |
com.sun.jini.reggie |
Provides implementations of
ServiceRegistrar . |
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.
|
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
|
Modifier and Type | Method and Description |
---|---|
private Discovery |
RegistrarImpl.getDiscovery(int version)
Returns Discovery instance implementing the given protocol version
|
Constructor and Description |
---|
RegistrarImpl.DecodeRequestTask(DatagramPacket datagram,
Discovery decoder) |
Modifier and Type | Field and Description |
---|---|
private Discovery |
LookupLocatorDiscovery.protocol2 |
private Discovery |
LookupDiscovery.protocol2 |
Modifier and Type | Method and Description |
---|---|
private Discovery |
LookupDiscovery.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 |
LookupDiscovery.doUnicastDiscovery(Socket socket,
DiscoveryConstraints unicastDiscoveryConstraints,
Discovery disco)
Performs unicast discovery over given socket based on protocol in use,
applying configured security constraints (if any).
|
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.