rsmp 0.11.4 → 0.11.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rsmp/proxy.rb +7 -10
- data/lib/rsmp/site_proxy.rb +1 -1
- data/lib/rsmp/supervisor_proxy.rb +1 -5
- data/lib/rsmp/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e36c6f5f96850c9ad1a07ab856efc1e094deafee596074a611a08a2535f57ec
|
4
|
+
data.tar.gz: efedbe0726d80f1fff7e3d37fa171fa1afe1df1705cf50e142eee0667c6e8dff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f4362c8689573a0c7ce8e91ea079c0ce06a6b8d73bc27ce964d781dd64ee53b92c271a7ba41f31e89af62475adf341ae2a5b6682418758d3558930e72c037d3
|
7
|
+
data.tar.gz: 9f595995ec7247fdfb2e782e235c83adb475b1db85c8834aa434a42b5bc5e1ca6f4ae8e71233473bcee21b7c722b8f5a4862a8531098f793f629e7832b0eda3c
|
data/Gemfile.lock
CHANGED
data/lib/rsmp/proxy.rb
CHANGED
@@ -13,9 +13,10 @@ module RSMP
|
|
13
13
|
include Inspect
|
14
14
|
include Task
|
15
15
|
|
16
|
-
attr_reader :state, :archive, :connection_info, :sxl, :collector, :ip, :port
|
16
|
+
attr_reader :state, :archive, :connection_info, :sxl, :collector, :ip, :port, :node
|
17
17
|
|
18
18
|
def initialize options
|
19
|
+
@node = options[:node]
|
19
20
|
initialize_logging options
|
20
21
|
initialize_distributor
|
21
22
|
initialize_task
|
@@ -120,7 +121,7 @@ module RSMP
|
|
120
121
|
end
|
121
122
|
|
122
123
|
def clock
|
123
|
-
node.clock
|
124
|
+
@node.clock
|
124
125
|
end
|
125
126
|
|
126
127
|
def ready?
|
@@ -203,7 +204,7 @@ module RSMP
|
|
203
204
|
end
|
204
205
|
|
205
206
|
def notify_error e, options={}
|
206
|
-
node.notify_error e, options
|
207
|
+
@node.notify_error e, options
|
207
208
|
end
|
208
209
|
|
209
210
|
def start_watchdog
|
@@ -369,7 +370,7 @@ module RSMP
|
|
369
370
|
end
|
370
371
|
|
371
372
|
def process_deferred
|
372
|
-
node.process_deferred
|
373
|
+
@node.process_deferred
|
373
374
|
end
|
374
375
|
|
375
376
|
def verify_sequence message
|
@@ -419,7 +420,7 @@ module RSMP
|
|
419
420
|
close
|
420
421
|
message
|
421
422
|
ensure
|
422
|
-
node.clear_deferred
|
423
|
+
@node.clear_deferred
|
423
424
|
end
|
424
425
|
|
425
426
|
def process_message message
|
@@ -620,12 +621,8 @@ module RSMP
|
|
620
621
|
def version_acknowledged
|
621
622
|
end
|
622
623
|
|
623
|
-
def node
|
624
|
-
raise 'Must be overridden'
|
625
|
-
end
|
626
|
-
|
627
624
|
def author
|
628
|
-
node.site_id
|
625
|
+
@node.site_id
|
629
626
|
end
|
630
627
|
|
631
628
|
def send_and_optionally_collect message, options, &block
|
data/lib/rsmp/site_proxy.rb
CHANGED
@@ -8,7 +8,7 @@ module RSMP
|
|
8
8
|
attr_reader :supervisor_id, :site
|
9
9
|
|
10
10
|
def initialize options
|
11
|
-
super options
|
11
|
+
super options.merge(node:options[:site])
|
12
12
|
@site = options[:site]
|
13
13
|
@site_settings = @site.site_settings.clone
|
14
14
|
@ip = options[:ip]
|
@@ -18,10 +18,6 @@ module RSMP
|
|
18
18
|
@synthetic_id = Supervisor.build_id_from_ip_port @ip, @port
|
19
19
|
end
|
20
20
|
|
21
|
-
def node
|
22
|
-
site
|
23
|
-
end
|
24
|
-
|
25
21
|
# handle communication
|
26
22
|
# if disconnected, then try to reconnect
|
27
23
|
def run
|
data/lib/rsmp/version.rb
CHANGED