module Solr::Cloud::HelperMethods
Public Instance Methods
cloud_active_nodes_for(collection:)
click to toggle source
# File lib/solr/cloud/helper_methods.rb, line 6 def cloud_active_nodes_for(collection:) collections_state_manager.active_nodes_for(collection: collection) end
cloud_enabled?()
click to toggle source
# File lib/solr/cloud/helper_methods.rb, line 18 def cloud_enabled? cloud_configuration.cloud_enabled? end
enable_solr_cloud!()
click to toggle source
# File lib/solr/cloud/helper_methods.rb, line 22 def enable_solr_cloud! cloud_configuration.enable_solr_cloud!(configuration.cores.keys) end
leader_replica_node_for(collection:, shard:)
click to toggle source
# File lib/solr/cloud/helper_methods.rb, line 10 def leader_replica_node_for(collection:, shard:) collections_state_manager.leader_replica_node_for(collection: collection, shard: shard) end
shards_for(collection:)
click to toggle source
# File lib/solr/cloud/helper_methods.rb, line 14 def shards_for(collection:) collections_state_manager.shards_for(collection: collection) end
Private Instance Methods
cloud_configuration()
click to toggle source
# File lib/solr/cloud/helper_methods.rb, line 32 def cloud_configuration configuration.cloud_configuration end
collections_state_manager()
click to toggle source
# File lib/solr/cloud/helper_methods.rb, line 28 def collections_state_manager cloud_configuration.collections_state_manager end