Class: Gemfire::CacheServerInstances
- Inherits:
-
Shared::MutableCollection
- Object
- Shared::Resource
- Shared::Collection
- Shared::MutableCollection
- Gemfire::CacheServerInstances
- 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
Instance Method Summary collapse
-
#create(installation, name) ⇒ CacheServerInstance
Creates a new cache server instance.
-
#initialize(location, client) ⇒ CacheServerInstances
constructor
A new instance of CacheServerInstances.
Methods inherited from Shared::MutableCollection
Methods inherited from Shared::Collection
Constructor Details
#initialize(location, client) ⇒ CacheServerInstances
Returns a new instance of CacheServerInstances.
23 24 25 |
# File 'lib/vas/gemfire/cache_server_instances.rb', line 23 def initialize(location, client) super(location, client, 'cache-server-group-instances', CacheServerInstance) end |
Instance Method Details
#create(installation, name) ⇒ CacheServerInstance
Creates a new cache server instance
33 34 35 36 |
# File 'lib/vas/gemfire/cache_server_instances.rb', line 33 def create(installation, name) payload = { :installation => installation.location, :name => name } super(payload, 'cache-server-group-instance') end |