Thrift API change.
Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/c607b667 Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/c607b667 Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/c607b667 Branch: refs/heads/v2_command Commit: c607b6678175ee1214d627d56f713d26f627c1e3 Parents: 5853d86 Author: Aaron McCurry <amccu...@gmail.com> Authored: Mon Dec 7 16:14:59 2015 -0500 Committer: Aaron McCurry <amccu...@gmail.com> Committed: Mon Dec 7 16:14:59 2015 -0500 ---------------------------------------------------------------------- scripts/interface/Blur.thrift | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/c607b667/scripts/interface/Blur.thrift ---------------------------------------------------------------------- diff --git a/scripts/interface/Blur.thrift b/scripts/interface/Blur.thrift index 512c7e6..49d58a3 100644 --- a/scripts/interface/Blur.thrift +++ b/scripts/interface/Blur.thrift @@ -926,14 +926,10 @@ struct CommandDescriptor { 6:string version } -struct CommandTarget { - 1:set<string> tables, - 2:set<string> shards -} - -struct CommandRequest { +struct ShardOperationRequest { 1:string name, - 2:CommandTarget target + 2:string table, + 3:string shard } /** @@ -983,9 +979,9 @@ service Blur { oneway void refresh() /** - * Executes command. + * Executes a shard operation which allows for bidirectional communication. */ - oneway void executeCommand(1:CommandRequest commandRequest) + oneway void executeShardOperation(1:ShardOperationRequest shardOperationRequest) //Table Commands