concord-ruby 0.0.8 → 0.1.1
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.rb +13 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28d13af79fb9f866346d31dd65a993fa0db1a587
|
4
|
+
data.tar.gz: 3ecfd5c19254508aa5309ad5bef06ddb2c304bdf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4164729ea1a09e15d8547fccefc318abd580a2e37751725f5289a97c1c38b5340c7014c3309c40974a822fee045eedf3cce7b90da0cb5bb8931f786ea516f9c2
|
7
|
+
data.tar.gz: 744a6649466359529f3a2b9ad7914cef7071b6d923859d6b315c1a73dd4d55d5463d5fd86f52a49288a24656bfb00a3a11aa837bed06f4fb02c0416538524afc
|
data/lib/concord.rb
CHANGED
@@ -55,7 +55,8 @@ module Concord
|
|
55
55
|
# Set a timer to trigger a callback in the future
|
56
56
|
# @param key [String] Name of the timer. This parameter will be passed to
|
57
57
|
# the `process_timer` callback to identify the specific callback.
|
58
|
-
# @param time [FixNum] Integer representing the time (in milliseconds) at
|
58
|
+
# @param time [FixNum] Integer representing the time (in milliseconds) at
|
59
|
+
# which the callback should be triggered.
|
59
60
|
def set_timer(key, time)
|
60
61
|
transaction.timers[key] = time
|
61
62
|
end
|
@@ -87,7 +88,12 @@ module Concord
|
|
87
88
|
self.handler = handler
|
88
89
|
self.proxy_host = proxy_host
|
89
90
|
self.proxy_port = proxy_port
|
90
|
-
|
91
|
+
end
|
92
|
+
|
93
|
+
def register_with_scheduler
|
94
|
+
log_failure do
|
95
|
+
proxy.registerWithScheduler(boltMetadata)
|
96
|
+
end
|
91
97
|
end
|
92
98
|
|
93
99
|
# Initialize a new `Computation` and start serving it. This is the only
|
@@ -111,7 +117,11 @@ module Concord
|
|
111
117
|
transport,
|
112
118
|
transport_factory,
|
113
119
|
protocol_factory)
|
114
|
-
|
120
|
+
t = Thread.new{
|
121
|
+
server.serve
|
122
|
+
}
|
123
|
+
handler.register_with_scheduler
|
124
|
+
t.join
|
115
125
|
end
|
116
126
|
|
117
127
|
# Process an upstream record. Wraps the user method in a transaction, which
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: concord-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cole Brown
|
@@ -14,14 +14,14 @@ dependencies:
|
|
14
14
|
name: thrift
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 0.9.2.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 0.9.2.0
|
27
27
|
- !ruby/object:Gem::Dependency
|