Class: Gemfire::Installation
- Inherits:
-
Shared::Installation
- Object
- Shared::Resource
- Shared::Installation
- Gemfire::Installation
- Defined in:
- lib/vas/gemfire/installations.rb
Overview
A GemFire installation
Instance Attribute Summary
Attributes inherited from Shared::Installation
Attributes included from Shared::Deletable
Attributes inherited from Shared::Resource
Instance Method Summary collapse
-
#agent_instances ⇒ AgentInstance[]
The agent instances that are using the installation.
-
#cache_server_instances ⇒ CacheServerInstance[]
The cache server instances that are using the installation.
-
#initialize(location, client) ⇒ Installation
constructor
A new instance of Installation.
-
#locator_instances ⇒ LocatorInstance[]
The locator instances that are using the installation.
-
#reload ⇒ void
Reloads the installation’s details from the server.
Methods inherited from Shared::Installation
#group, #installation_image, #to_s
Methods included from Shared::Deletable
Constructor Details
#initialize(location, client) ⇒ Installation
Returns a new instance of Installation.
33 34 35 |
# File 'lib/vas/gemfire/installations.rb', line 33 def initialize(location, client) super(location, client, InstallationImage, Group) end |
Instance Method Details
#agent_instances ⇒ AgentInstance[]
Returns the agent instances that are using the installation.
47 48 49 |
# File 'lib/vas/gemfire/installations.rb', line 47 def agent_instances @agent_instances ||= create_resources_from_links('agent-group-instance', AgentInstance); end |
#cache_server_instances ⇒ CacheServerInstance[]
Returns the cache server instances that are using the installation.
52 53 54 |
# File 'lib/vas/gemfire/installations.rb', line 52 def cache_server_instances @cache_server_instances ||= create_resources_from_links('cache-server-group-instance', CacheServerInstance); end |
#locator_instances ⇒ LocatorInstance[]
Returns the locator instances that are using the installation.
57 58 59 |
# File 'lib/vas/gemfire/installations.rb', line 57 def locator_instances @locator_instances ||= create_resources_from_links('locator-group-instance', LocatorInstance); end |
#reload ⇒ void
This method returns an undefined value.
Reloads the installation’s details from the server
39 40 41 42 43 44 |
# File 'lib/vas/gemfire/installations.rb', line 39 def reload super @agent_instances = nil @cache_server_instances = nil @locator_instances = nil end |