lib/corosync/votequorum.rb
# Start monitoring for changes to quorum status/config.
# This basically just enables triggering the callback. If not called you can still call {#quorate?} to get quorum state.
# @param initial_callback [Boolean] Whether to call the callback after start.
# @return [Boolean]
Start monitoring for changes to quorum status/config.
This basically just enables triggering the callback. If not called you can still call {#quorate?} to get quorum state.
Start monitoring for changes to quorum status / config . This basically just enables triggering the callback . If not called you can still call { #quorate? } to get quorum state .
def start(initial_callback = false)
		connect if @handle.nil?
		Corosync.cs_send(:votequorum_trackstart, @handle, 0, Corosync::CS_TRACK_CHANGES)
		if initial_callback and @callback_notify then
			@callback_notify.call(quorate?)
		end
	end
def start ( initial_callback = false ) connect if @handle . nil? Corosync . cs_send ( :votequorum_trackstart , @handle , 0 , Corosync :: CS_TRACK_CHANGES ) if initial_callback and @callback_notify then @callback_notify . call ( quorate? ) end end
Start monitoring for changes to quorum status/config.
Start monitoring for changes to quorum status / config .
None
Boolean
initial_callback
Whether to call the callback after start.
Whether to call the callback after start .