public class CoreAdminRequest extends SolrRequest<CoreAdminResponse>
| 限定符和类型 | 类和说明 |
|---|---|
static class |
CoreAdminRequest.Create |
static class |
CoreAdminRequest.CreateSnapshot |
static class |
CoreAdminRequest.DeleteSnapshot |
static class |
CoreAdminRequest.ListSnapshots |
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| 限定符和类型 | 字段和说明 |
|---|---|
protected CoreAdminParams.CoreAdminAction |
action |
protected String |
core |
protected boolean |
isIndexInfoNeeded |
protected String |
other |
SUPPORTED_METHODS, useBinaryV2, usev2| 构造器和说明 |
|---|
CoreAdminRequest() |
CoreAdminRequest(String path) |
| 限定符和类型 | 方法和说明 |
|---|---|
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
|
static CoreStatus |
getCoreStatus(String coreName,
boolean getIndexInfo,
SolrClient client) |
static CoreStatus |
getCoreStatus(String coreName,
SolrClient client) |
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)
Rename an existing core.
|
void |
setAction(CoreAdminParams.CoreAdminAction action) |
void |
setCoreName(String coreName) |
void |
setIndexInfoNeeded(boolean isIndexInfoNeeded) |
void |
setOtherCoreName(String otherCoreName) |
static CoreAdminResponse |
swapCore(String core1,
String core2,
SolrClient client)
Swap two existing cores.
|
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) |
addHeader, getBasePath, getBasicAuthPassword, getBasicAuthUser, getCollection, getContentStreams, getContentWriter, getHeaders, getMethod, getPath, getQueryParams, getResponseParser, getStreamingResponseCallback, getUserPrincipal, process, process, setBasePath, setBasicAuthCredentials, setMethod, setPath, setQueryParams, setResponseParser, setStreamingResponseCallback, setUseBinaryV2, setUserPrincipal, setUseV2protected String core
protected String other
protected boolean isIndexInfoNeeded
protected CoreAdminParams.CoreAdminAction action
public CoreAdminRequest()
public CoreAdminRequest(String path)
public 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 在类中 SolrRequest<CoreAdminResponse>protected CoreAdminResponse createResponse(SolrClient client)
SolrRequestcreateResponse 在类中 SolrRequest<CoreAdminResponse>client - the SolrClient the request will be sent topublic static CoreAdminResponse reloadCore(String name, SolrClient client) throws SolrServerException, IOException
public static CoreAdminResponse unloadCore(String name, SolrClient client) throws SolrServerException, IOException
public static CoreAdminResponse unloadCore(String name, boolean deleteIndex, SolrClient client) throws SolrServerException, IOException
public static CoreAdminResponse unloadCore(String name, boolean deleteIndex, boolean deleteInstanceDir, SolrClient client) throws SolrServerException, IOException
public static CoreAdminResponse renameCore(String coreName, String newName, SolrClient client) throws SolrServerException, IOException
IllegalArgumentException - if the new core name contains invalid characters.SolrServerExceptionIOExceptionpublic static CoreAdminResponse swapCore(String core1, String core2, SolrClient client) throws SolrServerException, IOException
core1 - name of the first corecore2 - name of the other coreclient - SolrClient to useSolrServerException - if one or both cores don't existIOException - on IO errorspublic static CoreStatus getCoreStatus(String coreName, SolrClient client) throws SolrServerException, IOException
public static CoreStatus getCoreStatus(String coreName, boolean getIndexInfo, SolrClient client) throws SolrServerException, IOException
public static CoreAdminResponse getStatus(String name, SolrClient client) throws SolrServerException, IOException
public static CoreAdminResponse createCore(String name, String instanceDir, SolrClient client) throws SolrServerException, IOException
public static CoreAdminResponse createCore(String name, String instanceDir, SolrClient client, String configFile, String schemaFile) throws SolrServerException, IOException
public static CoreAdminResponse createCore(String name, String instanceDir, SolrClient client, String configFile, String schemaFile, String dataDir, String tlogDir) throws SolrServerException, IOException
public static CoreAdminResponse mergeIndexes(String name, String[] indexDirs, String[] srcCores, SolrClient client) throws SolrServerException, IOException
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.