Class: Gemfire::AgentInstances

Inherits:
Shared::MutableCollection show all
Defined in:
lib/vas/gemfire/agent_instances.rb

Overview

Used to enumerate, create, and delete agent instances.

Instance Attribute Summary

Attributes inherited from Shared::Resource

#location, #security

Instance Method Summary collapse

Methods inherited from Shared::MutableCollection

#create_image

Methods inherited from Shared::Collection

#each, #reload

Constructor Details

#initialize(location, client) ⇒ AgentInstances

Returns a new instance of AgentInstances.



23
24
25
# File 'lib/vas/gemfire/agent_instances.rb', line 23

def initialize(location, client)
  super(location, client, 'agent-group-instances', AgentInstance)
end

Instance Method Details

#create(installation, name) ⇒ AgentInstance

Creates a new agent instance

Parameters:

  • installation (Installation)

    the installation to be used by the instance

  • name (String)

    the name of the instance

Returns:



33
34
35
36
# File 'lib/vas/gemfire/agent_instances.rb', line 33

def create(installation, name)
  payload = { :installation => installation.location, :name => name }
  super(payload, 'agent-group-instance')
end