ostore.inner
Class BlockReadRespMsg
java.lang.Object
|
+--dd.api.DDRouteMsg
|
+--ostore.inner.BlockReadRespMsg
- All Implemented Interfaces:
- QueueElementIF, QuickSerializable
- public class BlockReadRespMsg
- extends DDRouteMsg
The response to a block read request. We don't need to MAC this
message, since all the important information is verified by the fact
that the name of the block is its hash (speaking loosely).
Field Summary |
Cacheable |
block
The returned block. |
SecureHash |
block_name
The name of the block; either its VHASH or BGUID. |
boolean |
vhash
Whether block_name represents a VHASH
(true ) or a BGUID (false ). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
block_name
public SecureHash block_name
- The name of the block; either its VHASH or BGUID.
vhash
public boolean vhash
- Whether
block_name
represents a VHASH
(true
) or a BGUID (false
).
block
public Cacheable block
- The returned block.
BlockReadRespMsg
public BlockReadRespMsg(SecureHash client_guid,
SecureHash block_name,
boolean vhash,
Cacheable block,
boolean recursive,
boolean dd_intermediate_upcall,
boolean one_hop)
BlockReadRespMsg
public BlockReadRespMsg(InputBuffer buffer)
throws QSException
serialize
public void serialize(OutputBuffer buffer)
- Description copied from interface:
QuickSerializable
- Add the object to the
buffer
.
- Specified by:
serialize
in interface QuickSerializable
- Overrides:
serialize
in class DDRouteMsg
- Parameters:
buffer
- the output buffer to add the object to