All Packages Class Hierarchy This Package Previous Next Index
Class JavaGroups.JavaStack.Protocols.FRAG
java.lang.Object
|
+----JavaGroups.JavaStack.Protocol
|
+----JavaGroups.JavaStack.Protocols.FRAG
- public class FRAG
- extends Protocol
Fragmentation layer. Fragments messages larger than FRAG_SIZE into smaller packets.
Reassembles fragmented packets into bigger ones. The fragmentation number is prepended
to the messages as a header (and removed at the receiving side).
Requirement: lossless delivery (e.g. NAK, ACK). No requirement on ordering.
Typical stack:
FIFO
FRAG
NAK
UDP
-
FRAG()
-
-
Down(Event)
- Fragment a packet if larger than FRAG_SIZE
-
GetName()
-
-
Reset()
- Just remove if you don't need to reset any state
-
SetProperties(Properties)
- Setup the Protocol instance acording to the configuration string
-
Up(Event)
- 1.
FRAG
public FRAG()
GetName
public String GetName()
- Overrides:
- GetName in class Protocol
SetProperties
public boolean SetProperties(Properties props)
- Setup the Protocol instance acording to the configuration string
- Overrides:
- SetProperties in class Protocol
Reset
public void Reset()
- Just remove if you don't need to reset any state
- Overrides:
- Reset in class Protocol
Up
public void Up(Event evt)
- 1. Remove header
- Overrides:
- Up in class Protocol
Down
public void Down(Event evt)
- Fragment a packet if larger than FRAG_SIZE
- Overrides:
- Down in class Protocol
All Packages Class Hierarchy This Package Previous Next Index