コード例 #1
0
 public void start(
     I iface,
     getStruct_args args,
     org.apache.thrift.async.AsyncMethodCallback<SharedStruct> resultHandler)
     throws TException {
   iface.getStruct(args.key, resultHandler);
 }
コード例 #2
0
ファイル: BasicService.java プロジェクト: zhaochenyou/Tips
 public void start(
     I iface,
     call_args args,
     org.apache.thrift.async.AsyncMethodCallback<String> resultHandler)
     throws TException {
   iface.call(args.request, resultHandler);
 }
コード例 #3
0
ファイル: TTokenizer.java プロジェクト: loadinh/TempStorage
 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);
 }
コード例 #4
0
ファイル: DistributedRPC.java プロジェクト: wangli1426/storm
 public void start(
     I iface,
     execute_args args,
     org.apache.thrift.async.AsyncMethodCallback<String> resultHandler)
     throws TException {
   iface.execute(args.functionName, args.funcArgs, resultHandler);
 }
コード例 #5
0
ファイル: HelloService.java プロジェクト: yuanwhy/thrift-demo
 public void start(
     I iface,
     sayHello_args args,
     org.apache.thrift.async.AsyncMethodCallback<String> resultHandler)
     throws TException {
   iface.sayHello(args.name, resultHandler);
 }
コード例 #6
0
ファイル: BasicService.java プロジェクト: zhaochenyou/Tips
 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;
 }
コード例 #7
0
ファイル: DistributedRPC.java プロジェクト: wangli1426/storm
 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;
 }
コード例 #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;
 }
コード例 #9
0
 public void start(
     I iface, show_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler)
     throws TException {
   iface.show(args.user, resultHandler);
 }
コード例 #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;
 }
コード例 #11
0
ファイル: TTokenizer.java プロジェクト: loadinh/TempStorage
 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;
 }
コード例 #12
0
ファイル: HelloService.java プロジェクト: yuanwhy/thrift-demo
 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;
 }