Class: Sqlfire::Group

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

Overview

A SQLFire 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/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_instancesAgentInstances

Returns the group’s agent instances.

Returns:



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

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

#locator_instancesLocatorInstances

Returns the group’s locator instances.

Returns:



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

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

#server_instancesServerInstances

Returns the group’s server instances.

Returns:



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

def server_instances
  @server_instances ||= ServerInstances.new(@server_instances_location, client)
end