Class: Sqlfire::AgentNodeInstance
- Inherits:
-
Shared::NodeInstance
- Object
- Shared::Resource
- Shared::StateResource
- Shared::NodeInstance
- Sqlfire::AgentNodeInstance
- Defined in:
- lib/vas/sqlfire/agent_node_instances.rb
Overview
An agent node instance
Instance Attribute Summary collapse
-
#jvm_options ⇒ String[]
readonly
The JVM options that are passed to the agent’s JVM when it is started.
Attributes inherited from Shared::NodeInstance
Attributes inherited from Shared::Resource
Instance Method Summary collapse
-
#initialize(location, client) ⇒ AgentNodeInstance
constructor
A new instance of AgentNodeInstance.
-
#reload ⇒ void
Reloads the agent instance’s details from the server.
-
#to_s ⇒ String
A string representation of the instance.
Methods inherited from Shared::NodeInstance
#group_instance, #live_configurations, #logs, #node
Methods inherited from Shared::StateResource
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_options ⇒ String[] (readonly)
Returns 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 end |
Instance Method Details
#reload ⇒ void
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_s ⇒ String
Returns 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 |