Class: Shared::Node Abstract
Overview
This class is abstract.
A node, i.e. a machine with the vFabric Administration agent installed on it
Direct Known Subclasses
Instance Attribute Summary collapse
-
#agent_home ⇒ String
readonly
The location of the vFabric Administration agent.
-
#architecture ⇒ String
readonly
The architecture of the node’s operating system.
-
#host_names ⇒ String
readonly
The node’s host names.
-
#ip_addresses ⇒ String[]
readonly
The node’s IP addresses.
-
#metadata ⇒ Hash
readonly
The node’s metadata.
-
#operating_system ⇒ String
readonly
The node’s operating system.
Attributes inherited from Resource
Instance Method Summary collapse
-
#initialize(location, client) ⇒ Node
constructor
A new instance of Node.
Constructor Details
#initialize(location, client) ⇒ Node
Returns a new instance of Node.
41 42 43 44 45 46 47 48 49 50 |
# File 'lib/vas/shared/nodes.rb', line 41 def initialize(location, client) super(location, client) @agent_home = details["agent-home"] @architecture = details["architecture"] @host_names = details["host-names"] @ip_addresses = details["ip-addresses"] @metadata = details["metadata"] @operating_system = details["operating-system"] end |
Instance Attribute Details
#agent_home ⇒ String (readonly)
Returns the location of the vFabric Administration agent.
23 24 25 |
# File 'lib/vas/shared/nodes.rb', line 23 def agent_home @agent_home end |
#architecture ⇒ String (readonly)
Returns the architecture of the node’s operating system.
26 27 28 |
# File 'lib/vas/shared/nodes.rb', line 26 def architecture @architecture end |
#host_names ⇒ String (readonly)
Returns the node’s host names.
29 30 31 |
# File 'lib/vas/shared/nodes.rb', line 29 def host_names @host_names end |
#ip_addresses ⇒ String[] (readonly)
Returns the node’s IP addresses.
32 33 34 |
# File 'lib/vas/shared/nodes.rb', line 32 def ip_addresses @ip_addresses end |
#metadata ⇒ Hash (readonly)
Returns the node’s metadata.
35 36 37 |
# File 'lib/vas/shared/nodes.rb', line 35 def @metadata end |
#operating_system ⇒ String (readonly)
Returns the node’s operating system.
38 39 40 |
# File 'lib/vas/shared/nodes.rb', line 38 def @operating_system end |