Method: Corosync::CPG#join

Defined in:
lib/corosync/cpg.rb

#join(name) ⇒ void

This method returns an undefined value.

Join the specified closed process group.

Parameters:

  • name (String)

    Name of the group. Maximum length of 128 characters.



102
103
104
105
106
107
108
109
110
111
112
113
# File 'lib/corosync/cpg.rb', line 102

def join(name)
	connect if @handle.nil?

	cpg_name = Corosync::CpgName.new
	cpg_name[:value] = name
	cpg_name[:length] = name.size
	Corosync.cs_send(:cpg_join, @handle, cpg_name)

	@group = name

	self
end