Class: Sqlfire::Group
- Inherits:
-
Shared::MutableGroup
- Object
- Shared::Resource
- Shared::Group
- Shared::MutableGroup
- Sqlfire::Group
- Defined in:
- lib/vas/sqlfire/groups.rb
Overview
A SQLFire 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.
-
#initialize(location, client) ⇒ Group
constructor
A new instance of Group.
-
#locator_instances ⇒ LocatorInstances
The group’s locator instances.
-
#server_instances ⇒ ServerInstances
The group’s server 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/sqlfire/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') @locator_instances_location = Util::LinkUtils.get_link_href(details, 'locator-group-instances') @server_instances_location = Util::LinkUtils.get_link_href(details, 'server-group-instances') end |
Instance Method Details
#agent_instances ⇒ AgentInstances
Returns the group’s agent instances.
42 43 44 |
# File 'lib/vas/sqlfire/groups.rb', line 42 def agent_instances @agent_instances ||= AgentInstances.new(@agent_instances_location, client) end |
#locator_instances ⇒ LocatorInstances
Returns the group’s locator instances.
47 48 49 |
# File 'lib/vas/sqlfire/groups.rb', line 47 def locator_instances @locator_instances ||= LocatorInstances.new(@locator_instances_location, client) end |
#server_instances ⇒ ServerInstances
Returns the group’s server instances.
52 53 54 |
# File 'lib/vas/sqlfire/groups.rb', line 52 def server_instances @server_instances ||= ServerInstances.new(@server_instances_location, client) end |