Class: Shared::Node

Inherits:
Resource show all
Defined in:
lib/vas/shared/nodes.rb

Overview

A node

Direct Known Subclasses

GroupableNode, VFabric::Node

Instance Attribute Summary collapse

Attributes inherited from Resource

#location, #security

Instance Method Summary collapse

Constructor Details

#initialize(location, client) ⇒ Node

:nodoc:



41
42
43
44
45
46
47
48
49
50
# File 'lib/vas/shared/nodes.rb', line 41

def initialize(location, client)  #:nodoc:
  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_homeObject (readonly)

The location of the vFabric Administration agent



24
25
26
# File 'lib/vas/shared/nodes.rb', line 24

def agent_home
  @agent_home
end

#architectureObject (readonly)

The architecture of the node’s operating system



27
28
29
# File 'lib/vas/shared/nodes.rb', line 27

def architecture
  @architecture
end

#host_namesObject (readonly)

The node’s host names



30
31
32
# File 'lib/vas/shared/nodes.rb', line 30

def host_names
  @host_names
end

#ip_addressesObject (readonly)

The node’s IP addresses



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

def ip_addresses
  @ip_addresses
end

#metadataObject (readonly)

The node’s metadata



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

def 
  @metadata
end

#operating_systemObject (readonly)

The node’s operating system



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

def operating_system
  @operating_system
end