public class ShardInstance extends java.lang.Object implements SolrInstance
Modifier and Type | Field and Description |
---|---|
private SolrClient |
defaultServer |
private java.util.ArrayList<RemoteInstance> |
instances |
private ShardSelection.Method |
method |
private java.util.Map<java.lang.String,SolrClient> |
serverCache |
private boolean |
writeEnabled |
Constructor and Description |
---|
ShardInstance(java.util.ArrayList<RemoteInstance> instances,
ShardSelection.Method method,
boolean writeEnabled) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.util.ArrayList<java.lang.String> |
getAdminInterfaces() |
java.util.Collection<java.lang.String> |
getCoreNames() |
java.lang.String |
getDefaultCoreName() |
SolrClient |
getDefaultServer() |
SolrClient |
getServer(java.lang.String name) |
private final java.util.ArrayList<RemoteInstance> instances
private final ShardSelection.Method method
private SolrClient defaultServer
private java.util.Map<java.lang.String,SolrClient> serverCache
private final boolean writeEnabled
public ShardInstance(java.util.ArrayList<RemoteInstance> instances, ShardSelection.Method method, boolean writeEnabled)
public java.lang.String getDefaultCoreName()
getDefaultCoreName
in interface SolrInstance
public java.util.Collection<java.lang.String> getCoreNames()
getCoreNames
in interface SolrInstance
public SolrClient getDefaultServer()
getDefaultServer
in interface SolrInstance
public SolrClient getServer(java.lang.String name)
getServer
in interface SolrInstance
public void close()
close
in interface SolrInstance
public java.util.ArrayList<java.lang.String> getAdminInterfaces()