@Override public SetBalancerBandwidthResponseProto setBalancerBandwidth( RpcController controller, SetBalancerBandwidthRequestProto req) throws ServiceException { try { server.setBalancerBandwidth(req.getBandwidth()); return VOID_SETBALANCERBANDWIDTH_RESPONSE; } catch (IOException e) { throw new ServiceException(e); } }
@Override public void setBalancerBandwidth(long bandwidth) throws IOException { SetBalancerBandwidthRequestProto req = SetBalancerBandwidthRequestProto.newBuilder() .setBandwidth(bandwidth) .build(); try { rpcProxy.setBalancerBandwidth(null, req); } catch (ServiceException e) { throw ProtobufHelper.getRemoteException(e); } }
@Override public void setBalancerBandwidth(long bandwidth) throws IOException { SetBalancerBandwidthRequestProto req = SetBalancerBandwidthRequestProto.newBuilder().setBandwidth(bandwidth) .build(); try { rpcProxy.setBalancerBandwidth(null, req); } catch (ServiceException e) { throw ProtobufHelper.getRemoteException(e); } }