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
#group, #live_configurations, #name, #node_instances, #pending_configurations
Attributes inherited from Shared::Resource
Instance Method Summary collapse
-
#initialize(location, client) ⇒ AgentInstance
constructor
:nodoc:.
-
#update(installation) ⇒ Object
Updates the instance to use the given
installation
.
Methods inherited from Shared::Instance
Methods inherited from Shared::StateResource
Constructor Details
#initialize(location, client) ⇒ AgentInstance
:nodoc:
38 39 40 |
# File 'lib/vas/gemfire/agent_instances.rb', line 38 def initialize(location, client) #:nodoc: super(location, client, Group, Installation, AgentLiveConfigurations, AgentPendingConfigurations, AgentNodeInstance, 'agent-node-instance') end |
Instance Method Details
#update(installation) ⇒ Object
Updates the instance to use the given installation
43 44 45 |
# File 'lib/vas/gemfire/agent_instances.rb', line 43 def update(installation) client.post(location, { :installation => installation.location }); end |