Class: Gemfire::CacheServerInstances

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

Overview

Used to enumerate, create, and delete cache server instances.

Instance Attribute Summary

Attributes inherited from Shared::Resource

#location, #security

Instance Method Summary collapse

Methods inherited from Shared::MutableCollection

#delete

Methods inherited from Shared::Collection

#each

Constructor Details

#initialize(location, client) ⇒ CacheServerInstances

:nodoc:



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

def initialize(location, client) #:nodoc:
  super(location, client, "cache-server-group-instances", CacheServerInstance)
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/cache_server_instances.rb', line 28

def create(installation, name)
  payload = { :installation => installation.location, :name => name }
  CacheServerInstance.new(client.post(location, payload, "cache-server-group-instance"), client)
end