@Override public Iface apply(TTransport transport) { TProtocol protocol = new TBinaryProtocol(transport); TMultiplexedProtocol mprotocol = new TMultiplexedProtocol( protocol, KaaThriftService.OPERATIONS_SERVICE.getServiceName() ); return new OperationsThriftService.Client(mprotocol); } }).build(backends);
@Override public void doInTemplate(Client template) { try { // NOSONAR template.onNotification(thriftNotification); } catch (TException ex) { LOG.error("Unexpected error occurred while send notification to endpoint server", ex); } } });
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_onEndpointDeregistration(); } }
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 onEntityRouteMessages(List<ThriftEntityRouteMessage> messages) throws org.apache.thrift.TException { send_onEntityRouteMessages(messages); recv_onEntityRouteMessages(); }
public void recv_sendUserConfigurationUpdates() throws org.apache.thrift.TException { sendUserConfigurationUpdates_result result = new sendUserConfigurationUpdates_result(); receiveBase(result, "sendUserConfigurationUpdates"); return; }
public void recv_setRedirectionRule() throws org.apache.thrift.TException { setRedirectionRule_result result = new setRedirectionRule_result(); receiveBase(result, "setRedirectionRule"); return; }
public void onServerProfileUpdate(ThriftServerProfileUpdateMessage message) throws org.apache.thrift.TException { send_onServerProfileUpdate(message); recv_onServerProfileUpdate(); }
public void sendMessages(List<Message> messages) throws org.apache.thrift.TException { send_sendMessages(messages); recv_sendMessages(); }
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_onEntityRouteMessages(); } }
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_onNotification(); } }
public void recv_sendEndpointConfigurationRefreshMessage() throws org.apache.thrift.TException { sendEndpointConfigurationRefreshMessage_result result = new sendEndpointConfigurationRefreshMessage_result(); receiveBase(result, "sendEndpointConfigurationRefreshMessage"); return; }
public void recv_onNotification() throws org.apache.thrift.TException { onNotification_result result = new onNotification_result(); receiveBase(result, "onNotification"); return; }
public void onNotification(Notification notification) throws org.apache.thrift.TException { send_onNotification(notification); recv_onNotification(); }
public void recv_onEndpointDeregistration() throws org.apache.thrift.TException { onEndpointDeregistration_result result = new onEndpointDeregistration_result(); receiveBase(result, "onEndpointDeregistration"); return; }
public void recv_onServerProfileUpdate() throws org.apache.thrift.TException { onServerProfileUpdate_result result = new onServerProfileUpdate_result(); receiveBase(result, "onServerProfileUpdate"); return; }
public void recv_onUnicastNotification() throws org.apache.thrift.TException { onUnicastNotification_result result = new onUnicastNotification_result(); receiveBase(result, "onUnicastNotification"); return; }
public void recv_onEntityRouteMessages() throws org.apache.thrift.TException { onEntityRouteMessages_result result = new onEntityRouteMessages_result(); receiveBase(result, "onEntityRouteMessages"); return; }
public void sendEndpointConfigurationRefreshMessage(ThriftEndpointConfigurationRefreshMessage message) throws org.apache.thrift.TException { send_sendEndpointConfigurationRefreshMessage(message); recv_sendEndpointConfigurationRefreshMessage(); }