Package | Description |
---|---|
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 |
---|---|
abstract UnicastResponse |
Discovery.doUnicastDiscovery(Socket socket,
InvocationConstraints constraints,
ClassLoader defaultLoader,
ClassLoader verifierLoader,
Collection context)
Performs the client side of unicast discovery, obtaining the returned
response data over the provided socket using the given default and
codebase verifier class loaders and collection of object stream context
objects in a manner that satisfies the specified constraints.
|
UnicastResponse |
UnicastDiscoveryClient.doUnicastDiscovery(Socket socket,
InvocationConstraints constraints,
ClassLoader defaultLoader,
ClassLoader verifierLoader,
Collection context,
ByteBuffer sent,
ByteBuffer received)
Performs the client side of unicast discovery, obtaining the returned
response data over the provided socket using the given default and
codebase verifier class loaders and collection of object stream context
objects in a manner that satisfies the specified absolute constraints.
|
UnicastResponse |
MultiIPDiscovery.getResponse(String scheme,
String host,
int port,
InvocationConstraints constraints) |
protected abstract UnicastResponse |
MultiIPDiscovery.performDiscovery(Discovery disco,
DiscoveryConstraints dc,
Socket s) |
static UnicastResponse |
Plaintext.readUnicastResponse(InputStream in,
ClassLoader defaultLoader,
boolean verifyCodebaseIntegrity,
ClassLoader verifierLoader,
Collection context)
Reads unicast response according to the net.jini.discovery.plaintext
format.
|
static UnicastResponse |
Plaintext.readV2UnicastResponse(InputStream in,
ClassLoader defaultLoader,
boolean verifyCodebaseIntegrity,
ClassLoader verifierLoader,
Collection context)
Reads unicast response similar to the net.jini.discovery.plaintext
format, but with the exception of not using a MarshalledInstance of
the Proxy, but an AtomicMarshalInputStream to directly receive it instead.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
Discovery.handleUnicastDiscovery(UnicastResponse response,
Socket socket,
InvocationConstraints constraints,
ClientSubjectChecker checker,
Collection context)
Handles the server side of unicast discovery, transmitting the given
response data over the provided socket using the given collection of
object stream context objects in a manner that satisfies the specified
constraints and client subject checker (if any).
|
void |
UnicastDiscoveryServer.handleUnicastDiscovery(UnicastResponse response,
Socket socket,
InvocationConstraints constraints,
ClientSubjectChecker checker,
Collection context,
ByteBuffer received,
ByteBuffer sent)
Handles the server side of unicast discovery, transmitting the given
response data over the provided socket using the given collection of
object stream context objects in a manner that satisfies the specified
absolute constraints and client subject checker (if any).
|
static void |
Plaintext.writeUnicastResponse(OutputStream out,
UnicastResponse response,
Collection context)
Writes unicast response according to the net.jini.discovery.plaintext
format.
|
static void |
Plaintext.writeV2UnicastResponse(OutputStream out,
UnicastResponse response,
Collection context)
Writes unicast response according to the net.jini.discovery.plaintext
format, with the exception that the registrar proxy is written using
AtomicMarshalOutputStream, compatible with MarshalOutputStream
format (codebase annotations are written to the stream).
|
Copyright © 2016–2018 The Apache Software Foundation. All rights reserved.