Class: Sqlfire::Node
- Inherits:
-
Shared::GroupableNode
- Object
- Shared::Resource
- Shared::Node
- Shared::GroupableNode
- Sqlfire::Node
- Defined in:
- lib/vas/sqlfire/nodes.rb
Overview
A GemFire node
Instance Attribute Summary collapse
-
#java_home ⇒ String
readonly
The Node’s Java home.
Attributes inherited from Shared::Node
#agent_home, #architecture, #host_names, #ip_addresses, #ipv4_addresses, #ipv6_addresses, #metadata, #operating_system
Attributes inherited from Shared::Resource
Instance Method Summary collapse
-
#agent_instances ⇒ AgentNodeInstances
The node’s agent instances.
-
#initialize(location, client) ⇒ Node
constructor
A new instance of Node.
-
#locator_instances ⇒ LocatorNodeInstances
The node’s locator instances.
-
#reload ⇒ void
Reloads the node’s details from the server.
-
#server_instances ⇒ ServerNodeInstances
The node’s server instances.
-
#to_s ⇒ String
A string representation of the node.
Methods inherited from Shared::GroupableNode
Methods inherited from Shared::Node
Constructor Details
#initialize(location, client) ⇒ Node
Returns a new instance of Node.
36 37 38 39 40 41 42 |
# File 'lib/vas/sqlfire/nodes.rb', line 36 def initialize(location, client) super(location, client, Group) @agent_instances_location = Util::LinkUtils.get_link_href(details, 'agent-node-instances') @locator_instances_location = Util::LinkUtils.get_link_href(details, 'locator-node-instances') @server_instances_location = Util::LinkUtils.get_link_href(details, 'server-node-instances') end |
Instance Attribute Details
#java_home ⇒ String (readonly)
Returns the Node’s Java home.
33 34 35 |
# File 'lib/vas/sqlfire/nodes.rb', line 33 def java_home @java_home end |
Instance Method Details
#agent_instances ⇒ AgentNodeInstances
Returns the node’s agent instances.
52 53 54 |
# File 'lib/vas/sqlfire/nodes.rb', line 52 def agent_instances @agent_instances ||= AgentNodeInstances.new(@agent_instances_location, client) end |
#locator_instances ⇒ LocatorNodeInstances
Returns the node’s locator instances.
57 58 59 |
# File 'lib/vas/sqlfire/nodes.rb', line 57 def locator_instances @locator_instances ||= LocatorNodeInstances.new(@locator_instances_location, client) end |
#reload ⇒ void
This method returns an undefined value.
Reloads the node’s details from the server
46 47 48 49 |
# File 'lib/vas/sqlfire/nodes.rb', line 46 def reload super @java_home = details['java-home'] end |
#server_instances ⇒ ServerNodeInstances
Returns the node’s server instances.
62 63 64 |
# File 'lib/vas/sqlfire/nodes.rb', line 62 def server_instances @server_instances ||= ServerNodeInstances.new(@server_instances_location, client) end |
#to_s ⇒ String
Returns a string representation of the node.
67 68 69 |
# File 'lib/vas/sqlfire/nodes.rb', line 67 def to_s "#<#{self.class} host_names='#{host_names}' ip_addresses='#{ip_addresses}' ipv4_addresses='#{ipv4_addresses}' ipv6_addresses='#{ipv6_addresses}' operating_system='#{}' architecture='#{architecture}' agent_home='#{agent_home}' java_home='#@java_home' metadata='#{}'>" end |