private Collection<RefreshResponse> unpack(GenericRefreshResponseCollectionProto collection) { List<GenericRefreshResponseProto> responseProtos = collection.getResponsesList(); List<RefreshResponse> responses = new ArrayList<RefreshResponse>(); for (GenericRefreshResponseProto rp : responseProtos) { RefreshResponse response = unpack(rp); responses.add(response); } return responses; }
new GenericRefreshProtocolClientSideTranslatorPB(proxy);) { responses = xlator.refresh(identifier, args);
new GenericRefreshProtocolClientSideTranslatorPB(proxy);) { responses = xlator.refresh(identifier, args);
@Override public Collection<RefreshResponse> refresh(String identifier, String[] args) throws IOException { List<String> argList = Arrays.asList(args); try { GenericRefreshRequestProto request = GenericRefreshRequestProto.newBuilder() .setIdentifier(identifier) .addAllArgs(argList) .build(); GenericRefreshResponseCollectionProto resp = rpcProxy.refresh(NULL_CONTROLLER, request); return unpack(resp); } catch (ServiceException se) { throw ProtobufHelper.getRemoteException(se); } }
new GenericRefreshProtocolClientSideTranslatorPB(proxy);) { responses = xlator.refresh(identifier, args);
private Collection<RefreshResponse> unpack(GenericRefreshResponseCollectionProto collection) { List<GenericRefreshResponseProto> responseProtos = collection.getResponsesList(); List<RefreshResponse> responses = new ArrayList<RefreshResponse>(); for (GenericRefreshResponseProto rp : responseProtos) { RefreshResponse response = unpack(rp); responses.add(response); } return responses; }
private Collection<RefreshResponse> unpack(GenericRefreshResponseCollectionProto collection) { List<GenericRefreshResponseProto> responseProtos = collection.getResponsesList(); List<RefreshResponse> responses = new ArrayList<RefreshResponse>(); for (GenericRefreshResponseProto rp : responseProtos) { RefreshResponse response = unpack(rp); responses.add(response); } return responses; }
private Collection<RefreshResponse> unpack(GenericRefreshResponseCollectionProto collection) { List<GenericRefreshResponseProto> responseProtos = collection.getResponsesList(); List<RefreshResponse> responses = new ArrayList<RefreshResponse>(); for (GenericRefreshResponseProto rp : responseProtos) { RefreshResponse response = unpack(rp); responses.add(response); } return responses; }
private Collection<RefreshResponse> unpack(GenericRefreshResponseCollectionProto collection) { List<GenericRefreshResponseProto> responseProtos = collection.getResponsesList(); List<RefreshResponse> responses = new ArrayList<RefreshResponse>(); for (GenericRefreshResponseProto rp : responseProtos) { RefreshResponse response = unpack(rp); responses.add(response); } return responses; }
@Override public Collection<RefreshResponse> refresh(String identifier, String[] args) throws IOException { List<String> argList = Arrays.asList(args); try { GenericRefreshRequestProto request = GenericRefreshRequestProto.newBuilder() .setIdentifier(identifier) .addAllArgs(argList) .build(); GenericRefreshResponseCollectionProto resp = rpcProxy.refresh(NULL_CONTROLLER, request); return unpack(resp); } catch (ServiceException se) { throw ProtobufHelper.getRemoteException(se); } }
@Override public Collection<RefreshResponse> refresh(String identifier, String[] args) throws IOException { List<String> argList = Arrays.asList(args); try { GenericRefreshRequestProto request = GenericRefreshRequestProto.newBuilder() .setIdentifier(identifier) .addAllArgs(argList) .build(); GenericRefreshResponseCollectionProto resp = rpcProxy.refresh(NULL_CONTROLLER, request); return unpack(resp); } catch (ServiceException se) { throw ProtobufHelper.getRemoteException(se); } }
@Override public Collection<RefreshResponse> refresh(String identifier, String[] args) throws IOException { List<String> argList = Arrays.asList(args); try { GenericRefreshRequestProto request = GenericRefreshRequestProto.newBuilder() .setIdentifier(identifier) .addAllArgs(argList) .build(); GenericRefreshResponseCollectionProto resp = rpcProxy.refresh(NULL_CONTROLLER, request); return unpack(resp); } catch (ServiceException se) { throw ProtobufHelper.getRemoteException(se); } }
@Override public Collection<RefreshResponse> refresh(String identifier, String[] args) throws IOException { List<String> argList = Arrays.asList(args); try { GenericRefreshRequestProto request = GenericRefreshRequestProto.newBuilder() .setIdentifier(identifier) .addAllArgs(argList) .build(); GenericRefreshResponseCollectionProto resp = rpcProxy.refresh(NULL_CONTROLLER, request); return unpack(resp); } catch (ServiceException se) { throw ProtobufHelper.getRemoteException(se); } }