Class: Gemfire::AgentInstance

Inherits:
Shared::Instance show all
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

#location, #security

Instance Method Summary collapse

Methods inherited from Shared::Instance

#installation, #to_s

Methods inherited from Shared::StateResource

#start, #state, #stop

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