Ejemplo n.º 1
0
 public void start(
     I iface,
     getStruct_args args,
     org.apache.thrift.async.AsyncMethodCallback<SharedStruct> resultHandler)
     throws TException {
   iface.getStruct(args.key, resultHandler);
 }
Ejemplo n.º 2
0
 public void start(
     I iface,
     call_args args,
     org.apache.thrift.async.AsyncMethodCallback<String> resultHandler)
     throws TException {
   iface.call(args.request, resultHandler);
 }
Ejemplo n.º 3
0
 public void start(
     I iface,
     tokenize_args args,
     org.apache.thrift.async.AsyncMethodCallback<List<List<String>>> resultHandler)
     throws TException {
   iface.tokenize(args.document, args.wordGran, resultHandler);
 }
Ejemplo n.º 4
0
 public void start(
     I iface,
     execute_args args,
     org.apache.thrift.async.AsyncMethodCallback<String> resultHandler)
     throws TException {
   iface.execute(args.functionName, args.funcArgs, resultHandler);
 }
Ejemplo n.º 5
0
 public void start(
     I iface,
     sayHello_args args,
     org.apache.thrift.async.AsyncMethodCallback<String> resultHandler)
     throws TException {
   iface.sayHello(args.name, resultHandler);
 }
Ejemplo n.º 6
0
 public call_result getResult(I iface, call_args args) throws org.apache.thrift.TException {
   call_result result = new call_result();
   try {
     result.success = iface.call(args.request);
   } catch (BasicRequestException qe) {
     result.qe = qe;
   }
   return result;
 }
Ejemplo n.º 7
0
 public execute_result getResult(I iface, execute_args args)
     throws org.apache.thrift.TException {
   execute_result result = new execute_result();
   try {
     result.success = iface.execute(args.functionName, args.funcArgs);
   } catch (DRPCExecutionException e) {
     result.e = e;
   } catch (AuthorizationException aze) {
     result.aze = aze;
   }
   return result;
 }
Ejemplo n.º 8
0
 public getStruct_result getResult(I iface, getStruct_args args)
     throws org.apache.thrift.TException {
   getStruct_result result = new getStruct_result();
   result.success = iface.getStruct(args.key);
   return result;
 }
Ejemplo n.º 9
0
 public void start(
     I iface, show_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler)
     throws TException {
   iface.show(args.user, resultHandler);
 }
Ejemplo n.º 10
0
 public show_result getResult(I iface, show_args args) throws org.apache.thrift.TException {
   show_result result = new show_result();
   iface.show(args.user);
   return result;
 }
Ejemplo n.º 11
0
 public tokenize_result getResult(I iface, tokenize_args args)
     throws org.apache.thrift.TException {
   tokenize_result result = new tokenize_result();
   result.success = iface.tokenize(args.document, args.wordGran);
   return result;
 }
Ejemplo n.º 12
0
 public sayHello_result getResult(I iface, sayHello_args args)
     throws org.apache.thrift.TException {
   sayHello_result result = new sayHello_result();
   result.success = iface.sayHello(args.name);
   return result;
 }