Class: ZeevexCluster::Strategy::Unclustered

Inherits:
Static
  • Object
show all
Defined in:
lib/zeevex_cluster/strategy/unclustered.rb

Instance Method Summary collapse

Methods inherited from Static

#am_i_master?, #can_view?, #master_node, #members, #observe, #observing?, #resign, #start, #steal_election!, #stop

Methods inherited from Base

#am_i_master?, #has_master?, #member?, #online?, #started?, #state, #stopped?

Methods included from Util::Logging

#logger

Constructor Details

#initialize(options) ⇒ Unclustered

Returns a new instance of Unclustered.



3
4
5
6
7
# File 'lib/zeevex_cluster/strategy/unclustered.rb', line 3

def initialize(options)
  options[:master_nodename] = options[:nodename]
  super
  @members = [@nodename]
end