Package org.apache.hadoop.hbase.client
Class TestAsyncProcess.MyAsyncRequestFutureImpl<Res>
java.lang.Object
org.apache.hadoop.hbase.client.TestAsyncProcess.MyAsyncRequestFutureImpl<Res>
- All Implemented Interfaces:
org.apache.hadoop.hbase.client.AsyncRequestFuture
- Enclosing class:
- TestAsyncProcess
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
org.apache.hadoop.hbase.client.AsyncRequestFutureImpl.Retry
(package private) final class
org.apache.hadoop.hbase.client.AsyncRequestFutureImpl.SingleServerRequestRunnable
-
Field Summary
Modifier and TypeFieldDescription -
Constructor Summary
ConstructorDescriptionMyAsyncRequestFutureImpl
(org.apache.hadoop.hbase.client.AsyncProcessTask task, List<org.apache.hadoop.hbase.client.Action> actions, long nonceGroup, org.apache.hadoop.hbase.client.AsyncProcess asyncProcess) -
Method Summary
Modifier and TypeMethodDescription(package private) org.apache.hadoop.hbase.client.AsyncRequestFutureImpl<Res>.org.apache.hadoop.hbase.client.AsyncRequestFutureImpl.SingleServerRequestRunnable
createSingleServerRequest
(org.apache.hadoop.hbase.client.MultiAction multiAction, int numAttempt, org.apache.hadoop.hbase.ServerName server, Set<org.apache.hadoop.hbase.client.CancellableRegionServerCallable> callsInProgress) protected Set<org.apache.hadoop.hbase.client.CancellableRegionServerCallable>
org.apache.hadoop.hbase.client.RetriesExhaustedWithDetailsException
List<? extends org.apache.hadoop.hbase.client.Row>
(package private) long
Object[]
(package private) void
groupAndSendMultiAction
(List<org.apache.hadoop.hbase.client.Action> arg0, int arg1) boolean
hasError()
private long
heapSizeOf
(org.apache.hadoop.hbase.client.MultiAction multiAction) (package private) org.apache.hadoop.hbase.client.AsyncRequestFutureImpl.Retry
manageError
(int arg0, org.apache.hadoop.hbase.client.Row arg1, org.apache.hadoop.hbase.client.AsyncRequestFutureImpl.Retry arg2, Throwable arg3, org.apache.hadoop.hbase.ServerName arg4) (package private) void
sendMultiAction
(Map<org.apache.hadoop.hbase.ServerName, org.apache.hadoop.hbase.client.MultiAction> arg0, int arg1, List<org.apache.hadoop.hbase.client.Action> arg2, boolean arg3) protected void
updateStats
(org.apache.hadoop.hbase.ServerName server, org.apache.hadoop.hbase.client.MultiResponse resp) void
-
Field Details
-
heapSizesByServer
-
-
Constructor Details
-
MyAsyncRequestFutureImpl
public MyAsyncRequestFutureImpl(org.apache.hadoop.hbase.client.AsyncProcessTask task, List<org.apache.hadoop.hbase.client.Action> actions, long nonceGroup, org.apache.hadoop.hbase.client.AsyncProcess asyncProcess)
-
-
Method Details
-
updateStats
protected void updateStats(org.apache.hadoop.hbase.ServerName server, org.apache.hadoop.hbase.client.MultiResponse resp) -
getRequestHeapSize
Map<org.apache.hadoop.hbase.ServerName,List<Long>> getRequestHeapSize() -
createSingleServerRequest
org.apache.hadoop.hbase.client.AsyncRequestFutureImpl<Res>.org.apache.hadoop.hbase.client.AsyncRequestFutureImpl.SingleServerRequestRunnable createSingleServerRequest(org.apache.hadoop.hbase.client.MultiAction multiAction, int numAttempt, org.apache.hadoop.hbase.ServerName server, Set<org.apache.hadoop.hbase.client.CancellableRegionServerCallable> callsInProgress) -
heapSizeOf
-
getCallsInProgress
-
groupAndSendMultiAction
-
sendMultiAction
-
manageError
org.apache.hadoop.hbase.client.AsyncRequestFutureImpl.Retry manageError(int arg0, org.apache.hadoop.hbase.client.Row arg1, org.apache.hadoop.hbase.client.AsyncRequestFutureImpl.Retry arg2, Throwable arg3, org.apache.hadoop.hbase.ServerName arg4) -
waitUntilDone
- Specified by:
waitUntilDone
in interfaceorg.apache.hadoop.hbase.client.AsyncRequestFuture
- Throws:
InterruptedIOException
-
hasError
public boolean hasError()- Specified by:
hasError
in interfaceorg.apache.hadoop.hbase.client.AsyncRequestFuture
-
getFailedOperations
- Specified by:
getFailedOperations
in interfaceorg.apache.hadoop.hbase.client.AsyncRequestFuture
-
getErrors
public org.apache.hadoop.hbase.client.RetriesExhaustedWithDetailsException getErrors()- Specified by:
getErrors
in interfaceorg.apache.hadoop.hbase.client.AsyncRequestFuture
-
getResults
- Specified by:
getResults
in interfaceorg.apache.hadoop.hbase.client.AsyncRequestFuture
- Throws:
InterruptedIOException
-
getNumberOfActionsInProgress
long getNumberOfActionsInProgress()
-