|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ClientSessionServer
A remote interface for communicating between peer client session service implementations.
| Method Summary | |
|---|---|
byte[] |
relocatingSession(Identity identity,
byte[] sessionId,
long oldNodeId)
Notifies this server that the client session with the specified identity and sessionId is relocating to this
server's node from the old node (specified by oldNodeId). |
void |
send(byte[] sessionId,
byte[] message,
byte deliveryOrdinal)
Forwards the specified message to be sent to the session
with the specified sessionId according to the delivery
guarantee with the corresponding deliveryOrdinal (the ordinal
representing the Delivery enum). |
void |
serviceEventQueue(byte[] sessionId)
Notifies this server that it should service the event queue of the client session with the specified sessionId. |
| Method Detail |
|---|
void serviceEventQueue(byte[] sessionId)
throws IOException
sessionId.
sessionId - a session ID
IOException - if a communication problem occurs while
invoking this method
void send(byte[] sessionId,
byte[] message,
byte deliveryOrdinal)
throws IOException
message to be sent to the session
with the specified sessionId according to the delivery
guarantee with the corresponding deliveryOrdinal (the ordinal
representing the Delivery enum).
sessionId - a session IDmessage - a messagedeliveryOrdinal - a delivery guarantee (the
ordinal representing the Delivery enum)
IOException - if a communication problem occurs while
invoking this method
byte[] relocatingSession(Identity identity,
byte[] sessionId,
long oldNodeId)
throws IOException
identity and sessionId is relocating to this
server's node from the old node (specified by oldNodeId).
This method returns a relocation key to be used to re-establish
the session on this node. The returned relocation key should be
supplied to the relocatedSession method of the appropriate ProtocolListener to reestablish the client session.
identity - an identitysessionId - a session IDoldNodeId - the ID of the node the session is relocating from
IOException - if a communication problem occurs while
invoking this method
|
RedDwarf, Version 0.10.1 2010-03-14 10:56:12 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||