class CloudSolrServers[F[_]] extends SolrServers with AsyncSolrClientAware[F] with ServerStateChangeObservable

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
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CloudSolrServers
  2. ServerStateChangeObservable
  3. AsyncSolrClientAware
  4. SolrServers
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
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, warmupQueries: Option[WarmupQueries] = None)(implicit futureFactory: FutureFactory[F])

    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 register(listener: StateChangeObserver): Unit
  18. def setAsyncSolrClient(client: AsyncSolrClient[F]): Unit

    On creation of AsyncSolrClient this method is invoked with the created instance if the concrete component is "supported", right now this are SolrServers and LoadBalancer.

    On creation of AsyncSolrClient this method is invoked with the created instance if the concrete component is "supported", right now this are SolrServers and LoadBalancer. Subclasses can override this method to get access to the solr client.

    Definition Classes
    CloudSolrServersAsyncSolrClientAware
  19. def shutdown: List[Runnable]
  20. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. def warmupNewServer(collection: String, s: SolrServer, queries: Seq[SolrQuery], count: Int): Future[Seq[Try[QueryResponse]]]
    Attributes
    protected
  26. def warmupNewServers(newCollectionToServers: Map[String, IndexedSeq[SolrServer]], warmup: WarmupQueries): Future[Iterable[Try[QueryResponse]]]
    Attributes
    protected

Inherited from AsyncSolrClientAware[F]

Inherited from SolrServers

Inherited from AnyRef

Inherited from Any

Ungrouped