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


Constructor Index

 o FRAG()

Method Index

 o Down(Event)
Fragment a packet if larger than FRAG_SIZE
 o GetName()
 o Reset()
Just remove if you don't need to reset any state
 o SetProperties(Properties)
Setup the Protocol instance acording to the configuration string
 o Up(Event)
1.

Constructors

 o FRAG
 public FRAG()

Methods

 o GetName
 public String GetName()
Overrides:
GetName in class Protocol
 o SetProperties
 public boolean SetProperties(Properties props)
Setup the Protocol instance acording to the configuration string

Overrides:
SetProperties in class Protocol
 o Reset
 public void Reset()
Just remove if you don't need to reset any state

Overrides:
Reset in class Protocol
 o Up
 public void Up(Event evt)
1. Remove header

Overrides:
Up in class Protocol
 o 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