public class VcrRequests
extends com.github.ambry.protocol.AmbryRequests
Constructor and Description |
---|
VcrRequests(com.github.ambry.server.StoreManager storeManager,
com.github.ambry.network.RequestResponseChannel requestResponseChannel,
com.github.ambry.clustermap.ClusterMap clusterMap,
com.github.ambry.clustermap.DataNodeId currentNode,
com.codahale.metrics.MetricRegistry registry,
com.github.ambry.commons.ServerMetrics serverMetrics,
com.github.ambry.replication.FindTokenHelper findTokenHelper,
com.github.ambry.notification.NotificationSystem notification,
com.github.ambry.replication.ReplicationEngine replicationEngine,
com.github.ambry.store.StoreKeyFactory storageKeyFactory,
boolean enableDataPrefetch,
com.github.ambry.store.StoreKeyConverterFactory storeKeyConverterFactory) |
Modifier and Type | Method and Description |
---|---|
protected long |
getRemoteReplicaLag(com.github.ambry.store.Store store,
long totalBytesRead) |
void |
handleDeleteRequest(com.github.ambry.network.NetworkRequest request) |
void |
handlePutRequest(com.github.ambry.network.NetworkRequest request) |
void |
handleTtlUpdateRequest(com.github.ambry.network.NetworkRequest request) |
protected com.github.ambry.server.ServerErrorCode |
validateRequest(com.github.ambry.clustermap.PartitionId partition,
com.github.ambry.protocol.RequestOrResponseType requestType,
boolean skipPartitionAvailableCheck) |
getConvertedStoreKeys, handleGetRequest, handleReplicaMetadataRequest, handleRequests
public VcrRequests(com.github.ambry.server.StoreManager storeManager, com.github.ambry.network.RequestResponseChannel requestResponseChannel, com.github.ambry.clustermap.ClusterMap clusterMap, com.github.ambry.clustermap.DataNodeId currentNode, com.codahale.metrics.MetricRegistry registry, com.github.ambry.commons.ServerMetrics serverMetrics, com.github.ambry.replication.FindTokenHelper findTokenHelper, com.github.ambry.notification.NotificationSystem notification, com.github.ambry.replication.ReplicationEngine replicationEngine, com.github.ambry.store.StoreKeyFactory storageKeyFactory, boolean enableDataPrefetch, com.github.ambry.store.StoreKeyConverterFactory storeKeyConverterFactory)
public void handlePutRequest(com.github.ambry.network.NetworkRequest request) throws java.io.IOException, java.lang.InterruptedException
handlePutRequest
in interface com.github.ambry.protocol.RequestAPI
handlePutRequest
in class com.github.ambry.protocol.AmbryRequests
java.io.IOException
java.lang.InterruptedException
public void handleDeleteRequest(com.github.ambry.network.NetworkRequest request) throws java.io.IOException, java.lang.InterruptedException
handleDeleteRequest
in interface com.github.ambry.protocol.RequestAPI
handleDeleteRequest
in class com.github.ambry.protocol.AmbryRequests
java.io.IOException
java.lang.InterruptedException
public void handleTtlUpdateRequest(com.github.ambry.network.NetworkRequest request) throws java.io.IOException, java.lang.InterruptedException
handleTtlUpdateRequest
in interface com.github.ambry.protocol.RequestAPI
handleTtlUpdateRequest
in class com.github.ambry.protocol.AmbryRequests
java.io.IOException
java.lang.InterruptedException
protected com.github.ambry.server.ServerErrorCode validateRequest(com.github.ambry.clustermap.PartitionId partition, com.github.ambry.protocol.RequestOrResponseType requestType, boolean skipPartitionAvailableCheck)
validateRequest
in class com.github.ambry.protocol.AmbryRequests
protected long getRemoteReplicaLag(com.github.ambry.store.Store store, long totalBytesRead)
getRemoteReplicaLag
in class com.github.ambry.protocol.AmbryRequests