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

#name

Attributes included from Shared::Deletable

#collection

Attributes inherited from Shared::Resource

#location, #security

Instance Method Summary collapse

Methods inherited from Shared::Instance

#group, #installation, #live_configurations, #node_instances, #pending_configurations, #reload, #start, #stop, #to_s

Methods included from Shared::Deletable

#delete

Methods inherited from Shared::StateResource

#start, #state, #stop

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

Parameters:

  • installation (Installation)

    the installation that the instance should use



53
54
55
56
# File 'lib/vas/gemfire/agent_instances.rb', line 53

def update(installation)
  client.post(location, { :installation => installation.location })
  reload
end