|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SessionIdentifier
A session identifier represents an exported session. In other words, it is a
name, managed by a specific
naming context of type
Protocol, and representing a session.
The internal structure of a session identifier is protocol specific: each protocol may define its own SessionIdentifier type so that it can contain protocol specific information: host name, port...
Session identifiers are created when "server" objects are exported, and
can typically be encoded in
identifiers. On the
"client" side, they can be decoded and used to establish communication channels.
Protocol| Method Summary | |
|---|---|
Session_High |
bind(Session_Low hls)
Returns a local session representing the session designated by the provided lower session interface. |
Context |
getInfo()
Yield info about this session, as a Context. |
Protocol |
getProtocol()
Returns the protocol that created this session identifier. |
int |
getProtocolId()
What kind of protocol does this session identifier relate to? |
boolean |
isLocal()
Return true if the target identifier corresponds to a local connection. |
SessionIdentifier[] |
next()
Return the session identifiers corresponding to the lower level protocol layers, if any. |
void |
unexport()
Unexporting a session identifier means that the target session identifier no longer designates the session it was created for. |
| Method Detail |
|---|
Protocol getProtocol()
void unexport()
Session_High bind(Session_Low hls)
throws BindException,
JonathanException
This operation is used by a protocol to establish a communication channel to the session specified by the target session identifier. The provided lower session interface is used to receive messages using the opened channel.
hls - a session to receive messages on the opened communication channel;
BindException - if the bind process fails.
JonathanException - if something else goes wrong.org.objectweb.jonathan.model.binder#bind(org.objectweb.jonathan.model.name)
SessionIdentifier[] next()
throws JonathanException
JonathanException - if something goes wrong.int getProtocolId()
Context getInfo()
throws JonathanException
JonathanException - if something goes wrong.boolean isLocal()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||