Class: Gemfire::AgentInstance
- Inherits:
-
Shared::Instance
- Object
- Shared::Resource
- Shared::StateResource
- Shared::Instance
- Gemfire::AgentInstance
- Defined in:
- lib/vas/gemfire/agent_instances.rb
Overview
An agent instance
Instance Attribute Summary
Attributes inherited from Shared::Instance
Attributes included from Shared::Deletable
Attributes inherited from Shared::Resource
Instance Method Summary collapse
-
#initialize(location, client) ⇒ AgentInstance
constructor
A new instance of AgentInstance.
-
#update(installation) ⇒ void
Updates the instance to use a different installation.
Methods inherited from Shared::Instance
#group, #installation, #live_configurations, #node_instances, #pending_configurations, #reload, #start, #stop, #to_s
Methods included from Shared::Deletable
Methods inherited from Shared::StateResource
Constructor Details
#initialize(location, client) ⇒ AgentInstance
Returns a new instance of AgentInstance.
44 45 46 |
# File 'lib/vas/gemfire/agent_instances.rb', line 44 def initialize(location, client) super(location, client, Group, Installation, AgentLiveConfigurations, AgentPendingConfigurations, AgentNodeInstance, 'agent-node-instance') end |
Instance Method Details
#update(installation) ⇒ void
This method returns an undefined value.
Updates the instance to use a different installation
53 54 55 56 |
# File 'lib/vas/gemfire/agent_instances.rb', line 53 def update(installation) client.post(location, { :installation => installation.location }) reload end |