Method: Corosync::Quorum#on_notify

Defined in:
lib/corosync/quorum.rb

#on_notify(&block) {|quorate, members| ... } ⇒ void

This method returns an undefined value.

Proc to call when quorum state changes.

Parameters:

  • block (Proc)

    Proc to call when quorm state changes. Pass Nil to disable the callback.

Yield Parameters:

  • quorate (Boolean)

    Whether cluster is quorate.

  • members (Array<Fixnum>)

    Node ID of cluster members.



118
119
120
# File 'lib/corosync/quorum.rb', line 118

def on_notify(&block)
  @callback_notify = block
end