@Override protected void doCall() { ClientService.Interface stub; try { stub = this.conn.getRegionServerStub(serverName); } catch (IOException e) { onError(e, () -> "Get async admin stub to " + serverName + " failed", err -> { }); return; } resetCallTimeout(); callable.call(controller, stub).whenComplete((result, error) -> { if (error != null) { onError(error, () -> "Call to admin stub failed", err -> { }); return; } future.complete(result); }); } }
ClientService.Interface stub; try { stub = conn.getRegionServerStub(sn); } catch (IOException e) { onError(serverReq.actionsByRegion, tries, e, sn);
private void call(HRegionLocation loc) { ClientService.Interface stub; try { stub = conn.getRegionServerStub(loc.getServerName()); } catch (IOException e) { onError(e, () -> "Get async stub to " + loc.getServerName() + " for '" + Bytes.toStringBinary(row) + "' in " + loc.getRegion().getEncodedName() + " of " + tableName + " failed", err -> conn.getLocator().updateCachedLocationOnError(loc, err)); return; } resetCallTimeout(); callable.call(controller, loc, stub).whenComplete((result, error) -> { if (error != null) { onError(error, () -> "Call to " + loc.getServerName() + " for '" + Bytes.toStringBinary(row) + "' in " + loc.getRegion().getEncodedName() + " of " + tableName + " failed", err -> conn.getLocator().updateCachedLocationOnError(loc, err)); return; } future.complete(result); }); }
@Override protected void doCall() { ClientService.Interface stub; try { stub = this.conn.getRegionServerStub(serverName); } catch (IOException e) { onError(e, () -> "Get async admin stub to " + serverName + " failed", err -> { }); return; } resetCallTimeout(); callable.call(controller, stub).whenComplete((result, error) -> { if (error != null) { onError(error, () -> "Call to admin stub failed", err -> { }); return; } future.complete(result); }); }
ClientService.Interface stub; try { stub = conn.getRegionServerStub(sn); } catch (IOException e) { onError(serverReq.actionsByRegion, tries, e, sn);
private void call(HRegionLocation loc) { ClientService.Interface stub; try { stub = conn.getRegionServerStub(loc.getServerName()); } catch (IOException e) { onError(e, () -> "Get async stub to " + loc.getServerName() + " for '" + Bytes.toStringBinary(row) + "' in " + loc.getRegion().getEncodedName() + " of " + tableName + " failed", err -> conn.getLocator().updateCachedLocation(loc, err)); return; } resetCallTimeout(); callable.call(controller, loc, stub).whenComplete( (result, error) -> { if (error != null) { onError(error, () -> "Call to " + loc.getServerName() + " for '" + Bytes.toStringBinary(row) + "' in " + loc.getRegion().getEncodedName() + " of " + tableName + " failed", err -> conn.getLocator().updateCachedLocation(loc, err)); return; } future.complete(result); }); }
@Override protected void doCall() { ClientService.Interface stub; try { stub = this.conn.getRegionServerStub(serverName); } catch (IOException e) { onError(e, () -> "Get async admin stub to " + serverName + " failed", err -> { }); return; } resetCallTimeout(); callable.call(controller, stub).whenComplete((result, error) -> { if (error != null) { onError(error, () -> "Call to admin stub failed", err -> { }); return; } future.complete(result); }); }
ClientService.Interface stub; try { stub = conn.getRegionServerStub(sn); } catch (IOException e) { onError(serverReq.actionsByRegion, tries, e, sn);
private void call(HRegionLocation loc) { ClientService.Interface stub; try { stub = conn.getRegionServerStub(loc.getServerName()); } catch (IOException e) { onError(e, () -> "Get async stub to " + loc.getServerName() + " for '" + Bytes.toStringBinary(row) + "' in " + loc.getRegion().getEncodedName() + " of " + tableName + " failed", err -> conn.getLocator().updateCachedLocation(loc, err)); return; } resetCallTimeout(); callable.call(controller, loc, stub).whenComplete( (result, error) -> { if (error != null) { onError(error, () -> "Call to " + loc.getServerName() + " for '" + Bytes.toStringBinary(row) + "' in " + loc.getRegion().getEncodedName() + " of " + tableName + " failed", err -> conn.getLocator().updateCachedLocation(loc, err)); return; } future.complete(result); }); }