Class: Gemfire::Group
- Inherits:
-
Shared::MutableGroup
- Object
- Shared::Resource
- Shared::Group
- Shared::MutableGroup
- Gemfire::Group
- Defined in:
- lib/vas/gemfire/groups.rb
Overview
A GemFire group
Instance Attribute Summary
Attributes inherited from Shared::Group
Attributes included from Shared::Deletable
Attributes inherited from Shared::Resource
Instance Method Summary collapse
-
#agent_instances ⇒ AgentInstances
The group’s agent instances.
-
#cache_server_instances ⇒ CacheServerInstances
The group’s cache server instances.
-
#initialize(location, client) ⇒ Group
constructor
A new instance of Group.
-
#locator_instances ⇒ LocatorInstances
The group’s locator instances.
Methods inherited from Shared::MutableGroup
Methods inherited from Shared::Group
#installations, #nodes, #reload, #to_s
Methods included from Shared::Deletable
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_instances ⇒ AgentInstances
Returns the group’s agent instances.
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_instances ⇒ CacheServerInstances
Returns the group’s cache server instances.
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_instances ⇒ LocatorInstances
Returns the group’s locator instances.
52 53 54 |
# File 'lib/vas/gemfire/groups.rb', line 52 def locator_instances @locator_instances ||= LocatorInstances.new(@locator_instances_location, client) end |