Class: Gemfire::AgentInstances
- Inherits:
-
Shared::MutableCollection
- Object
- Shared::Resource
- Shared::Collection
- Shared::MutableCollection
- Gemfire::AgentInstances
- 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
Instance Method Summary collapse
-
#create(installation, name) ⇒ Object
Creates a new instance named
name
, using the giveninstallation
. -
#initialize(location, client) ⇒ AgentInstances
constructor
:nodoc:.
Methods inherited from Shared::MutableCollection
Methods inherited from Shared::Collection
Constructor Details
#initialize(location, client) ⇒ AgentInstances
:nodoc:
23 24 25 |
# File 'lib/vas/gemfire/agent_instances.rb', line 23 def initialize(location, client) #:nodoc: super(location, client, "agent-group-instances", AgentInstance) end |
Instance Method Details
#create(installation, name) ⇒ Object
Creates a new instance named name
, using the given installation
.
28 29 30 31 |
# File 'lib/vas/gemfire/agent_instances.rb', line 28 def create(installation, name) payload = { :installation => installation.location, :name => name } AgentInstance.new(client.post(location, payload, "agent-group-instance"), client) end |