|
|||||||||
| Home >> All >> org >> jgroups >> [ protocols overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.jgroups.protocols
Class FRAG2.FragmentationList

java.lang.Objectorg.jgroups.protocols.FRAG2.FragmentationList
- Enclosing class:
- FRAG2
- static class FRAG2.FragmentationList
- extends java.lang.Object
A fragmentation list keeps a list of fragmentation tables sorted by an Address ( the sender ). This way, if the sender disappears or leaves the group half way sending the content, we can simply remove this members fragmentation table and clean up the memory of the receiver. We do not have to do the same for the sender, since the sender doesn't keep a fragmentation table
| Field Summary | |
private java.util.HashMap |
frag_tables
|
| Constructor Summary | |
(package private) |
FRAG2.FragmentationList()
|
| Method Summary | |
void |
add(org.jgroups.Address sender,
FRAG2.FragmentationTable table)
Adds a fragmentation table for this particular sender If this sender already has a fragmentation table, an IllegalArgumentException will be thrown. |
boolean |
containsSender(org.jgroups.Address sender)
returns true if this sender already holds a fragmentation for this sender, false otherwise |
FRAG2.FragmentationTable |
get(org.jgroups.Address sender)
returns a fragmentation table for this sender returns null if the sender doesn't have a fragmentation table |
org.jgroups.Address[] |
getSenders()
returns a list of all the senders that have fragmentation tables opened. |
boolean |
remove(org.jgroups.Address sender)
removes the fragmentation table from the list. |
java.lang.String |
toString()
Convert this Object to a human-readable String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
frag_tables
private final java.util.HashMap frag_tables
| Constructor Detail |
FRAG2.FragmentationList
FRAG2.FragmentationList()
| Method Detail |
add
public void add(org.jgroups.Address sender, FRAG2.FragmentationTable table) throws java.lang.IllegalArgumentException
- Adds a fragmentation table for this particular sender
If this sender already has a fragmentation table, an IllegalArgumentException
will be thrown.
get
public FRAG2.FragmentationTable get(org.jgroups.Address sender)
- returns a fragmentation table for this sender
returns null if the sender doesn't have a fragmentation table
containsSender
public boolean containsSender(org.jgroups.Address sender)
- returns true if this sender already holds a
fragmentation for this sender, false otherwise
remove
public boolean remove(org.jgroups.Address sender)
- removes the fragmentation table from the list.
after this operation, the fragementation list will no longer
hold a reference to this sender's fragmentation table
getSenders
public org.jgroups.Address[] getSenders()
- returns a list of all the senders that have fragmentation tables
opened.
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object - Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string concatenation with this object. If the result is
null, string concatenation will instead use"null".The default implementation returns
getClass().getName() + "@" + Integer.toHexString(hashCode()).
|
|||||||||
| Home >> All >> org >> jgroups >> [ protocols overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.jgroups.protocols.FRAG2.FragmentationList