Class SolrClient
- java.lang.Object
-
- com.lucidworks.apollo.solr.client.SolrClient
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public abstract class SolrClient extends java.lang.Object implements java.io.Closeable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SolrClient.InvalidVersionException
static class
SolrClient.SolrVersionCheckError
-
Constructor Summary
Constructors Constructor Description SolrClient(Client client, com.codahale.metrics.MetricRegistry metricRegistry)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
collectionExists(java.lang.String collection)
java.lang.String
getBaseUri()
abstract java.lang.String
getBaseUri(boolean lb)
abstract com.lucidworks.apollo.solr.client.CoreAdminAPI
getCoreAdminAPI()
abstract com.lucidworks.apollo.solr.client.InfoAPI
getInfoAPI()
Client
getJerseyClient()
abstract com.lucidworks.apollo.solr.client.MBeanAPI
getMBeanAPI()
abstract com.lucidworks.apollo.solr.client.PingAPI
getPingAPI()
abstract com.lucidworks.apollo.solr.client.SchemaAPI
getSchemaAPI()
abstract com.lucidworks.apollo.solr.client.SearchAPI
getSearchAPI()
com.lucidworks.apollo.solr.client.InfoAPI.Version
getServerVersion()
abstract boolean
isCloud()
boolean
isServerVersionAtLeast(int major, int minor, int trivial)
abstract java.util.Collection<java.lang.String>
listCollections()
-
-
-
Constructor Detail
-
SolrClient
public SolrClient(Client client, com.codahale.metrics.MetricRegistry metricRegistry)
-
-
Method Detail
-
getSearchAPI
public abstract com.lucidworks.apollo.solr.client.SearchAPI getSearchAPI()
-
getSchemaAPI
public abstract com.lucidworks.apollo.solr.client.SchemaAPI getSchemaAPI()
-
getInfoAPI
public abstract com.lucidworks.apollo.solr.client.InfoAPI getInfoAPI()
-
getMBeanAPI
public abstract com.lucidworks.apollo.solr.client.MBeanAPI getMBeanAPI()
-
getCoreAdminAPI
public abstract com.lucidworks.apollo.solr.client.CoreAdminAPI getCoreAdminAPI()
-
getBaseUri
public abstract java.lang.String getBaseUri(boolean lb)
-
getPingAPI
public abstract com.lucidworks.apollo.solr.client.PingAPI getPingAPI()
-
listCollections
public abstract java.util.Collection<java.lang.String> listCollections() throws java.lang.Exception
- Throws:
java.lang.Exception
-
collectionExists
public boolean collectionExists(java.lang.String collection) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getBaseUri
public java.lang.String getBaseUri()
-
getServerVersion
public com.lucidworks.apollo.solr.client.InfoAPI.Version getServerVersion() throws SolrClient.SolrVersionCheckError
- Throws:
SolrClient.SolrVersionCheckError
-
getJerseyClient
public Client getJerseyClient()
-
isServerVersionAtLeast
public boolean isServerVersionAtLeast(int major, int minor, int trivial) throws SolrClient.SolrVersionCheckError, SolrClient.InvalidVersionException
-
isCloud
public abstract boolean isCloud()
-
-