Class: ZeevexCluster::Strategy::Unclustered
- Defined in:
- lib/zeevex_cluster/strategy/unclustered.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ Unclustered
constructor
A new instance of Unclustered.
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
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() [:master_nodename] = [:nodename] super @members = [@nodename] end |