Class 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 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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.apache.solr.cluster.api.SolrCluster
        Throws:
        org.apache.solr.common.SolrException
      • thisNode

        public String thisNode()
        Specified by:
        thisNode in interface org.apache.solr.cluster.api.SolrCluster