Class: Sqlfire::AgentNodeInstance

Inherits:
Shared::NodeInstance show all
Defined in:
lib/vas/sqlfire/agent_node_instances.rb

Overview

An agent node instance

Instance Attribute Summary collapse

Attributes inherited from Shared::NodeInstance

#name

Attributes inherited from Shared::Resource

#location, #security

Instance Method Summary collapse

Methods inherited from Shared::NodeInstance

#group_instance, #live_configurations, #logs, #node

Methods inherited from Shared::StateResource

#start, #state, #stop

Constructor Details

#initialize(location, client) ⇒ AgentNodeInstance

Returns a new instance of AgentNodeInstance.



36
37
38
# File 'lib/vas/sqlfire/agent_node_instances.rb', line 36

def initialize(location, client)
  super(location, client, Node, AgentLogs, AgentInstance, 'agent-group-instance', AgentNodeLiveConfigurations)
end

Instance Attribute Details

#jvm_optionsString[] (readonly)

Returns The JVM options that are passed to the agent’s JVM when it is started.

Returns:

  • (String[])

    The JVM options that are passed to the agent’s JVM when it is started



33
34
35
# File 'lib/vas/sqlfire/agent_node_instances.rb', line 33

def jvm_options
  @jvm_options
end

Instance Method Details

#reloadvoid

This method returns an undefined value.

Reloads the agent instance’s details from the server



42
43
44
45
# File 'lib/vas/sqlfire/agent_node_instances.rb', line 42

def reload
  super
  @jvm_options = details['jvm-options']
end

#to_sString

Returns a string representation of the instance.

Returns:

  • (String)

    a string representation of the instance



48
49
50
# File 'lib/vas/sqlfire/agent_node_instances.rb', line 48

def to_s
  "#<#{self.class} name='#{name}' jvm_options='#@jvm_options'>"
end