stat-analysis-query 0.0.8 → 0.0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/t_discover_service.rb +15 -15
- data/test/discover_test.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8455165deb32bb0680f1f900263ee925d9664cd6
|
4
|
+
data.tar.gz: 785baeba343c58f72db00fc4464ccaee1e099801
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f21e00d5e195d04be5186a65642204b91cf9933b87f49fae7adab5265fde07f1f55b3c75e3bad2c20652492c3c67a10f2a488e8c9dfc241f170999d9150060dc
|
7
|
+
data.tar.gz: eabd84f31f66571e8c56bab0e5afb10354cdb1854091b441f5e9319548ed9456c033a309ce168d2a02f5e5ae74ab5f664df2b714d7f8a47f22c8da5fd89d6c95
|
data/lib/t_discover_service.rb
CHANGED
@@ -215,19 +215,19 @@ module Stat
|
|
215
215
|
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'selectMobileMultiCategories failed: unknown result')
|
216
216
|
end
|
217
217
|
|
218
|
-
def
|
219
|
-
|
220
|
-
return
|
218
|
+
def selectAlbumSwitches(catetoryIds)
|
219
|
+
send_selectAlbumSwitches(catetoryIds)
|
220
|
+
return recv_selectAlbumSwitches()
|
221
221
|
end
|
222
222
|
|
223
|
-
def
|
224
|
-
send_message('
|
223
|
+
def send_selectAlbumSwitches(catetoryIds)
|
224
|
+
send_message('selectAlbumSwitches', SelectAlbumSwitches_args, :catetoryIds => catetoryIds)
|
225
225
|
end
|
226
226
|
|
227
|
-
def
|
228
|
-
result = receive_message(
|
227
|
+
def recv_selectAlbumSwitches()
|
228
|
+
result = receive_message(SelectAlbumSwitches_result)
|
229
229
|
return result.success unless result.success.nil?
|
230
|
-
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, '
|
230
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'selectAlbumSwitches failed: unknown result')
|
231
231
|
end
|
232
232
|
|
233
233
|
end
|
@@ -332,11 +332,11 @@ module Stat
|
|
332
332
|
write_result(result, oprot, 'selectMobileMultiCategories', seqid)
|
333
333
|
end
|
334
334
|
|
335
|
-
def
|
336
|
-
args = read_args(iprot,
|
337
|
-
result =
|
338
|
-
result.success = @handler.
|
339
|
-
write_result(result, oprot, '
|
335
|
+
def process_selectAlbumSwitches(seqid, iprot, oprot)
|
336
|
+
args = read_args(iprot, SelectAlbumSwitches_args)
|
337
|
+
result = SelectAlbumSwitches_result.new()
|
338
|
+
result.success = @handler.selectAlbumSwitches(args.catetoryIds)
|
339
|
+
write_result(result, oprot, 'selectAlbumSwitches', seqid)
|
340
340
|
end
|
341
341
|
|
342
342
|
end
|
@@ -805,7 +805,7 @@ module Stat
|
|
805
805
|
::Thrift::Struct.generate_accessors self
|
806
806
|
end
|
807
807
|
|
808
|
-
class
|
808
|
+
class SelectAlbumSwitches_args
|
809
809
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
810
810
|
CATETORYIDS = 1
|
811
811
|
|
@@ -821,7 +821,7 @@ module Stat
|
|
821
821
|
::Thrift::Struct.generate_accessors self
|
822
822
|
end
|
823
823
|
|
824
|
-
class
|
824
|
+
class SelectAlbumSwitches_result
|
825
825
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
826
826
|
SUCCESS = 0
|
827
827
|
|
data/test/discover_test.rb
CHANGED
@@ -17,7 +17,7 @@ class QueryTest < Test::Unit::TestCase
|
|
17
17
|
'size' => 1,
|
18
18
|
'multiplexed' => true,
|
19
19
|
'client_class' => 'Stat::Query::TDiscoverService::Client',
|
20
|
-
'servers' => '192.168.
|
20
|
+
'servers' => '192.168.5.49:9002'
|
21
21
|
}
|
22
22
|
|
23
23
|
@client = ThriftClient.new(config)
|
@@ -155,10 +155,10 @@ class QueryTest < Test::Unit::TestCase
|
|
155
155
|
}
|
156
156
|
end
|
157
157
|
|
158
|
-
def
|
158
|
+
def test_selectAlbumSwitches
|
159
159
|
category_ids = [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]
|
160
160
|
assert_nothing_raised {
|
161
|
-
p @client.
|
161
|
+
p @client.selectAlbumSwitches(category_ids)
|
162
162
|
}
|
163
163
|
end
|
164
164
|
|