|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dream.message.AbstractChunk<FragmentationChunk>
org.objectweb.dream.protocol.messagePassing.FragmentationChunk
public class FragmentationChunk
Chunk for fragmented messages.
Field Summary | |
---|---|
static String |
DEFAULT_NAME
The default name for chunks of this type |
Constructor Summary | |
---|---|
FragmentationChunk()
|
Method Summary | |
---|---|
static String |
filterChunkName(String chunkName)
If the given chunkName is equal to the default name returns
DEFAULT_NAME , otherwise returns the given string. |
int |
getFragmentationId()
Returns the fragmentation id. |
int |
getFragmentId()
Returns the id of this fragment. |
ExportIdentifier |
getFramentFrom()
Returns the identifier of the sender of the fragment. |
int |
getNumFrags()
Returns the number of fragments that make the message this fragment is part of. |
FragmentationChunk |
newChunk()
|
void |
readExternal(ObjectInput in)
|
void |
recycle()
|
void |
setFragmentationId(int id)
Sets the fragmentation id. |
void |
setFragmentId(int fragId)
Sets the fragment's id. |
void |
setFramentFrom(ExportIdentifier framentFrom)
Sets the identifier of the sender of the fragment. |
void |
setNumFrags(int numFrags)
Sets the number of fragments that make the message this fragment is part of. |
String |
toString()
|
void |
transfertStateTo(FragmentationChunk newInstance)
|
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class org.objectweb.dream.message.AbstractChunk |
---|
getReference, setReference |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_NAME
Constructor Detail |
---|
public FragmentationChunk()
Method Detail |
---|
public ExportIdentifier getFramentFrom()
public void setFramentFrom(ExportIdentifier framentFrom)
framentFrom
- the identifier of the sender of the fragment.public final int getFragmentId()
public final void setFragmentId(int fragId)
fragId
- the id to set.public final int getFragmentationId()
public final void setFragmentationId(int id)
id
- the id to set.public final int getNumFrags()
public final void setNumFrags(int numFrags)
numFrags
- the number of fragments to set.public void transfertStateTo(FragmentationChunk newInstance)
transfertStateTo
in class AbstractChunk<FragmentationChunk>
AbstractChunk.transfertStateTo(AbstractChunk)
public FragmentationChunk newChunk()
newChunk
in class AbstractChunk<FragmentationChunk>
AbstractChunk.newChunk()
public void recycle()
Recyclable.recycle()
public void writeExternal(ObjectOutput out) throws IOException
IOException
Externalizable.writeExternal(ObjectOutput)
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
Externalizable.readExternal(ObjectInput)
public String toString()
toString
in class Object
Object.toString()
public static String filterChunkName(String chunkName)
chunkName
is equal to the default name returns
DEFAULT_NAME
, otherwise returns the given string.
chunkName
- the chunk name to filter.
DEFAULT_NAME
or the given chunkName
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |