Class: Gemfire::Node

Inherits:
Shared::GroupableNode show all
Defined in:
lib/vas/gemfire/nodes.rb

Overview

A GemFire node

Instance Attribute Summary collapse

Attributes inherited from Shared::Node

#agent_home, #architecture, #host_names, #ip_addresses, #metadata, #operating_system

Attributes inherited from Shared::Resource

#location, #security

Instance Method Summary collapse

Methods inherited from Shared::GroupableNode

#groups

Constructor Details

#initialize(location, client) ⇒ Node

Returns a new instance of Node.



45
46
47
48
49
50
51
# File 'lib/vas/gemfire/nodes.rb', line 45

def initialize(location, client)
  super(location, client, Group)
  @java_home = details["java-home"]
  @agent_instances = AgentNodeInstances.new(Util::LinkUtils.get_link_href(details, "agent-node-instances"), client)
  @cache_server_instances = CacheServerNodeInstances.new(Util::LinkUtils.get_link_href(details, "cache-server-node-instances"), client)
  @locator_instances = LocatorNodeInstances.new(Util::LinkUtils.get_link_href(details, "locator-node-instances"), client)
end

Instance Attribute Details

#agent_instancesAgentNodeInstances (readonly)

Returns the node’s agent instances.

Returns:



36
37
38
# File 'lib/vas/gemfire/nodes.rb', line 36

def agent_instances
  @agent_instances
end

#cache_server_instancesCacheServerInstances (readonly)

Returns the node’s cache server instances.

Returns:



39
40
41
# File 'lib/vas/gemfire/nodes.rb', line 39

def cache_server_instances
  @cache_server_instances
end

#java_homeString (readonly)

Returns the Node’s Java home.

Returns:

  • (String)

    the Node’s Java home



33
34
35
# File 'lib/vas/gemfire/nodes.rb', line 33

def java_home
  @java_home
end

#locator_instancesLocatorNodeInstances (readonly)

Returns the node’s locator instances.

Returns:



42
43
44
# File 'lib/vas/gemfire/nodes.rb', line 42

def locator_instances
  @locator_instances
end

Instance Method Details

#to_sString

Returns a string representation of the node.

Returns:

  • (String)

    a string representation of the node



54
55
56
# File 'lib/vas/gemfire/nodes.rb', line 54

def to_s
  "#<#{self.class} host_names='#{host_names}' ip_addresses='#{ip_addresses}' operating_system='#{operating_system}' architecture='#{architecture}' agent_home='#{agent_home}' java_home='#{java_home}' metadata='#{}'>"
end