|
GigaSpaces XAP 10.0.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UnicastDiscoveryServer
Interface implemented by classes which handle the server (lookup service) side of unicast discovery.
Method Summary | |
---|---|
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). |
Methods inherited from interface com.sun.jini.discovery.DiscoveryFormatProvider |
---|
getFormatName |
Method Detail |
---|
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 constraints
SecurityException
- 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 sent
IOException
- if an error occurs in interpreting received data or
in formatting data to send
UnsupportedConstraintException
- if unable to satisfy the
specified constraints
SecurityException
- if the given constraints cannot be satisfied
due to insufficient caller permissions, or if the client subject check
fails
NullPointerException
- if response
,
socket
, context
, received
, or
sent
is null
|
GigaSpaces XAP 10.0.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |