public interface UnicastDiscoveryServer extends DiscoveryFormatProvider
Modifier and Type | Method and Description |
---|---|
void |
checkUnicastDiscoveryConstraints(InvocationConstraints constraints)
Checks and returns normally if this server is capable of fulfilling the
given absolute constraints.
|
void |
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).
|
getFormatName
void checkUnicastDiscoveryConstraints(InvocationConstraints constraints) throws UnsupportedConstraintException
null
constraints are
considered equivalent to empty constraints.constraints
- the constraints to check, or null
UnsupportedConstraintException
- if unable to satisfy the
specified constraintsSecurityException
- if the given constraints cannot be satisfied
due to insufficient caller permissionsvoid handleUnicastDiscovery(UnicastResponse response, Socket socket, InvocationConstraints constraints, ClientSubjectChecker checker, Collection context, ByteBuffer received, ByteBuffer sent) throws IOException
null
constraints are considered equivalent to empty
constraints.response
- the unicast response data to transmitsocket
- the socket on which to handle unicast discoveryconstraints
- the constraints to apply to unicast discovery, or
null
checker
- the object to use to check the client subject, or
null
context
- the collection of context information objects to use when
marshalling the registrar proxyreceived
- a buffer containing the data already receivedsent
- a buffer containing the data already sentIOException
- if an error occurs in interpreting received data or
in formatting data to sendUnsupportedConstraintException
- if unable to satisfy the
specified constraintsSecurityException
- if the given constraints cannot be satisfied
due to insufficient caller permissions, or if the client subject check
failsNullPointerException
- if response
,
socket
, context
, received
, or
sent
is null
Copyright © GigaSpaces.