Class: Gemfire::Installation

Inherits:
Shared::Installation show all
Defined in:
lib/vas/gemfire/installations.rb

Overview

A GemFire installation

Instance Attribute Summary

Attributes inherited from Shared::Installation

#version

Attributes included from Shared::Deletable

#collection

Attributes inherited from Shared::Resource

#location, #security

Instance Method Summary collapse

Methods inherited from Shared::Installation

#group, #installation_image, #to_s

Methods included from Shared::Deletable

#delete

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_instancesAgentInstance[]

Returns the agent instances that are using the installation.

Returns:

  • (AgentInstance[])

    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_instancesCacheServerInstance[]

Returns the cache server instances that are using the installation.

Returns:



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_instancesLocatorInstance[]

Returns the locator instances that are using the installation.

Returns:

  • (LocatorInstance[])

    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

#reloadvoid

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