concord-ruby 0.3.2 → 0.3.3
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 +4 -4
- data/lib/concord/utils.rb +14 -10
- data/lib/gen-rb/bolt_types.rb +9 -9
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e7be455a57f15accde1a18989a56c98769ee2ca
|
4
|
+
data.tar.gz: 1f4cc143addc4f0185d2a6ce8fd32a122226f669
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31a0d17295920ed67db1a94d6da2a70cc68ad50330f205121b86a7a2a36dc374e07647669cc4b17f9828114a303954f2b11352dcb9f10435229ffee26c5129a6
|
7
|
+
data.tar.gz: 1c2188175a7ab071cc09f3f11ac4032437495a9c552cf18fa778417eda4ff627220fd5a69abc2bcd2e099e635e642434a00183bba6c8f412e4f33f630830c1bb
|
data/lib/concord/utils.rb
CHANGED
@@ -1,13 +1,17 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
extend self
|
1
|
+
# Some helper functions useful in client computations
|
2
|
+
module Concord::Utils
|
3
|
+
extend self
|
5
4
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
end
|
5
|
+
# Get the time in milliseconds
|
6
|
+
# @param t [Time] The time to convert to milliseconds
|
7
|
+
def time_millis(t = Time.now)
|
8
|
+
(t.to_f * 1000.0).to_i
|
11
9
|
end
|
12
|
-
end
|
13
10
|
|
11
|
+
# Log message to stderr
|
12
|
+
# @param str [String] The message to print to stderr
|
13
|
+
def log_to_stderr(str)
|
14
|
+
$stderr.puts str
|
15
|
+
$stderr.flush
|
16
|
+
end
|
17
|
+
end
|
data/lib/gen-rb/bolt_types.rb
CHANGED
@@ -136,13 +136,12 @@ module Concord
|
|
136
136
|
SCHEDULER = 4
|
137
137
|
PROXY = 5
|
138
138
|
CLIENT = 6
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
DOCKERCONTAINER = 13
|
139
|
+
EXECNAME = 7
|
140
|
+
FOLDER = 8
|
141
|
+
COMPUTATIONALIASNAME = 9
|
142
|
+
CLIENTARGUMENTS = 10
|
143
|
+
ENVIRONMENTEXTRA = 11
|
144
|
+
DOCKERCONTAINER = 12
|
146
145
|
|
147
146
|
FIELDS = {
|
148
147
|
FRAMEWORKLOGGINGLEVEL => {:type => ::Thrift::Types::I32, :name => 'frameworkLoggingLevel', :default => 1},
|
@@ -151,7 +150,6 @@ module Concord
|
|
151
150
|
SCHEDULER => {:type => ::Thrift::Types::STRUCT, :name => 'scheduler', :class => ::Concord::Thrift::Endpoint},
|
152
151
|
PROXY => {:type => ::Thrift::Types::STRUCT, :name => 'proxy', :class => ::Concord::Thrift::Endpoint},
|
153
152
|
CLIENT => {:type => ::Thrift::Types::STRUCT, :name => 'client', :class => ::Concord::Thrift::Endpoint},
|
154
|
-
TRACEAGGREGATOR => {:type => ::Thrift::Types::STRUCT, :name => 'traceAggregator', :class => ::Concord::Thrift::Endpoint},
|
155
153
|
EXECNAME => {:type => ::Thrift::Types::STRING, :name => 'execName'},
|
156
154
|
FOLDER => {:type => ::Thrift::Types::STRING, :name => 'folder'},
|
157
155
|
COMPUTATIONALIASNAME => {:type => ::Thrift::Types::STRING, :name => 'computationAliasName'},
|
@@ -241,11 +239,13 @@ module Concord
|
|
241
239
|
VERSION = 1
|
242
240
|
COMPUTATIONS = 2
|
243
241
|
FRAMEWORKID = 3
|
242
|
+
KAFKABROKERLIST = 4
|
244
243
|
|
245
244
|
FIELDS = {
|
246
245
|
VERSION => {:type => ::Thrift::Types::I32, :name => 'version', :default => 0},
|
247
246
|
COMPUTATIONS => {:type => ::Thrift::Types::MAP, :name => 'computations', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRUCT, :class => ::Concord::Thrift::PhysicalComputationLayout}},
|
248
|
-
FRAMEWORKID => {:type => ::Thrift::Types::STRING, :name => 'frameworkID'}
|
247
|
+
FRAMEWORKID => {:type => ::Thrift::Types::STRING, :name => 'frameworkID'},
|
248
|
+
KAFKABROKERLIST => {:type => ::Thrift::Types::STRING, :name => 'kafkaBrokerList'}
|
249
249
|
}
|
250
250
|
|
251
251
|
def struct_fields; FIELDS; end
|
metadata
CHANGED
@@ -1,15 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: concord-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cole Brown
|
8
8
|
- Alex Gallego
|
9
|
+
- Rob Blafford
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
|
-
date: 2015-
|
13
|
+
date: 2015-11-16 00:00:00.000000000 Z
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: thrift
|