Package org.apache.solr.common
Class LazySolrCluster
- java.lang.Object
-
- org.apache.solr.common.LazySolrCluster
-
- All Implemented Interfaces:
org.apache.solr.cluster.api.SolrCluster
public class LazySolrCluster extends Object implements org.apache.solr.cluster.api.SolrCluster
Reference implementation for SolrCluster. As much as possible fetch all the values lazily because the value of anything can change any moment Creating an instance is a low cost operation. It does not result in a network call or large object creation
-
-
Constructor Summary
Constructors Constructor Description LazySolrCluster(ZkStateReader zkStateReader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.solr.cluster.api.SimpleMap<org.apache.solr.cluster.api.SolrCollection>
collections()
org.apache.solr.cluster.api.SimpleMap<org.apache.solr.cluster.api.SolrCollection>
collections(boolean includeAlias)
org.apache.solr.cluster.api.SimpleMap<org.apache.solr.cluster.api.CollectionConfig>
configs()
org.apache.solr.cluster.api.SimpleMap<org.apache.solr.cluster.api.SolrNode>
nodes()
String
overseerNode()
String
thisNode()
-
-
-
Constructor Detail
-
LazySolrCluster
public LazySolrCluster(ZkStateReader zkStateReader)
-
-
Method Detail
-
collections
public org.apache.solr.cluster.api.SimpleMap<org.apache.solr.cluster.api.SolrCollection> collections() throws org.apache.solr.common.SolrException
- Specified by:
collections
in interfaceorg.apache.solr.cluster.api.SolrCluster
- Throws:
org.apache.solr.common.SolrException
-
collections
public org.apache.solr.cluster.api.SimpleMap<org.apache.solr.cluster.api.SolrCollection> collections(boolean includeAlias) throws org.apache.solr.common.SolrException
- Specified by:
collections
in interfaceorg.apache.solr.cluster.api.SolrCluster
- Throws:
org.apache.solr.common.SolrException
-
nodes
public org.apache.solr.cluster.api.SimpleMap<org.apache.solr.cluster.api.SolrNode> nodes() throws org.apache.solr.common.SolrException
- Specified by:
nodes
in interfaceorg.apache.solr.cluster.api.SolrCluster
- Throws:
org.apache.solr.common.SolrException
-
configs
public org.apache.solr.cluster.api.SimpleMap<org.apache.solr.cluster.api.CollectionConfig> configs() throws org.apache.solr.common.SolrException
- Specified by:
configs
in interfaceorg.apache.solr.cluster.api.SolrCluster
- Throws:
org.apache.solr.common.SolrException
-
overseerNode
public String overseerNode() throws org.apache.solr.common.SolrException
- Specified by:
overseerNode
in interfaceorg.apache.solr.cluster.api.SolrCluster
- Throws:
org.apache.solr.common.SolrException
-
thisNode
public String thisNode()
- Specified by:
thisNode
in interfaceorg.apache.solr.cluster.api.SolrCluster
-
-