Class: Gemfire::Group

Inherits:
Shared::MutableGroup show all
Defined in:
lib/vas/gemfire/groups.rb

Overview

A GemFire group

Instance Attribute Summary

Attributes inherited from Shared::Group

#name

Attributes included from Shared::Deletable

#collection

Attributes inherited from Shared::Resource

#location, #security

Instance Method Summary collapse

Methods inherited from Shared::MutableGroup

#update

Methods inherited from Shared::Group

#installations, #nodes, #reload, #to_s

Methods included from Shared::Deletable

#delete

Constructor Details

#initialize(location, client) ⇒ Group

Returns a new instance of Group.



33
34
35
36
37
38
39
# File 'lib/vas/gemfire/groups.rb', line 33

def initialize(location, client)
  super(location, client, Node, Installations)

  @agent_instances_location = Util::LinkUtils.get_link_href(details, 'agent-group-instances')
  @cache_server_instances_location = Util::LinkUtils.get_link_href(details, 'cache-server-group-instances')
  @locator_instances_location = Util::LinkUtils.get_link_href(details, 'locator-group-instances')
end

Instance Method Details

#agent_instancesAgentInstances

Returns the group’s agent instances.

Returns:



42
43
44
# File 'lib/vas/gemfire/groups.rb', line 42

def agent_instances
  @agent_instances ||= AgentInstances.new(@agent_instances_location, client)
end

#cache_server_instancesCacheServerInstances

Returns the group’s cache server instances.

Returns:



47
48
49
# File 'lib/vas/gemfire/groups.rb', line 47

def cache_server_instances
  @cache_server_instances ||= CacheServerInstances.new(@cache_server_instances_location, client)
end

#locator_instancesLocatorInstances

Returns the group’s locator instances.

Returns:



52
53
54
# File 'lib/vas/gemfire/groups.rb', line 52

def locator_instances
  @locator_instances ||= LocatorInstances.new(@locator_instances_location, client)
end