|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dream.message.AbstractChunk<LogicalClockChunk>
org.objectweb.dream.protocol.bus.logicalClock.LogicalClockChunk
public final class LogicalClockChunk
Chunk added by used by Logical clock protocol.
Field Summary | |
---|---|
static String |
DEFAULT_NAME
The default name for chunks of this type |
Constructor Summary | |
---|---|
LogicalClockChunk()
|
Method Summary | |
---|---|
static String |
filterChunkName(String chunkName)
If the given chunkName is equals to the default name returns
DEFAULT_NAME , returns the given string otherwise. |
int |
getFrom()
Returns the address of the process that emit this chunk. |
Object |
getLogicalClock()
Returns the logical clock of this chunk |
LogicalClockChunk |
newChunk()
|
void |
readExternal(ObjectInput in)
|
void |
recycle()
|
void |
setFrom(int from)
Sets the address of the process that emit this chunk. |
void |
setLogicalClock(Object stamp)
Sets the logical clock of this chunk |
void |
transfertStateTo(LogicalClockChunk 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, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_NAME
Constructor Detail |
---|
public LogicalClockChunk()
Method Detail |
---|
public static String filterChunkName(String chunkName)
chunkName
is equals to the default name returns
DEFAULT_NAME
, returns the given string otherwise.
chunkName
- the chunk name to filter.
DEFAULT_NAME
or the given chunkName
.public Object getLogicalClock()
public void setLogicalClock(Object stamp)
stamp
- the stamppublic int getFrom()
public void setFrom(int from)
from
- the address of the process that emit this chunk.public void transfertStateTo(LogicalClockChunk newInstance)
transfertStateTo
in class AbstractChunk<LogicalClockChunk>
AbstractChunk.transfertStateTo(AbstractChunk)
public LogicalClockChunk newChunk()
newChunk
in class AbstractChunk<LogicalClockChunk>
AbstractChunk.newChunk()
public void recycle()
Recyclable.recycle()
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
Externalizable.readExternal(ObjectInput)
public void writeExternal(ObjectOutput out) throws IOException
IOException
Externalizable.writeExternal(ObjectOutput)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |