io.ino.solrs

CloudSolrServers

class CloudSolrServers extends SolrServers

Provides servers based on information from from ZooKeeper. Uses the ZkStateReader to read the ZK cluster state, which is also used by solrj's CloudSolrServer. While ZkStateReader uses ZK Watches to get cluster state changes from ZK, we're regularly updating our internal state by reading the cluster state from ZkStateReader.

Linear Supertypes
SolrServers, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CloudSolrServers
  2. SolrServers
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CloudSolrServers(zkHost: String, zkClientTimeout: Duration = 15 seconds, zkConnectTimeout: Duration = 10 seconds, clusterStateUpdateInterval: Duration = 1 second, defaultCollection: Option[String] = None)

    zkHost

    The zkHost string, in $host:$port format, multiple hosts are specified comma separated

    zkClientTimeout

    The zk session timeout (passed to ZkStateReader)

    zkConnectTimeout

    The zk connection timeout (passed to ZkStateReader), also used for ZkStateReader initialization attempt interval. Note that we're NOT stopping connection retries after connect timeout!

    clusterStateUpdateInterval

    Used for pulling the ClusterState from ZkStateReader

    defaultCollection

    Optional default collection to use when the query does not specify the "collection" param.

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. def all: IndexedSeq[SolrServer]

    The currently known solr servers.

    The currently known solr servers.

    Definition Classes
    CloudSolrServersSolrServers
    Annotations
    @volatile()
  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  13. def matching(q: SolrQuery): IndexedSeq[SolrServer]

    An infinite iterator over known solr servers.

    An infinite iterator over known solr servers. When the last item is reached, it should start from the first one again. When the known solr servers change, the iterator must reflect this.

    Definition Classes
    CloudSolrServersSolrServers
  14. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  17. def shutdown: List[Runnable]

  18. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  19. def toString(): String

    Definition Classes
    AnyRef → Any
  20. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from SolrServers

Inherited from AnyRef

Inherited from Any

Ungrouped