Class: Shared::MutableGroup Abstract

Inherits:
Group show all
Defined in:
lib/vas/shared/groups.rb

Overview

This class is abstract.

A group that supports changes to it membership

Direct Known Subclasses

Gemfire::Group, TcServer::Group

Instance Attribute Summary

Attributes inherited from Group

#installations, #name

Attributes inherited from Resource

#location, #security

Instance Method Summary collapse

Methods inherited from Group

#initialize, #nodes, #to_s

Constructor Details

This class inherits a constructor from Shared::Group

Instance Method Details

#update(nodes) ⇒ void

This method returns an undefined value.

Updates the group to contain the given nodes

Parameters:



84
85
86
87
88
# File 'lib/vas/shared/groups.rb', line 84

def update(nodes)
  node_locations = []
  nodes.each { |node| node_locations << node.location }
  client.post(location, {:nodes => node_locations})
end