public void send_handshake() throws TException { oprot_.writeMessageBegin(new TMessage("handshake", TMessageType.CALL, ++seqid_)); handshake_args args = new handshake_args(); args.write(oprot_); oprot_.writeMessageEnd(); oprot_.getTransport().flush(); }
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("shutdown", org.apache.thrift.protocol.TMessageType.CALL, 0)); shutdown_args args = new shutdown_args(); args.write(prot); prot.writeMessageEnd(); }
protected void encodeRequest(Channel channel, ChannelBuffer buffer, Request request) throws IOException { Invocation invocation = (Invocation) request.getData(); TProtocol protocol = newProtocol(channel.getUrl(), buffer); try { protocol.writeMessageBegin(new TMessage( invocation.getMethodName(), TMessageType.CALL, thriftSeq.getAndIncrement())); protocol.writeStructBegin(new TStruct(invocation.getMethodName() + "_args")); for (int i = 0; i < invocation.getParameterTypes().length; i++) { Class<?> type = invocation.getParameterTypes()[i]; } } catch (TException e) { throw new IOException(e.getMessage(), e); } }
final TTransport transport = new TByteBufTransport(buf); final TProtocol outProto = ThriftProtocolFactories.get(serializationFormat).getProtocol(transport); final TMessage header = new TMessage(methodName, TMessageType.EXCEPTION, seqId); outProto.writeMessageBegin(header); appException.write(outProto); outProto.writeMessageEnd();
public void send_handshakeWithClientInfo(ClientInfo clientInfo) throws TException { oprot_.writeMessageBegin(new TMessage("handshakeWithClientInfo", TMessageType.CALL, ++seqid_)); handshakeWithClientInfo_args args = new handshakeWithClientInfo_args(); args.setClientInfo(clientInfo); args.write(oprot_); oprot_.writeMessageEnd(); oprot_.getTransport().flush(); }
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("resourcePoolGetAll", org.apache.thrift.protocol.TMessageType.CALL, 0)); resourcePoolGetAll_args args = new resourcePoolGetAll_args(); args.write(prot); prot.writeMessageEnd(); }
protected void encodeRequest(Channel channel, ChannelBuffer buffer, Request request) throws IOException { Invocation invocation = (Invocation) request.getData(); TProtocol protocol = newProtocol(channel.getUrl(), buffer); try { protocol.writeMessageBegin(new TMessage( invocation.getMethodName(), TMessageType.CALL, thriftSeq.getAndIncrement())); protocol.writeStructBegin(new TStruct(invocation.getMethodName() + "_args")); for (int i = 0; i < invocation.getParameterTypes().length; i++) { Class<?> type = invocation.getParameterTypes()[i]; } } catch (TException e) { throw new IOException(e.getMessage(), e); } }
public void send_setAcceptNewStream(boolean enabled) throws TException { oprot_.writeMessageBegin(new TMessage("setAcceptNewStream", TMessageType.CALL, ++seqid_)); setAcceptNewStream_args args = new setAcceptNewStream_args(); args.setEnabled(enabled); args.write(oprot_); oprot_.writeMessageEnd(); oprot_.getTransport().flush(); }
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("stopSupervisors", org.apache.thrift.protocol.TMessageType.CALL, 0)); stopSupervisors_args args = new stopSupervisors_args(); args.write(prot); prot.writeMessageEnd(); }
public boolean process(TProtocol iprot, TProtocol oprot) throws TException { TMessage msg = iprot.readMessageBegin(); ProcessFunction fn = processMap_.get(msg.name); if (fn == null) { TProtocolUtil.skip(iprot, TType.STRUCT); iprot.readMessageEnd(); TApplicationException x = new TApplicationException(TApplicationException.UNKNOWN_METHOD, "Invalid method name: '"+msg.name+"'"); oprot.writeMessageBegin(new TMessage(msg.name, TMessageType.EXCEPTION, msg.seqid)); x.write(oprot); oprot.writeMessageEnd(); oprot.getTransport().flush(); return true; } fn.process(msg.seqid, iprot, oprot); return true; }
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("registerInterpreterProcess", org.apache.thrift.protocol.TMessageType.CALL, 0)); registerInterpreterProcess_args args = new registerInterpreterProcess_args(); args.setRegisterInfo(registerInfo); args.write(prot); prot.writeMessageEnd(); }
public void send_release(String stream, WriteContext ctx) throws TException { oprot_.writeMessageBegin(new TMessage("release", TMessageType.CALL, ++seqid_)); release_args args = new release_args(); args.setStream(stream); args.setCtx(ctx); args.write(oprot_); oprot_.writeMessageEnd(); oprot_.getTransport().flush(); }
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("runParagraphs", org.apache.thrift.protocol.TMessageType.CALL, 0)); runParagraphs_args args = new runParagraphs_args(); args.setEvent(event); args.write(prot); prot.writeMessageEnd(); }
public void send_delete(String stream, WriteContext ctx) throws TException { oprot_.writeMessageBegin(new TMessage("delete", TMessageType.CALL, ++seqid_)); delete_args args = new delete_args(); args.setStream(stream); args.setCtx(ctx); args.write(oprot_); oprot_.writeMessageEnd(); oprot_.getTransport().flush(); }
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("appendAppOutput", org.apache.thrift.protocol.TMessageType.CALL, 0)); appendAppOutput_args args = new appendAppOutput_args(); args.setEvent(event); args.write(prot); prot.writeMessageEnd(); }
public void send_write(String stream, ByteBuffer data) throws TException { oprot_.writeMessageBegin(new TMessage("write", TMessageType.CALL, ++seqid_)); write_args args = new write_args(); args.setStream(stream); args.setData(data); args.write(oprot_); oprot_.writeMessageEnd(); oprot_.getTransport().flush(); }
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("appendOutput", org.apache.thrift.protocol.TMessageType.CALL, 0)); appendOutput_args args = new appendOutput_args(); args.setEvent(event); args.write(prot); prot.writeMessageEnd(); }
public void send_create(String stream, WriteContext ctx) throws TException { oprot_.writeMessageBegin(new TMessage("create", TMessageType.CALL, ++seqid_)); create_args args = new create_args(); args.setStream(stream); args.setCtx(ctx); args.write(oprot_); oprot_.writeMessageEnd(); oprot_.getTransport().flush(); }
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateAppOutput", org.apache.thrift.protocol.TMessageType.CALL, 0)); updateAppOutput_args args = new updateAppOutput_args(); args.setEvent(event); args.write(prot); prot.writeMessageEnd(); }
public void send_heartbeat(String stream, WriteContext ctx) throws TException { oprot_.writeMessageBegin(new TMessage("heartbeat", TMessageType.CALL, ++seqid_)); heartbeat_args args = new heartbeat_args(); args.setStream(stream); args.setCtx(ctx); args.write(oprot_); oprot_.writeMessageEnd(); oprot_.getTransport().flush(); }