Class: Gemfire::LocatorInstances
- Inherits:
-
Shared::MutableCollection
- Object
- Shared::Resource
- Shared::Collection
- Shared::MutableCollection
- Gemfire::LocatorInstances
- Defined in:
- lib/vas/gemfire/locator_instances.rb
Overview
Used to enumerate, create, and delete locator instances.
Instance Attribute Summary
Attributes inherited from Shared::Resource
Instance Method Summary collapse
-
#create(installation, name, options = {}) ⇒ LocatorInstance
Creates a new locator instance.
-
#initialize(location, client) ⇒ LocatorInstances
constructor
A new instance of LocatorInstances.
Methods inherited from Shared::MutableCollection
Methods inherited from Shared::Collection
Constructor Details
#initialize(location, client) ⇒ LocatorInstances
Returns a new instance of LocatorInstances.
23 24 25 |
# File 'lib/vas/gemfire/locator_instances.rb', line 23 def initialize(location, client) super(location, client, 'locator-group-instances', LocatorInstance) end |
Instance Method Details
#create(installation, name, options = {}) ⇒ LocatorInstance
Creates a new locator instance
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/vas/gemfire/locator_instances.rb', line 41 def create(installation, name, = {}) payload = { :installation => installation.location, :name => name } if .has_key?(:peer) payload[:peer] = [:peer] end if .has_key?(:port) payload[:port] = [:port] end if .has_key?(:server) payload[:server] = [:server] end if .has_key?(:address) payload[:address] = [:address] end super(payload, 'locator-group-instance') end |