ostore.inner
Class TimedHeartbeatRespMsg

java.lang.Object
  |
  +--ostore.inner.TimedHeartbeatRespMsg
All Implemented Interfaces:
QueueElementIF, QuickSerializable

public class TimedHeartbeatRespMsg
extends Object
implements QueueElementIF, QuickSerializable

The response to a timed hearbeat request. Now sent down the dissemination tree, so no longer a TapestryRouteMsg.


Field Summary
 SecureHash aguid
          The AGUID of the requested heartbeat.
 SignedQS signed_hb
          This could be any one of a number of things.
 
Constructor Summary
TimedHeartbeatRespMsg(InputBuffer buffer)
           
TimedHeartbeatRespMsg(SecureHash aguid, SignedQS signed_hb)
           
 
Method Summary
 Heartbeat hb()
          Extracts the Heartbeat object from the signed_hb member and returns it.
 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

signed_hb

public SignedQS signed_hb
This could be any one of a number of things. It could be a simple signed Heartbeat, or it could be an UpdateResp, or it could be a LatestHeartbeatResp. Generally, the inner ring will just send whatever certificate it has with the latest timestamp available. Thus the function hb(), below, can be used to extract the actual Heartbeat object from this SignedQS. Note, however, that in order to ensure this is a valid Heartbeat, the signature in the SignedQS should still be verified. See the comments in Heartbeat for information about why this is so screwy.

See Also:
hb()

aguid

public SecureHash aguid
The AGUID of the requested heartbeat. This field is necessary, since the latest HB the PR may have for a given data object could be an UpdateResp which is a certificate of the currency of several AGUID to VHASH mappings. Thus we provide the AGUID given in the request in order to help pair each response with its corresponding request.

Constructor Detail

TimedHeartbeatRespMsg

public TimedHeartbeatRespMsg(SecureHash aguid,
                             SignedQS signed_hb)

TimedHeartbeatRespMsg

public TimedHeartbeatRespMsg(InputBuffer buffer)
                      throws QSException
Method Detail

hb

public Heartbeat hb()
Extracts the Heartbeat object from the signed_hb member and returns it.

Returns:
the Heartbeat object from the signed_hb member
See Also:
signed_hb

serialize

public void serialize(OutputBuffer buffer)
Description copied from interface: QuickSerializable
Add the object to the buffer.

Specified by:
serialize in interface QuickSerializable
Parameters:
buffer - the output buffer to add the object to