Class: TcServer::Node

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

Overview

A tc Server 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.



39
40
41
42
43
# File 'lib/vas/tc_server/nodes.rb', line 39

def initialize(location, client)
  super(location, client, Group)
  @java_home = details["java-home"]
  @instances = NodeInstances.new(Util::LinkUtils.get_link_href(details, "node-instances"), client)
end

Instance Attribute Details

#instancesNodeInstances (readonly)

Returns the node’s instances.

Returns:



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

def instances
  @instances
end

#java_homeString (readonly)

Returns the node’s Java home.

Returns:

  • (String)

    the node’s Java home



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

def java_home
  @java_home
end

Instance Method Details

#to_sString

Returns a string representation of the node.

Returns:

  • (String)

    a string representation of the node



46
47
48
# File 'lib/vas/tc_server/nodes.rb', line 46

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