Class: KillBillClient::Model::NodesInfo
Constant Summary
collapse
- KILLBILL_NODES_INFO_PREFIX =
"#{KILLBILL_API_PREFIX}/nodesInfo"
Constants inherited
from Resource
Resource::KILLBILL_API_PAGINATION_PREFIX, Resource::KILLBILL_API_PREFIX
Instance Attribute Summary
Attributes inherited from Resource
#clazz, #etag, #response, #session_id, #uri
Class Method Summary
collapse
-
.install_plugin(plugin_key, plugin_version = nil, plugin_props = [], local_node_only = false, user = nil, reason = nil, comment = nil, options = {}, timeout_sec = 30, sleep_sec = 1) ⇒ Object
-
.nodes_info(options = {}) ⇒ Object
-
.start_plugin(plugin_key, plugin_version = nil, plugin_props = [], local_node_only = false, user = nil, reason = nil, comment = nil, options = {}, timeout_sec = 15, sleep_sec = 1) ⇒ Object
-
.stop_plugin(plugin_key, plugin_version = nil, plugin_props = [], local_node_only = false, user = nil, reason = nil, comment = nil, options = {}, timeout_sec = 15, sleep_sec = 1) ⇒ Object
-
.trigger_node_command(node_command, local_node_only, user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
-
.uninstall_plugin(plugin_key, plugin_version = nil, plugin_props = [], local_node_only = false, user = nil, reason = nil, comment = nil, options = {}, timeout_sec = 15, sleep_sec = 1) ⇒ Object
Methods inherited from Resource
#==, #_to_hash, attribute, create_alias, delete, extract_session_id, from_json, from_response, get, has_many, has_one, #hash, head, #initialize, instantiate_record_from_json, post, put, #refresh, require_multi_tenant_options!, #to_hash, #to_json
Class Method Details
.install_plugin(plugin_key, plugin_version = nil, plugin_props = [], local_node_only = false, user = nil, reason = nil, comment = nil, options = {}, timeout_sec = 30, sleep_sec = 1) ⇒ Object
35
36
37
38
39
40
|
# File 'lib/killbill_client/models/nodes_info.rb', line 35
def install_plugin(plugin_key, plugin_version=nil, plugin_props=[], local_node_only=false, user = nil, reason = nil, = nil, options = {}, timeout_sec=30, sleep_sec=1)
proc_condition = create_proc_condition_for_wait_for_plugin_command_completion(options, plugin_key, plugin_version, nil)
trigger_node_command_wait_for_plugin_command_completion(:INSTALL_PLUGIN, plugin_key, plugin_version, plugin_props, local_node_only, user, reason, , options, timeout_sec, sleep_sec, &proc_condition)
end
|
.nodes_info(options = {}) ⇒ Object
13
14
15
16
17
|
# File 'lib/killbill_client/models/nodes_info.rb', line 13
def nodes_info(options = {})
get KILLBILL_NODES_INFO_PREFIX,
{},
options
end
|
.start_plugin(plugin_key, plugin_version = nil, plugin_props = [], local_node_only = false, user = nil, reason = nil, comment = nil, options = {}, timeout_sec = 15, sleep_sec = 1) ⇒ Object
20
21
22
23
24
25
|
# File 'lib/killbill_client/models/nodes_info.rb', line 20
def start_plugin(plugin_key, plugin_version=nil, plugin_props=[], local_node_only=false, user = nil, reason = nil, = nil, options = {}, timeout_sec=15, sleep_sec=1)
proc_condition = create_proc_condition_for_wait_for_plugin_command_completion(options, plugin_key, plugin_version, "RUNNING")
trigger_node_command_wait_for_plugin_command_completion(:START_PLUGIN, plugin_key, plugin_version, plugin_props, local_node_only, user, reason, , options, timeout_sec, sleep_sec, &proc_condition)
end
|
.stop_plugin(plugin_key, plugin_version = nil, plugin_props = [], local_node_only = false, user = nil, reason = nil, comment = nil, options = {}, timeout_sec = 15, sleep_sec = 1) ⇒ Object
27
28
29
30
31
32
|
# File 'lib/killbill_client/models/nodes_info.rb', line 27
def stop_plugin(plugin_key, plugin_version=nil, plugin_props=[], local_node_only=false, user = nil, reason = nil, = nil, options = {}, timeout_sec=15, sleep_sec=1)
proc_condition = create_proc_condition_for_wait_for_plugin_command_completion(options, plugin_key, plugin_version, "STOPPED")
trigger_node_command_wait_for_plugin_command_completion(:STOP_PLUGIN, plugin_key, plugin_version, plugin_props, local_node_only, user, reason, , options, timeout_sec, sleep_sec, &proc_condition)
end
|
.trigger_node_command(node_command, local_node_only, user = nil, reason = nil, comment = nil, options = {}) ⇒ Object
51
52
53
54
55
56
57
58
59
60
|
# File 'lib/killbill_client/models/nodes_info.rb', line 51
def trigger_node_command(node_command, local_node_only, user = nil, reason = nil, = nil, options = {})
post KILLBILL_NODES_INFO_PREFIX,
node_command.to_json,
{:localNodeOnly => local_node_only},
{
:user => user,
:reason => reason,
:comment => ,
}.merge(options)
end
|
.uninstall_plugin(plugin_key, plugin_version = nil, plugin_props = [], local_node_only = false, user = nil, reason = nil, comment = nil, options = {}, timeout_sec = 15, sleep_sec = 1) ⇒ Object
42
43
44
45
46
47
48
|
# File 'lib/killbill_client/models/nodes_info.rb', line 42
def uninstall_plugin(plugin_key, plugin_version=nil, plugin_props=[], local_node_only=false, user = nil, reason = nil, = nil, options = {}, timeout_sec=15, sleep_sec=1)
is_negate = true proc_condition = create_proc_condition_for_wait_for_plugin_command_completion(options, plugin_key, plugin_version, nil, is_negate)
trigger_node_command_wait_for_plugin_command_completion(:UNINSTALL_PLUGIN, plugin_key, plugin_version, plugin_props, local_node_only, user, reason, , options, timeout_sec, sleep_sec, &proc_condition)
end
|