concord-ruby 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: feff77e93f1272456deb69992dc11ebd04eb6d8c
4
- data.tar.gz: 78c442b74aa2f231781ec5c68d4a597a758ee17c
3
+ metadata.gz: 0b437a291ce8aec41a98c8ee0a31d46c4b185b49
4
+ data.tar.gz: b964068df274fabaf1fd044d9b702767c37247ec
5
5
  SHA512:
6
- metadata.gz: a552875d4d18d94fe3dd308334b8f863852b34e9b6d1cc2e634c08944d3229287166705c69b476e6b4f1fc6e7d626ba822f55885ba0eed36900010bf40c3642d
7
- data.tar.gz: ba85e73e1da3e783640f16e56e23e2a38b93aafbd978beabd348fbcf5ec12716cd6cf684b57c80bce99bb19d5c06bb683151543a773e4f7e1a6ab77f807f831c
6
+ metadata.gz: 94c0c245987aa35ffe09bee4e51e15bfaec04e990c7f6613daf1308b8b1839030aee7a77fcebde4100fbdfab63832d2d35f08168a7b125c32d4c2d761006fdf7
7
+ data.tar.gz: 4027c8f1eaedc073941dfd565154ece33a4e0b28678a12341213c1c1d04d60976cc0af384a4d690139d343f674178258bf30797728ec3f3bad76c0418d5692ac
@@ -29,8 +29,12 @@ module Concord
29
29
 
30
30
  KDefaultTraceSampleEveryN = 1024
31
31
 
32
+ KPrincipalComputationName = %q"principal_computation"
33
+
32
34
  KIncomingMessageQueueTopic = %q"incoming"
33
35
 
36
+ KPrincipalTimerQueueTopic = %q"principal_timers"
37
+
34
38
  KOutgoingMessageQueueTopic = %q"outgoing"
35
39
 
36
40
  KQueueStreamNameToIdMapTopic = %q"stream_map"
@@ -190,7 +190,7 @@ module Concord
190
190
  FIELDS = {
191
191
  TASKID => {:type => ::Thrift::Types::STRING, :name => 'taskId'},
192
192
  SLAVEID => {:type => ::Thrift::Types::STRING, :name => 'slaveId'},
193
- CPUS => {:type => ::Thrift::Types::I32, :name => 'cpus'},
193
+ CPUS => {:type => ::Thrift::Types::DOUBLE, :name => 'cpus'},
194
194
  MEM => {:type => ::Thrift::Types::I32, :name => 'mem'},
195
195
  DISK => {:type => ::Thrift::Types::I32, :name => 'disk'},
196
196
  TASKHELPER => {:type => ::Thrift::Types::STRUCT, :name => 'taskHelper', :class => ::Concord::Thrift::ExecutorTaskInfoHelper},
@@ -367,7 +367,7 @@ module Concord
367
367
  FIELDS = {
368
368
  NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
369
369
  INSTANCES => {:type => ::Thrift::Types::I64, :name => 'instances', :default => 1},
370
- CPUS => {:type => ::Thrift::Types::I64, :name => 'cpus', :default => 1},
370
+ CPUS => {:type => ::Thrift::Types::DOUBLE, :name => 'cpus', :default => 0.1},
371
371
  MEM => {:type => ::Thrift::Types::I64, :name => 'mem', :default => 2048},
372
372
  DISK => {:type => ::Thrift::Types::I64, :name => 'disk', :default => 10240},
373
373
  TASKHELPER => {:type => ::Thrift::Types::STRUCT, :name => 'taskHelper', :class => ::Concord::Thrift::ExecutorTaskInfoHelper},
@@ -0,0 +1,89 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.9.2)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'thrift'
8
+ require 'computation_service'
9
+ require 'bolt_types'
10
+
11
+ module Concord
12
+ module Thrift
13
+ module ComputationTestService
14
+ class Client < ::Concord::Thrift::ComputationService::Client
15
+ include ::Thrift::Client
16
+
17
+ def boltMetrics()
18
+ send_boltMetrics()
19
+ return recv_boltMetrics()
20
+ end
21
+
22
+ def send_boltMetrics()
23
+ send_message('boltMetrics', BoltMetrics_args)
24
+ end
25
+
26
+ def recv_boltMetrics()
27
+ result = receive_message(BoltMetrics_result)
28
+ return result.success unless result.success.nil?
29
+ raise result.e unless result.e.nil?
30
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'boltMetrics failed: unknown result')
31
+ end
32
+
33
+ end
34
+
35
+ class Processor < ::Concord::Thrift::ComputationService::Processor
36
+ include ::Thrift::Processor
37
+
38
+ def process_boltMetrics(seqid, iprot, oprot)
39
+ args = read_args(iprot, BoltMetrics_args)
40
+ result = BoltMetrics_result.new()
41
+ begin
42
+ result.success = @handler.boltMetrics()
43
+ rescue ::Concord::Thrift::BoltError => e
44
+ result.e = e
45
+ end
46
+ write_result(result, oprot, 'boltMetrics', seqid)
47
+ end
48
+
49
+ end
50
+
51
+ # HELPER FUNCTIONS AND STRUCTURES
52
+
53
+ class BoltMetrics_args
54
+ include ::Thrift::Struct, ::Thrift::Struct_Union
55
+
56
+ FIELDS = {
57
+
58
+ }
59
+
60
+ def struct_fields; FIELDS; end
61
+
62
+ def validate
63
+ end
64
+
65
+ ::Thrift::Struct.generate_accessors self
66
+ end
67
+
68
+ class BoltMetrics_result
69
+ include ::Thrift::Struct, ::Thrift::Struct_Union
70
+ SUCCESS = 0
71
+ E = 1
72
+
73
+ FIELDS = {
74
+ SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}},
75
+ E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => ::Concord::Thrift::BoltError}
76
+ }
77
+
78
+ def struct_fields; FIELDS; end
79
+
80
+ def validate
81
+ end
82
+
83
+ ::Thrift::Struct.generate_accessors self
84
+ end
85
+
86
+ end
87
+
88
+ end
89
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: concord-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cole Brown
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-28 00:00:00.000000000 Z
11
+ date: 2015-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thrift
@@ -46,6 +46,7 @@ extra_rdoc_files: []
46
46
  files:
47
47
  - lib/concord.rb
48
48
  - lib/gen-rb/mutable_ephemeral_state_service.rb
49
+ - lib/gen-rb/computation_test_service.rb
49
50
  - lib/gen-rb/bolt_types.rb
50
51
  - lib/gen-rb/bolt_metrics_service.rb
51
52
  - lib/gen-rb/computation_service.rb