| | | | SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
|
com.newstep.solid.comm.rtt
|
|
+--com.newstep.solid.comm.rtt.FramingElement
public class FramingElement
FramingElement layer frames a message according to the protocol expected
upstream and downstream Upstream : RTT Message Downstream: Message
Implements:
ChannelStatusListener
Links:
Implementation Implementation Link
FramingElement layer frames a message according to the protocol expected
upstream and downstream Upstream : RTT Message Downstream: Message
Generalization Generalization Link
FramingElement layer frames a message according to the protocol expected
upstream and downstream Upstream : RTT Message Downstream: Message
| Nested Class Summary |
private class |
MessageState |
| Field Summary |
private static String |
|
private int |
|
private ByteBuffer |
|
private ByteBuffer |
|
private int |
|
private MessageState |
|
MessageState |
HEADER_PENDING |
MessageState |
MESSAGE_PENDING |
MessageState |
MESSAGE_READY |
MessageState |
NEW |
MessageState |
VALIDATE |
| Constructor Summary |
public void |
|
| Method Summary |
public void |
|
public void |
|
public void |
|
public void |
|
public String |
|
public void |
|
private static String className
Multiplicity:
1
Static.
private int currentLength
Multiplicity:
1
private ByteBuffer dataBuffer
Multiplicity:
1
private ByteBuffer fixedBuffer
Multiplicity:
1
private int length
Multiplicity:
1
private MessageState messageState
Multiplicity:
1
public void FramingElement ()
Stereotype:
create
public void close ()
Passes the close() downstream
Throws:
ChannelException
public void onMessage (Message message)
Frames the message according to the RTT Protocol and passes the message
upstream
Parameters:
message
Message
Custom properties
pre:
message != null
public void open ()
Throws:
ChannelException
StatusListener interface. Receives notifies of the sub channel status
Parameters:
channel
Channel
state
ChannelState
public String toString ()
public void write (Message message)
Packs the header and passes down to next layer
Parameters:
message
Message
Throws:
ChannelException
| | | | SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
|