|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dream.protocol.messagePassing.SerializatorMessagePassingProtocolImpl.Session
protected class SerializatorMessagePassingProtocolImpl.Session
Constructor Summary | |
---|---|
protected |
SerializatorMessagePassingProtocolImpl.Session(IncomingPush upperIncomingPush)
|
Method Summary | |
---|---|
ExportIdentifier |
getLocalExportIdentifier()
Returns the ExportIdentifier identifying the local access point. |
void |
incomingClosed(Object outgoingPush,
Exception exception)
Notifies the session, this interface belong, that the lower session accessible through the given interface has been unexpectedly closed. |
void |
incomingPush(Message byteMessage)
Gives an incoming message to a protocol. |
protected void |
initialize(MessagePassingOutgoingPush lowerPush)
|
void |
outgoingClose(IncomingPush incomingPush)
Closes the access point. |
void |
outgoingPush(Message message,
ExportIdentifier to)
Sends the given message to the access point identified by to . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected SerializatorMessagePassingProtocolImpl.Session(IncomingPush upperIncomingPush)
Method Detail |
---|
protected void initialize(MessagePassingOutgoingPush lowerPush)
public ExportIdentifier getLocalExportIdentifier()
MessagePassingOutgoingPush
ExportIdentifier
identifying the local access point.
outgoingPush
method with the export identifier
returned by this method, will be received by the local access point and
will be passed to the IncomingPush
interface given at the creation
of the access point (see
MessagePassingProtocol.export(IncomingPush, java.util.Map)
). null
if the IncomingPush
interface given
at the creation of the access point was null
(depending on
protocol implementation).
getLocalExportIdentifier
in interface MessagePassingOutgoingPush
MessagePassingOutgoingPush.getLocalExportIdentifier()
public void outgoingPush(Message message, ExportIdentifier to) throws InvalidExportIdentifierException, IOPushException
MessagePassingOutgoingPush
to
.
outgoingPush
in interface MessagePassingOutgoingPush
message
- the message to send.to
- the identifier of the access point that should received the
message.
InvalidExportIdentifierException
- if the destination is invalid.
IOPushException
- if something goes wrong.public void outgoingClose(IncomingPush incomingPush) throws IOException
MessagePassingOutgoingPush
IncomingPush.incomingClosed(java.lang.Object, java.lang.Exception)
method, since this latter is only
used to inform a upper session that a lower session has been closed
unexpectedly.
outgoingClose
in interface MessagePassingOutgoingPush
incomingPush
- the interface on which incoming messages of the closed
access point were received.
IOException
- the closing process failed.public void incomingPush(Message byteMessage) throws PushException
IncomingPush
incomingPush
in interface IncomingPush
byteMessage
- the message to give to the component.
PushException
- if an exception occurs.IncomingPush.incomingPush(Message)
public void incomingClosed(Object outgoingPush, Exception exception)
IncomingPush
incomingClosed
in interface IncomingPush
outgoingPush
- the interface provided by the closed session.exception
- the exception that forced the session to close. May be
null
.IncomingPush.incomingClosed(Object, Exception)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |