/**
* Autogenerated by Thrift Compiler (0.7.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
*/
package com.alibaba.dubbo.rpc.gen.thrift;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.HashMap;
import java.util.EnumMap;
import java.util.Set;
import java.util.HashSet;
import java.util.EnumSet;
import java.util.Collections;
import java.util.BitSet;
import java.nio.ByteBuffer;
import java.util.Arrays;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class Demo {
public interface Iface {
public boolean echoBool(boolean arg) throws org.apache.thrift.TException;
public byte echoByte(byte arg) throws org.apache.thrift.TException;
public short echoI16(short arg) throws org.apache.thrift.TException;
public int echoI32(int arg) throws org.apache.thrift.TException;
public long echoI64(long arg) throws org.apache.thrift.TException;
public double echoDouble(double arg) throws org.apache.thrift.TException;
public String echoString(String arg) throws org.apache.thrift.TException;
}
public interface AsyncIface {
public void echoBool(boolean arg, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.echoBool_call> resultHandler) throws org.apache.thrift.TException;
public void echoByte(byte arg, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.echoByte_call> resultHandler) throws org.apache.thrift.TException;
public void echoI16(short arg, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.echoI16_call> resultHandler) throws org.apache.thrift.TException;
public void echoI32(int arg, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.echoI32_call> resultHandler) throws org.apache.thrift.TException;
public void echoI64(long arg, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.echoI64_call> resultHandler) throws org.apache.thrift.TException;
public void echoDouble(double arg, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.echoDouble_call> resultHandler) throws org.apache.thrift.TException;
public void echoString(String arg, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.echoString_call> resultHandler) throws org.apache.thrift.TException;
}
public static class Client extends org.apache.thrift.TServiceClient implements Iface {
public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
public Factory() {}
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) {
return new Client(iprot, oprot);
}
}
public Client(org.apache.thrift.protocol.TProtocol prot)
{
super(prot, prot);
}
public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
super(iprot, oprot);
}
public boolean echoBool(boolean arg) throws org.apache.thrift.TException
{
send_echoBool(arg);
return recv_echoBool();
}
public void send_echoBool(boolean arg) throws org.apache.thrift.TException
{
echoBool_args args = new echoBool_args();
args.setArg(arg);
sendBase("echoBool", args);
}
public boolean recv_echoBool() throws org.apache.thrift.TException
{
echoBool_result result = new echoBool_result();
receiveBase(result, "echoBool");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "echoBool failed: unknown result");
}
public byte echoByte(byte arg) throws org.apache.thrift.TException
{
send_echoByte(arg);
return recv_echoByte();
}
public void send_echoByte(byte arg) throws org.apache.thrift.TException
{
echoByte_args args = new echoByte_args();
args.setArg(arg);
sendBase("echoByte", args);
}
public byte recv_echoByte() throws org.apache.thrift.TException
{
echoByte_result result = new echoByte_result();
receiveBase(result, "echoByte");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "echoByte failed: unknown result");
}
public short echoI16(short arg) throws org.apache.thrift.TException
{
send_echoI16(arg);
return recv_echoI16();
}
public void send_echoI16(short arg) throws org.apache.thrift.TException
{
echoI16_args args = new echoI16_args();
args.setArg(arg);
sendBase("echoI16", args);
}
public short recv_echoI16() throws org.apache.thrift.TException
{
echoI16_result result = new echoI16_result();
receiveBase(result, "echoI16");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "echoI16 failed: unknown result");
}
public int echoI32(int arg) throws org.apache.thrift.TException
{
send_echoI32(arg);
return recv_echoI32();
}
public void send_echoI32(int arg) throws org.apache.thrift.TException
{
echoI32_args args = new echoI32_args();
args.setArg(arg);
sendBase("echoI32", args);
}
public int recv_echoI32() throws org.apache.thrift.TException
{
echoI32_result result = new echoI32_result();
receiveBase(result, "echoI32");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "echoI32 failed: unknown result");
}
public long echoI64(long arg) throws org.apache.thrift.TException
{
send_echoI64(arg);
return recv_echoI64();
}
public void send_echoI64(long arg) throws org.apache.thrift.TException
{
echoI64_args args = new echoI64_args();
args.setArg(arg);
sendBase("echoI64", args);
}
public long recv_echoI64() throws org.apache.thrift.TException
{
echoI64_result result = new echoI64_result();
receiveBase(result, "echoI64");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "echoI64 failed: unknown result");
}
public double echoDouble(double arg) throws org.apache.thrift.TException
{
send_echoDouble(arg);
return recv_echoDouble();
}
public void send_echoDouble(double arg) throws org.apache.thrift.TException
{
echoDouble_args args = new echoDouble_args();
args.setArg(arg);
sendBase("echoDouble", args);
}
public double recv_echoDouble() throws org.apache.thrift.TException
{
echoDouble_result result = new echoDouble_result();
receiveBase(result, "echoDouble");
if (result.isSetSuccess()) {
return result.success;
}
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "echoDouble failed: unknown result");
}
public String echoString(String arg) throws org.apache.thrift.TException
{
send_echoString(arg);
return recv_echoString();
}
public void send_echoString(String arg) throws org.apache.thrift.TException
{
echoString_args args = new echoString_args();
args.setArg(arg);
sendBase("echoString", args);
}
public String recv_echoString() throws org.apache.thrift.TException
{
echoString_result result = new echoString_result();
receiveBase(result, "echoString");
if (result.isSetSuccess()) {
return result.succes
- 1
- 2
- 3
- 4
- 5
- 6
前往页