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).
 
Fields inherited from class dd.api.DDRouteMsg
dd_intermediate_upcall, hopCount, inbound, one_hop, peer, recursive_route, TTL
 
Constructor Summary
BlockReadRespMsg(InputBuffer buffer)
           
BlockReadRespMsg(SecureHash client_guid, SecureHash block_name, boolean vhash, Cacheable block, boolean recursive, boolean dd_intermediate_upcall, boolean one_hop)
           
 
Method Summary
 void serialize(OutputBuffer buffer)
          Add the object to the buffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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.

Constructor Detail

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
Method Detail

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