voldemort.store.socket.clientrequest
Class GetVersionsClientRequest

java.lang.Object
  extended by voldemort.store.socket.clientrequest.AbstractClientRequest<T>
      extended by voldemort.store.socket.clientrequest.AbstractStoreClientRequest<java.util.List<Version>>
          extended by voldemort.store.socket.clientrequest.GetVersionsClientRequest
All Implemented Interfaces:
ClientRequest<java.util.List<Version>>

public class GetVersionsClientRequest
extends AbstractStoreClientRequest<java.util.List<Version>>


Field Summary
 
Fields inherited from class voldemort.store.socket.clientrequest.AbstractStoreClientRequest
requestFormat, requestRoutingType, storeName
 
Constructor Summary
GetVersionsClientRequest(java.lang.String storeName, RequestFormat requestFormat, RequestRoutingType requestRoutingType, ByteArray key)
           
 
Method Summary
protected  void formatRequestInternal(java.io.DataOutputStream outputStream)
           
 boolean isCompleteResponse(java.nio.ByteBuffer buffer)
          isCompleteResponse determines if the response that the ClientRequestExecutor's received thus far is inclusive of the entire response.
protected  java.util.List<Version> parseResponseInternal(java.io.DataInputStream inputStream)
           
 
Methods inherited from class voldemort.store.socket.clientrequest.AbstractClientRequest
complete, formatRequest, getResult, isComplete, isTimedOut, parseResponse, timeOut
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetVersionsClientRequest

public GetVersionsClientRequest(java.lang.String storeName,
                                RequestFormat requestFormat,
                                RequestRoutingType requestRoutingType,
                                ByteArray key)
Method Detail

isCompleteResponse

public boolean isCompleteResponse(java.nio.ByteBuffer buffer)
Description copied from interface: ClientRequest
isCompleteResponse determines if the response that the ClientRequestExecutor's received thus far is inclusive of the entire response. This relies on the RequestFormat instance's isCompleteXxxResponse methods.

This is used internally by the ClientRequest logic and should not be invoked by users of the sub-system.

Parameters:
buffer - ByteBuffer containing the data received thus far
Returns:
True if the buffer contains the complete response, false if it only includes part of the response.

formatRequestInternal

protected void formatRequestInternal(java.io.DataOutputStream outputStream)
                              throws java.io.IOException
Specified by:
formatRequestInternal in class AbstractClientRequest<java.util.List<Version>>
Throws:
java.io.IOException

parseResponseInternal

protected java.util.List<Version> parseResponseInternal(java.io.DataInputStream inputStream)
                                                 throws java.io.IOException
Specified by:
parseResponseInternal in class AbstractClientRequest<java.util.List<Version>>
Throws:
java.io.IOException


Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu