static class TestAsyncProcess.MyAsyncRequestFutureImpl<Res> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
org.apache.hadoop.hbase.client.AsyncRequestFutureImpl.Retry |
(package private) class |
org.apache.hadoop.hbase.client.AsyncRequestFutureImpl.SingleServerRequestRunnable |
Modifier and Type | Field and Description |
---|---|
private Map<org.apache.hadoop.hbase.ServerName,List<Long>> |
heapSizesByServer |
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
(package private) 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> |
getCallsInProgress() |
org.apache.hadoop.hbase.client.RetriesExhaustedWithDetailsException |
getErrors() |
List<? extends org.apache.hadoop.hbase.client.Row> |
getFailedOperations() |
(package private) long |
getNumberOfActionsInProgress() |
(package private) Map<org.apache.hadoop.hbase.ServerName,List<Long>> |
getRequestHeapSize() |
Object[] |
getResults() |
(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,
Map<byte[],org.apache.hadoop.hbase.client.MultiResponse.RegionResult> results) |
void |
waitUntilDone() |
private final Map<org.apache.hadoop.hbase.ServerName,List<Long>> heapSizesByServer
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)
protected void updateStats(org.apache.hadoop.hbase.ServerName server, Map<byte[],org.apache.hadoop.hbase.client.MultiResponse.RegionResult> results)
Map<org.apache.hadoop.hbase.ServerName,List<Long>> getRequestHeapSize()
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)
private long heapSizeOf(org.apache.hadoop.hbase.client.MultiAction multiAction)
protected Set<org.apache.hadoop.hbase.client.CancellableRegionServerCallable> getCallsInProgress()
void groupAndSendMultiAction(List<org.apache.hadoop.hbase.client.Action> arg0, int arg1)
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)
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)
public void waitUntilDone() throws InterruptedIOException
waitUntilDone
in interface org.apache.hadoop.hbase.client.AsyncRequestFuture
InterruptedIOException
public boolean hasError()
hasError
in interface org.apache.hadoop.hbase.client.AsyncRequestFuture
public List<? extends org.apache.hadoop.hbase.client.Row> getFailedOperations()
getFailedOperations
in interface org.apache.hadoop.hbase.client.AsyncRequestFuture
public org.apache.hadoop.hbase.client.RetriesExhaustedWithDetailsException getErrors()
getErrors
in interface org.apache.hadoop.hbase.client.AsyncRequestFuture
public Object[] getResults() throws InterruptedIOException
getResults
in interface org.apache.hadoop.hbase.client.AsyncRequestFuture
InterruptedIOException
long getNumberOfActionsInProgress()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.