Class: Gemfire::Node
- Inherits:
-
Shared::GroupableNode
- Object
- Shared::Resource
- Shared::Node
- Shared::GroupableNode
- Gemfire::Node
- Defined in:
- lib/vas/gemfire/nodes.rb
Overview
A GemFire node
Instance Attribute Summary collapse
-
#agent_instances ⇒ AgentNodeInstances
readonly
The node’s agent instances.
-
#cache_server_instances ⇒ CacheServerNodeInstances
readonly
The node’s server instances.
-
#java_home ⇒ String
readonly
The Node’s Java home.
-
#locator_instances ⇒ LocatorNodeInstances
readonly
The node’s locator instances.
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
-
#initialize(location, client) ⇒ Node
constructor
A new instance of Node.
-
#reload ⇒ void
Reloads the node’s details from the server.
-
#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.
45 46 47 48 49 50 |
# File 'lib/vas/gemfire/nodes.rb', line 45 def initialize(location, client) super(location, client, Group) @agent_instances_location = Util::LinkUtils.get_link_href(details, 'agent-node-instances') @cache_server_instances_location = Util::LinkUtils.get_link_href(details, 'cache-server-node-instances') @locator_instances_location = Util::LinkUtils.get_link_href(details, 'locator-node-instances') end |
Instance Attribute Details
#agent_instances ⇒ AgentNodeInstances (readonly)
Returns the node’s agent instances.
36 37 38 |
# File 'lib/vas/gemfire/nodes.rb', line 36 def agent_instances @agent_instances end |
#cache_server_instances ⇒ CacheServerNodeInstances (readonly)
Returns the node’s server instances.
39 40 41 |
# File 'lib/vas/gemfire/nodes.rb', line 39 def cache_server_instances @cache_server_instances end |
#java_home ⇒ String (readonly)
Returns the Node’s Java home.
33 34 35 |
# File 'lib/vas/gemfire/nodes.rb', line 33 def java_home @java_home end |
#locator_instances ⇒ LocatorNodeInstances (readonly)
Returns the node’s locator instances.
42 43 44 |
# File 'lib/vas/gemfire/nodes.rb', line 42 def locator_instances @locator_instances end |
Instance Method Details
#reload ⇒ void
This method returns an undefined value.
Reloads the node’s details from the server
54 55 56 57 |
# File 'lib/vas/gemfire/nodes.rb', line 54 def reload super @java_home = details['java-home'] end |
#to_s ⇒ String
Returns a string representation of the node.
75 76 77 |
# File 'lib/vas/gemfire/nodes.rb', line 75 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 |