public class StorageEvent extends java.lang.Object implements Event
StorageNode
to store sequence segments within the storage blocks.ByteSerializable.Deserialize
Constructor and Description |
---|
StorageEvent(Block block)
Constructs a StorageEvent to store the given Block.
|
StorageEvent(SerializationInputStream in) |
Modifier and Type | Method and Description |
---|---|
Block |
getBlock()
Returns the block to be stored.
|
void |
serialize(SerializationOutputStream out)
Serializes this object to binary form by passing it through a
serialization stream.
|
public StorageEvent(Block block)
block
- the block to be stored.@ByteSerializable.Deserialize public StorageEvent(SerializationInputStream in) throws java.io.IOException, SerializationException
java.io.IOException
SerializationException
public Block getBlock()
public void serialize(SerializationOutputStream out) throws java.io.IOException
ByteSerializable
serialize
in interface ByteSerializable
out
- stream to serialize to.java.io.IOException