Class: LS4::MDSCacheConfigService
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Service
init
#ebus_bind!, #ebus_connect, extended
#ebus_all_slots, #ebus_disconnect!
#connect, #ebus_all_slots, #ebus_call_log, #ebus_call_slots, #ebus_signal_error, #ebus_signal_log, #ebus_signal_slots
#call_slot, #signal_slot
Class Method Details
.hash_uri(uri) ⇒ Object
45
46
47
|
# File 'lib/ls4/service/mds_cache.rb', line 45
def self.hash_uri(uri)
Digest::SHA1.digest(uri)
end
|
Instance Method Details
#rpc_get_mds_cache_uri ⇒ Object
35
36
37
|
# File 'lib/ls4/service/mds_cache.rb', line 35
def rpc_get_mds_cache_uri
@uri
end
|
#rpc_set_mds_cache_uri(uri) ⇒ Object
39
40
41
42
43
|
# File 'lib/ls4/service/mds_cache.rb', line 39
def rpc_set_mds_cache_uri(uri)
@uri = uri
on_change
nil
end
|
#run ⇒ Object
29
30
31
32
33
|
# File 'lib/ls4/service/mds_cache.rb', line 29
def run
@uri = ConfigBus.get_initial_mds_cache_uri
@uri ||= "null"
on_change
end
|