private void invokeCallBack(byte[] regionName, byte[] row, CResult result) { if (callback != null) { try { //noinspection unchecked // TODO: would callback expect a replica region name if it gets one? this.callback.update(regionName, row, result); } catch (Throwable t) { LOG.error("User callback threw an exception for " + Bytes.toStringBinary(regionName) + ", ignoring", t); } } }
org.apache.hadoop.hbase.protobuf.ProtobufUtil.mergeFrom(builder, serviceResult.getValue().getValue().toByteArray()); callback.update(region, row, (R) builder.build()); } catch (IOException e) { LOG.error("Unexpected response type from endpoint " + methodDescriptor.getFullName(),
private void invokeCallBack(byte[] regionName, byte[] row, CResult result) { if (callback != null) { try { //noinspection unchecked // TODO: would callback expect a replica region name if it gets one? this.callback.update(regionName, row, result); } catch (Throwable t) { LOG.error("User callback threw an exception for " + Bytes.toStringBinary(regionName) + ", ignoring", t); } } }
this.callback.update(regionName, sentAction.getAction().getRow(), (CResult)result); } catch (Throwable t) { LOG.error("User callback threw an exception for "
callback.update(e.getKey(), list.get(regionResult.getFirst()).getRow(), (R)regionResult.getSecond());
org.apache.hadoop.hbase.protobuf.ProtobufUtil.mergeFrom(builder, serviceResult.getValue().getValue().toByteArray()); callback.update(region, row, (R) builder.build()); } catch (IOException e) { LOG.error("Unexpected response type from endpoint " + methodDescriptor.getFullName(),
@SuppressWarnings("unchecked") @Override public final void onSuccess(Object message) { Result result = Result.EMPTY_RESULT; try { if (message instanceof FlatRow) { result = Adapters.FLAT_ROW_ADAPTER.adaptResponse((FlatRow) message); } else if (message instanceof com.google.bigtable.v2.Row) { result = Adapters.ROW_ADAPTER.adaptResponse((com.google.bigtable.v2.Row) message); } else if (message instanceof ReadModifyWriteRowResponse) { result = Adapters.ROW_ADAPTER.adaptResponse(((ReadModifyWriteRowResponse) message).getRow()); } } catch(Throwable throwable) { onFailure(throwable); return; } resultsArray[index] = result; resultFuture.set(result); if (callback != null) { try { callback.update(NO_REGION, row.getRow(), (T) result); } catch (Throwable t) { LOG.error("User callback threw an exception for " + Bytes.toString(result.getRow())); } } }
@SuppressWarnings("unchecked") @Override public final void onSuccess(Object message) { Result result = Result.EMPTY_RESULT; try { if (message instanceof FlatRow) { result = Adapters.FLAT_ROW_ADAPTER.adaptResponse((FlatRow) message); } else if (message instanceof com.google.bigtable.v2.Row) { result = Adapters.ROW_ADAPTER.adaptResponse((com.google.bigtable.v2.Row) message); } else if (message instanceof ReadModifyWriteRowResponse) { result = Adapters.ROW_ADAPTER.adaptResponse(((ReadModifyWriteRowResponse) message).getRow()); } } catch(Throwable throwable) { onFailure(throwable); return; } resultsArray[index] = result; resultFuture.set(result); if (callback != null) { try { callback.update(NO_REGION, row.getRow(), (T) result); } catch (Throwable t) { LOG.error("User callback threw an exception for " + Bytes.toString(result.getRow())); } } }
private void invokeCallBack(byte[] regionName, byte[] row, CResult result) { if (callback != null) { try { //noinspection unchecked // TODO: would callback expect a replica region name if it gets one? this.callback.update(regionName, row, result); } catch (Throwable t) { LOG.error("User callback threw an exception for " + Bytes.toStringBinary(regionName) + ", ignoring", t); } } }
public R call() throws Exception { T instance = (T)Proxy.newProxyInstance(conf.getClassLoader(), new Class[]{protocol}, invoker); R result = callable.call(instance); byte[] region = invoker.getRegionName(); if (callback != null) { callback.update(region, r, result); } return result; } });
org.apache.hadoop.hbase.protobuf.ProtobufUtil.mergeFrom(builder, serviceResult.getValue().getValue().toByteArray()); callback.update(region, row, (R) builder.build()); } catch (IOException e) { LOG.error("Unexpected response type from endpoint " + methodDescriptor.getFullName(),