public void getResult() throws org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); (new Client(prot)).recv_onOperationsServerListUpdate(); } }
@Override public void doInTemplate(Client template) { try { // NOSONAR List<ThriftOperationsServer> operationsServersList = new ArrayList<>(); for (Integer accessPointId : opsServersMap.keySet()) { operationsServersList.add(opsServersMap.get(accessPointId).opsServer); LOG.trace("Bootstrap {} server: {}", dnsName, opsServersMap.get(accessPointId).opsServer.toString()); } LOG.trace("Bootstrap {} Operations servers list size {} ready to updates", dnsName, operationsServersList.size()); template.onOperationsServerListUpdate(operationsServersList); LOG.info("Bootstrap {} Operations servers list updated.", dnsName); } catch (TException ex) { lastBootstrapServersUpdateFailed = true; LOG.error(format("Bootstrap Operations servers list updated failed", dnsName), ex); } } });
public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) { return new Client(iprot, oprot); } }
public Client getClient(org.apache.thrift.protocol.TProtocol prot) { return new Client(prot); } public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
public void onOperationsServerListUpdate(List<ThriftOperationsServer> operationsServersList) throws org.apache.thrift.TException { send_onOperationsServerListUpdate(operationsServersList); recv_onOperationsServerListUpdate(); }
public void send_onOperationsServerListUpdate(List<ThriftOperationsServer> operationsServersList) throws org.apache.thrift.TException { onOperationsServerListUpdate_args args = new onOperationsServerListUpdate_args(); args.setOperationsServersList(operationsServersList); sendBase("onOperationsServerListUpdate", args); }
public void recv_onOperationsServerListUpdate() throws org.apache.thrift.TException { onOperationsServerListUpdate_result result = new onOperationsServerListUpdate_result(); receiveBase(result, "onOperationsServerListUpdate"); return; }