public class CoreAdminRequest extends SolrRequest<CoreAdminResponse>
| Modifier and Type | Class and Description |
|---|---|
static class |
CoreAdminRequest.Create |
static class |
CoreAdminRequest.MergeIndexes |
static class |
CoreAdminRequest.OverrideLastPublished |
static class |
CoreAdminRequest.RequestRecovery |
static class |
CoreAdminRequest.RequestSyncShard |
static class |
CoreAdminRequest.Unload |
static class |
CoreAdminRequest.WaitForState |
SolrRequest.METHOD| Modifier and Type | Field and Description |
|---|---|
protected CoreAdminParams.CoreAdminAction |
action |
protected String |
core |
protected boolean |
isIndexInfoNeeded |
protected String |
other |
| Constructor and Description |
|---|
CoreAdminRequest() |
CoreAdminRequest(String path) |
| Modifier and Type | Method and Description |
|---|---|
static CoreAdminResponse |
createCore(String name,
String instanceDir,
SolrClient client) |
static CoreAdminResponse |
createCore(String name,
String instanceDir,
SolrClient client,
String configFile,
String schemaFile) |
static CoreAdminResponse |
createCore(String name,
String instanceDir,
SolrClient client,
String configFile,
String schemaFile,
String dataDir,
String tlogDir) |
protected CoreAdminResponse |
createResponse(SolrClient client)
Create a new SolrResponse to hold the response from the server
|
Collection<ContentStream> |
getContentStreams() |
SolrParams |
getParams() |
static CoreAdminResponse |
getStatus(String name,
SolrClient client) |
static CoreAdminResponse |
mergeIndexes(String name,
String[] indexDirs,
String[] srcCores,
SolrClient client) |
static CoreAdminResponse |
reloadCore(String name,
SolrClient client) |
static CoreAdminResponse |
renameCore(String coreName,
String newName,
SolrClient client) |
void |
setAction(CoreAdminParams.CoreAdminAction action) |
void |
setCoreName(String coreName) |
void |
setIndexInfoNeeded(boolean isIndexInfoNeeded) |
void |
setOtherCoreName(String otherCoreName) |
static CoreAdminResponse |
unloadCore(String name,
boolean deleteIndex,
boolean deleteInstanceDir,
SolrClient client) |
static CoreAdminResponse |
unloadCore(String name,
boolean deleteIndex,
SolrClient client) |
static CoreAdminResponse |
unloadCore(String name,
SolrClient client) |
getBasicAuthPassword, getBasicAuthUser, getMethod, getPath, getQueryParams, getResponseParser, getStreamingResponseCallback, process, process, setBasicAuthCredentials, setMethod, setPath, setQueryParams, setResponseParser, setStreamingResponseCallbackprotected String core
protected String other
protected boolean isIndexInfoNeeded
protected CoreAdminParams.CoreAdminAction action
public CoreAdminRequest()
public CoreAdminRequest(String path)
public final void setCoreName(String coreName)
public final void setOtherCoreName(String otherCoreName)
public final void setIndexInfoNeeded(boolean isIndexInfoNeeded)
public void setAction(CoreAdminParams.CoreAdminAction action)
public SolrParams getParams()
getParams in class SolrRequest<CoreAdminResponse>public Collection<ContentStream> getContentStreams() throws IOException
getContentStreams in class SolrRequest<CoreAdminResponse>IOExceptionprotected CoreAdminResponse createResponse(SolrClient client)
SolrRequestcreateResponse in class SolrRequest<CoreAdminResponse>client - the SolrClient the request will be sent topublic static CoreAdminResponse reloadCore(String name, SolrClient client) throws SolrServerException, IOException
SolrServerExceptionIOExceptionpublic static CoreAdminResponse unloadCore(String name, SolrClient client) throws SolrServerException, IOException
SolrServerExceptionIOExceptionpublic static CoreAdminResponse unloadCore(String name, boolean deleteIndex, SolrClient client) throws SolrServerException, IOException
SolrServerExceptionIOExceptionpublic static CoreAdminResponse unloadCore(String name, boolean deleteIndex, boolean deleteInstanceDir, SolrClient client) throws SolrServerException, IOException
SolrServerExceptionIOExceptionpublic static CoreAdminResponse renameCore(String coreName, String newName, SolrClient client) throws SolrServerException, IOException
SolrServerExceptionIOExceptionpublic static CoreAdminResponse getStatus(String name, SolrClient client) throws SolrServerException, IOException
SolrServerExceptionIOExceptionpublic static CoreAdminResponse createCore(String name, String instanceDir, SolrClient client) throws SolrServerException, IOException
SolrServerExceptionIOExceptionpublic static CoreAdminResponse createCore(String name, String instanceDir, SolrClient client, String configFile, String schemaFile) throws SolrServerException, IOException
SolrServerExceptionIOExceptionpublic static CoreAdminResponse createCore(String name, String instanceDir, SolrClient client, String configFile, String schemaFile, String dataDir, String tlogDir) throws SolrServerException, IOException
SolrServerExceptionIOExceptionpublic static CoreAdminResponse mergeIndexes(String name, String[] indexDirs, String[] srcCores, SolrClient client) throws SolrServerException, IOException
SolrServerExceptionIOExceptionCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.