lib/corosync/quorum.rb
# Start monitoring for changes to quorum status.
# This basically just enables triggering the callback on changes. If not called you can still call {#quorate?} to get quorum state.
# The callback will be called immediately upon start.
# @return [Boolean]
Start monitoring for changes to quorum status.
This basically just enables triggering the callback on changes. If not called you can still call {#quorate?} to get quorum state.
The callback will be called immediately upon start.
Start monitoring for changes to quorum status . This basically just enables triggering the callback on changes . If not called you can still call { #quorate? } to get quorum state . The callback will be called immediately upon start .
def start
		connect if @handle.nil?
		Corosync.cs_send(:quorum_trackstart, @handle, Corosync::CS_TRACK_CHANGES)
		if @callback_notify then
			@callback_notify.call(quorate?, [])
		end
	end
def start connect if @handle . nil? Corosync . cs_send ( :quorum_trackstart , @handle , Corosync :: CS_TRACK_CHANGES ) if @callback_notify then @callback_notify . call ( quorate? , [ ] ) end end
Start monitoring for changes to quorum status.
Start monitoring for changes to quorum status .
None
Boolean