trisulrp 1.4.2 → 1.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/trisulrp/trp.pb.rb +19 -43
- data/lib/trisulrp/trp.proto +20 -38
- data/trisulrp.gemspec +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.4.
|
1
|
+
1.4.3
|
data/lib/trisulrp/trp.pb.rb
CHANGED
@@ -23,10 +23,10 @@ module TRP
|
|
23
23
|
class ReleaseContextRequest < ::ProtocolBuffers::Message; end
|
24
24
|
class CounterItemRequest < ::ProtocolBuffers::Message; end
|
25
25
|
class CounterItemResponse < ::ProtocolBuffers::Message; end
|
26
|
+
class BulkCounterItemRequest < ::ProtocolBuffers::Message; end
|
27
|
+
class BulkCounterItemResponse < ::ProtocolBuffers::Message; end
|
26
28
|
class CounterGroupRequest < ::ProtocolBuffers::Message; end
|
27
29
|
class CounterGroupResponse < ::ProtocolBuffers::Message; end
|
28
|
-
class ControlledCounterGroupRequest < ::ProtocolBuffers::Message; end
|
29
|
-
class ControlledCounterGroupResponse < ::ProtocolBuffers::Message; end
|
30
30
|
class FilteredDatagramRequest < ::ProtocolBuffers::Message; end
|
31
31
|
class FilteredDatagramResponse < ::ProtocolBuffers::Message; end
|
32
32
|
class ControlledContextRequest < ::ProtocolBuffers::Message; end
|
@@ -37,8 +37,6 @@ module TRP
|
|
37
37
|
class CounterGroupInfoResponse < ::ProtocolBuffers::Message; end
|
38
38
|
class SessionItemRequest < ::ProtocolBuffers::Message; end
|
39
39
|
class SessionItemResponse < ::ProtocolBuffers::Message; end
|
40
|
-
class BulkCounterItemRequest < ::ProtocolBuffers::Message; end
|
41
|
-
class BulkCounterItemResponse < ::ProtocolBuffers::Message; end
|
42
40
|
class TopperSnapshotRequest < ::ProtocolBuffers::Message; end
|
43
41
|
class TopperSnapshotResponse < ::ProtocolBuffers::Message; end
|
44
42
|
class UpdateKeyRequest < ::ProtocolBuffers::Message; end
|
@@ -156,6 +154,7 @@ module TRP
|
|
156
154
|
required :string, :name, 2
|
157
155
|
optional :int64, :bucket_size, 3
|
158
156
|
optional ::TRP::TimeInterval, :time_interval, 4
|
157
|
+
optional :int64, :topper_bucket_size, 5
|
159
158
|
|
160
159
|
gen_methods! # new fields ignored after this point
|
161
160
|
end
|
@@ -230,8 +229,6 @@ module TRP
|
|
230
229
|
optional ::TRP::CounterItemRequest, :counter_item_request, 8
|
231
230
|
optional ::TRP::CounterItemResponse, :counter_item_response, 9
|
232
231
|
optional ::TRP::ReleaseContextRequest, :release_context_request, 11
|
233
|
-
optional ::TRP::ControlledCounterGroupRequest, :controlled_counter_group_request, 12
|
234
|
-
optional ::TRP::ControlledCounterGroupResponse, :controlled_counter_group_response, 13
|
235
232
|
optional ::TRP::FilteredDatagramRequest, :filtered_datagram_request, 14
|
236
233
|
optional ::TRP::FilteredDatagramResponse, :filtered_datagram_response, 15
|
237
234
|
optional ::TRP::ControlledContextRequest, :controlled_context_request, 16
|
@@ -326,6 +323,22 @@ module TRP
|
|
326
323
|
gen_methods! # new fields ignored after this point
|
327
324
|
end
|
328
325
|
|
326
|
+
class BulkCounterItemRequest < ::ProtocolBuffers::Message
|
327
|
+
optional :int64, :context, 1, :default => 0
|
328
|
+
required :string, :counter_group, 2
|
329
|
+
required :int64, :meter, 3
|
330
|
+
required ::TRP::TimeInterval, :time_interval, 4
|
331
|
+
repeated :string, :keys, 5
|
332
|
+
|
333
|
+
gen_methods! # new fields ignored after this point
|
334
|
+
end
|
335
|
+
|
336
|
+
class BulkCounterItemResponse < ::ProtocolBuffers::Message
|
337
|
+
repeated ::TRP::KeyStats, :stats, 1
|
338
|
+
|
339
|
+
gen_methods! # new fields ignored after this point
|
340
|
+
end
|
341
|
+
|
329
342
|
class CounterGroupRequest < ::ProtocolBuffers::Message
|
330
343
|
optional :int64, :context, 1, :default => 0
|
331
344
|
required :string, :counter_group, 2
|
@@ -347,26 +360,6 @@ module TRP
|
|
347
360
|
gen_methods! # new fields ignored after this point
|
348
361
|
end
|
349
362
|
|
350
|
-
class ControlledCounterGroupRequest < ::ProtocolBuffers::Message
|
351
|
-
required :string, :dynamic_group_id, 1
|
352
|
-
required :string, :counter_group, 2
|
353
|
-
required :int64, :meter, 3
|
354
|
-
required :int64, :maxitems, 4
|
355
|
-
required :int64, :bucket_ms, 5
|
356
|
-
required :int64, :top_nsize, 6
|
357
|
-
required ::TRP::TimeInterval, :time_interval, 7
|
358
|
-
required :string, :control_counter_id, 9
|
359
|
-
required :string, :control_key, 10
|
360
|
-
|
361
|
-
gen_methods! # new fields ignored after this point
|
362
|
-
end
|
363
|
-
|
364
|
-
class ControlledCounterGroupResponse < ::ProtocolBuffers::Message
|
365
|
-
required :string, :dynamic_group_id, 1
|
366
|
-
|
367
|
-
gen_methods! # new fields ignored after this point
|
368
|
-
end
|
369
|
-
|
370
363
|
class FilteredDatagramRequest < ::ProtocolBuffers::Message
|
371
364
|
# forward declarations
|
372
365
|
class ByFilterExpr < ::ProtocolBuffers::Message; end
|
@@ -509,23 +502,6 @@ module TRP
|
|
509
502
|
gen_methods! # new fields ignored after this point
|
510
503
|
end
|
511
504
|
|
512
|
-
class BulkCounterItemRequest < ::ProtocolBuffers::Message
|
513
|
-
optional :int64, :context, 1, :default => 0
|
514
|
-
required :string, :counter_group, 2
|
515
|
-
required :int64, :meter, 3
|
516
|
-
required ::TRP::TimeInterval, :time_interval, 4
|
517
|
-
repeated :string, :keys, 5
|
518
|
-
|
519
|
-
gen_methods! # new fields ignored after this point
|
520
|
-
end
|
521
|
-
|
522
|
-
class BulkCounterItemResponse < ::ProtocolBuffers::Message
|
523
|
-
repeated ::TRP::KeyStats, :stats, 1
|
524
|
-
repeated ::TRP::KeyDetails, :details, 2
|
525
|
-
|
526
|
-
gen_methods! # new fields ignored after this point
|
527
|
-
end
|
528
|
-
|
529
505
|
class TopperSnapshotRequest < ::ProtocolBuffers::Message
|
530
506
|
optional :int64, :context, 1, :default => 0
|
531
507
|
required :string, :counter_group, 2
|
data/lib/trisulrp/trp.proto
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
// Trisul Remote Protocol (TRP) definition
|
2
2
|
// Based on Google Protocol Buffers
|
3
3
|
// (c) 2010-11, Unleash Networks (http://www.unleashnetworks.com)
|
4
|
-
// $Rev:
|
4
|
+
// $Rev: 4886 $
|
5
5
|
package TRP;
|
6
6
|
|
7
7
|
message Timestamp {
|
@@ -57,6 +57,7 @@ message CounterGroupDetails {
|
|
57
57
|
required string name=2;
|
58
58
|
optional int64 bucket_size=3;
|
59
59
|
optional TimeInterval time_interval=4;
|
60
|
+
optional int64 topper_bucket_size=5;
|
60
61
|
}
|
61
62
|
|
62
63
|
enum AuthLevel {
|
@@ -141,8 +142,6 @@ message Message {
|
|
141
142
|
optional CounterItemRequest counter_item_request=8;
|
142
143
|
optional CounterItemResponse counter_item_response=9;
|
143
144
|
optional ReleaseContextRequest release_context_request=11;
|
144
|
-
optional ControlledCounterGroupRequest controlled_counter_group_request=12;
|
145
|
-
optional ControlledCounterGroupResponse controlled_counter_group_response=13;
|
146
145
|
optional FilteredDatagramRequest filtered_datagram_request=14;
|
147
146
|
optional FilteredDatagramResponse filtered_datagram_response=15;
|
148
147
|
optional ControlledContextRequest controlled_context_request=16;
|
@@ -231,6 +230,23 @@ message CounterItemResponse{
|
|
231
230
|
required KeyStats stats=1;
|
232
231
|
}
|
233
232
|
|
233
|
+
|
234
|
+
//////////////////////////////////////////
|
235
|
+
// BulkCounterItemRequest
|
236
|
+
message BulkCounterItemRequest{
|
237
|
+
optional int64 context=1[default=0];
|
238
|
+
required string counter_group=2;
|
239
|
+
required int64 meter=3;
|
240
|
+
required TimeInterval time_interval=4;
|
241
|
+
repeated string keys=5;
|
242
|
+
}
|
243
|
+
|
244
|
+
//////////////////////////////////////////
|
245
|
+
// BulkCounterItemResponse
|
246
|
+
message BulkCounterItemResponse{
|
247
|
+
repeated KeyStats stats=1;
|
248
|
+
}
|
249
|
+
|
234
250
|
///////////////////////////////
|
235
251
|
// CounterGroupRequest
|
236
252
|
message CounterGroupRequest{
|
@@ -244,7 +260,7 @@ message CounterGroupRequest{
|
|
244
260
|
}
|
245
261
|
|
246
262
|
///////////////////////////////
|
247
|
-
//
|
263
|
+
// CounterGroupResponse
|
248
264
|
message CounterGroupResponse{
|
249
265
|
required int64 context=1;
|
250
266
|
required string counter_group=2;
|
@@ -252,22 +268,6 @@ message CounterGroupResponse{
|
|
252
268
|
repeated KeyDetails keys=6;
|
253
269
|
}
|
254
270
|
|
255
|
-
message ControlledCounterGroupRequest{
|
256
|
-
required string dynamic_group_id=1;
|
257
|
-
required string counter_group=2;
|
258
|
-
required int64 meter=3;
|
259
|
-
required int64 maxitems=4;
|
260
|
-
required int64 bucket_ms=5;
|
261
|
-
required int64 top_nsize=6;
|
262
|
-
required TimeInterval time_interval=7;
|
263
|
-
required string control_counter_id=9;
|
264
|
-
required string control_key=10;
|
265
|
-
}
|
266
|
-
|
267
|
-
message ControlledCounterGroupResponse{
|
268
|
-
required string dynamic_group_id=1;
|
269
|
-
}
|
270
|
-
|
271
271
|
|
272
272
|
///////////////////////////////
|
273
273
|
// FilteredDatagramRequest
|
@@ -395,24 +395,6 @@ message SessionItemResponse{
|
|
395
395
|
|
396
396
|
repeated Item items=3;
|
397
397
|
}
|
398
|
-
|
399
|
-
//////////////////////////////////////////
|
400
|
-
// BulkCounterItemRequest
|
401
|
-
message BulkCounterItemRequest{
|
402
|
-
optional int64 context=1[default=0];
|
403
|
-
required string counter_group=2;
|
404
|
-
required int64 meter=3;
|
405
|
-
required TimeInterval time_interval=4;
|
406
|
-
repeated string keys=5;
|
407
|
-
}
|
408
|
-
|
409
|
-
//////////////////////////////////////////
|
410
|
-
// BulkCounterItemResponse
|
411
|
-
message BulkCounterItemResponse{
|
412
|
-
repeated KeyStats stats=1;
|
413
|
-
repeated KeyDetails details=2;
|
414
|
-
}
|
415
|
-
|
416
398
|
///////////////////////////////////////////
|
417
399
|
/// TopperSnapshotRequest
|
418
400
|
message TopperSnapshotRequest{
|
data/trisulrp.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{trisulrp}
|
8
|
-
s.version = "1.4.
|
8
|
+
s.version = "1.4.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["vivek"]
|
12
|
-
s.date = %q{2012-
|
12
|
+
s.date = %q{2012-04-28}
|
13
13
|
s.description = %q{This gem deals about the trisul remote protocol}
|
14
14
|
s.email = %q{vivek_rajagopal@yahoo.com}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 4
|
8
|
-
-
|
9
|
-
version: 1.4.
|
8
|
+
- 3
|
9
|
+
version: 1.4.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- vivek
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2012-
|
17
|
+
date: 2012-04-28 00:00:00 +05:30
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -152,7 +152,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
152
152
|
requirements:
|
153
153
|
- - ">="
|
154
154
|
- !ruby/object:Gem::Version
|
155
|
-
hash:
|
155
|
+
hash: 880184751
|
156
156
|
segments:
|
157
157
|
- 0
|
158
158
|
version: "0"
|