Class: TcServer::NodeInstance

Inherits:
Shared::NodeInstance show all
Defined in:
lib/vas/tc_server/node_instances.rb

Overview

A tc Server node instance

Instance Attribute Summary collapse

Attributes inherited from Shared::NodeInstance

#group_instance, #logs, #name, #node

Attributes inherited from Shared::Resource

#location, #security

Instance Method Summary collapse

Methods inherited from Shared::NodeInstance

#to_s

Methods inherited from Shared::StateResource

#start, #state, #stop

Constructor Details

#initialize(location, client) ⇒ NodeInstance

:nodoc:



44
45
46
47
48
49
50
51
# File 'lib/vas/tc_server/node_instances.rb', line 44

def initialize(location, client) #:nodoc:
  super(location, client, Node, Logs, Instance, 'group-instance')

  @layout = details["layout"]
  @runtime_version = details["runtime-version"]
  @services = details["services"]
  @applications = NodeApplications.new(Util::LinkUtils.get_link_href(details, "node-applications"), client)
end

Instance Attribute Details

#applicationsObject (readonly)

The instance’s NodeApplications



42
43
44
# File 'lib/vas/tc_server/node_instances.rb', line 42

def applications
  @applications
end

#layoutObject (readonly)

The instance’s layout



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

def layout
  @layout
end

#runtime_versionObject (readonly)

The version of runtime used by the instance



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

def runtime_version
  @runtime_version
end

#servicesObject (readonly)

The instance’s services



39
40
41
# File 'lib/vas/tc_server/node_instances.rb', line 39

def services
  @services
end