Module: Solr::MasterSlave::HelperMethods

Included in:
Solr
Defined in:
lib/solr/master_slave/helper_methods.rb

Instance Method Summary collapse

Instance Method Details

#enable_master_slave!Object



14
15
16
# File 'lib/solr/master_slave/helper_methods.rb', line 14

def enable_master_slave!
  master_slave_configuration.enable_master_slave!(configuration.cores.keys)
end

#master_slave_active_nodes_for(collection:) ⇒ Object



6
7
8
# File 'lib/solr/master_slave/helper_methods.rb', line 6

def master_slave_active_nodes_for(collection:)
  master_slave_configuration.active_nodes_for(collection: collection)
end

#master_slave_enabled?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/solr/master_slave/helper_methods.rb', line 10

def master_slave_enabled?
  master_slave_configuration.master_slave_enabled?
end