voldemort.server.protocol.admin
Class FetchStreamRequestHandler
java.lang.Object
voldemort.server.protocol.admin.FetchStreamRequestHandler
- All Implemented Interfaces:
- StreamRequestHandler
- Direct Known Subclasses:
- FetchEntriesStreamRequestHandler, FetchKeysStreamRequestHandler, FetchPartitionEntriesStreamRequestHandler, FetchPartitionKeysStreamRequestHandler
public abstract class FetchStreamRequestHandler
- extends java.lang.Object
- implements StreamRequestHandler
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
request
protected final VAdminProto.FetchPartitionEntriesRequest request
errorCodeMapper
protected final ErrorCodeMapper errorCodeMapper
initialCluster
protected final Cluster initialCluster
throttler
protected final EventThrottler throttler
replicaToPartitionList
protected java.util.HashMap<java.lang.Integer,java.util.List<java.lang.Integer>> replicaToPartitionList
filter
protected final VoldemortFilter filter
storageEngine
protected final StorageEngine<ByteArray,byte[],byte[]> storageEngine
streamStats
protected final StreamingStats streamStats
isJmxEnabled
protected boolean isJmxEnabled
operation
protected final StreamingStats.Operation operation
counter
protected long counter
skipRecords
protected long skipRecords
fetched
protected int fetched
startTime
protected final long startTime
logger
protected final org.apache.log4j.Logger logger
nodeId
protected int nodeId
storeDef
protected StoreDefinition storeDef
fetchOrphaned
protected boolean fetchOrphaned
FetchStreamRequestHandler
protected FetchStreamRequestHandler(VAdminProto.FetchPartitionEntriesRequest request,
MetadataStore metadataStore,
ErrorCodeMapper errorCodeMapper,
VoldemortConfig voldemortConfig,
StoreRepository storeRepository,
NetworkClassLoader networkClassLoader,
StreamingStats.Operation operation)
getDirection
public final StreamRequestHandler.StreamRequestDirection getDirection()
- Specified by:
getDirection in interface StreamRequestHandler
close
public void close(java.io.DataOutputStream outputStream)
throws java.io.IOException
- Specified by:
close in interface StreamRequestHandler
- Throws:
java.io.IOException
handleError
public final void handleError(java.io.DataOutputStream outputStream,
VoldemortException e)
throws java.io.IOException
- Specified by:
handleError in interface StreamRequestHandler
- Throws:
java.io.IOException
Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu