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

Returns a new instance of NodeInstance.



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

def initialize(location, client)
  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

#applicationsNodeApplications (readonly)

Returns the instance’s applications.

Returns:



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

def applications
  @applications
end

#layoutString (readonly)

Returns the instance’s layout.

Returns:

  • (String)

    the instance’s layout



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

def layout
  @layout
end

#runtime_versionString (readonly)

Returns the version of runtime used by the instance.

Returns:

  • (String)

    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

#servicesHash (readonly)

Returns the instance’s services.

Returns:

  • (Hash)

    the instance’s services



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

def services
  @services
end