Class: LS4::ReadOnlyGatewayService
Instance Method Summary
collapse
-
#initialize ⇒ ReadOnlyGatewayService
constructor
A new instance of ReadOnlyGatewayService.
-
#rpc_add(key, data, attrs) ⇒ Object
-
#rpc_add_data(key, data) ⇒ Object
-
#rpc_addv(vname, key, data, attrs) ⇒ Object
-
#rpc_addv_data(vname, key, attrs) ⇒ Object
-
#rpc_delete(key) ⇒ Object
-
#rpc_deletet(vtime, key) ⇒ Object
-
#rpc_deletev(vname, key) ⇒ Object
-
#rpc_get_attrs_impl(version, key) ⇒ Object
-
#rpc_get_data_impl(version, key) ⇒ Object
-
#rpc_get_impl(version, key) ⇒ Object
-
#rpc_read_impl(version, key, offset, size) ⇒ Object
-
#rpc_remove(key) ⇒ Object
-
#rpc_update_attrs(key, attrs) ⇒ Object
-
#rpc_url_impl(version, key) ⇒ Object
#rpc_add_impl, #rpc_delete_impl, #rpc_get, #rpc_get_attrs, #rpc_get_data, #rpc_getd_data, #rpc_gett, #rpc_gett_attrs, #rpc_gett_data, #rpc_getv, #rpc_getv_attrs, #rpc_getv_data, #rpc_read, #rpc_readd, #rpc_readt, #rpc_readv, #rpc_url, #rpc_urlt, #rpc_urlv, #rpc_util_locate
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
Constructor Details
Returns a new instance of ReadOnlyGatewayService.
22
23
24
|
# File 'lib/ls4/service/gateway_ro.rb', line 22
def initialize
@rover = ConfigBus.read_only_version
end
|
Instance Method Details
#rpc_add(key, data, attrs) ⇒ Object
42
43
44
|
# File 'lib/ls4/service/gateway_ro.rb', line 42
def rpc_add(key, data, attrs)
raise_read_only_error
end
|
#rpc_add_data(key, data) ⇒ Object
46
47
48
|
# File 'lib/ls4/service/gateway_ro.rb', line 46
def rpc_add_data(key, data)
raise_read_only_error
end
|
#rpc_addv(vname, key, data, attrs) ⇒ Object
50
51
52
|
# File 'lib/ls4/service/gateway_ro.rb', line 50
def rpc_addv(vname, key, data, attrs)
raise_read_only_error
end
|
#rpc_addv_data(vname, key, attrs) ⇒ Object
54
55
56
|
# File 'lib/ls4/service/gateway_ro.rb', line 54
def rpc_addv_data(vname, key, attrs)
raise_read_only_error
end
|
#rpc_delete(key) ⇒ Object
62
63
64
|
# File 'lib/ls4/service/gateway_ro.rb', line 62
def rpc_delete(key)
raise_read_only_error
end
|
#rpc_deletet(vtime, key) ⇒ Object
66
67
68
|
# File 'lib/ls4/service/gateway_ro.rb', line 66
def rpc_deletet(vtime, key)
raise_read_only_error
end
|
#rpc_deletev(vname, key) ⇒ Object
70
71
72
|
# File 'lib/ls4/service/gateway_ro.rb', line 70
def rpc_deletev(vname, key)
raise_read_only_error
end
|
#rpc_get_attrs_impl(version, key) ⇒ Object
34
35
36
|
# File 'lib/ls4/service/gateway_ro.rb', line 34
def rpc_get_attrs_impl(version, key)
super(version||@rover, key)
end
|
#rpc_get_data_impl(version, key) ⇒ Object
30
31
32
|
# File 'lib/ls4/service/gateway_ro.rb', line 30
def rpc_get_data_impl(version, key)
super(version||@rover, key)
end
|
#rpc_get_impl(version, key) ⇒ Object
26
27
28
|
# File 'lib/ls4/service/gateway_ro.rb', line 26
def rpc_get_impl(version, key)
super(version||@rover, key)
end
|
#rpc_read_impl(version, key, offset, size) ⇒ Object
38
39
40
|
# File 'lib/ls4/service/gateway_ro.rb', line 38
def rpc_read_impl(version, key, offset, size)
super(version||@rover, key, offset, size)
end
|
#rpc_remove(key) ⇒ Object
74
75
76
|
# File 'lib/ls4/service/gateway_ro.rb', line 74
def rpc_remove(key)
raise_read_only_error
end
|
#rpc_update_attrs(key, attrs) ⇒ Object
58
59
60
|
# File 'lib/ls4/service/gateway_ro.rb', line 58
def rpc_update_attrs(key, attrs)
raise_read_only_error
end
|
#rpc_url_impl(version, key) ⇒ Object
78
79
80
|
# File 'lib/ls4/service/gateway_ro.rb', line 78
def rpc_url_impl(version, key)
super(version||@rover, key)
end
|