org.apache.solr.client.solrj.request
Class CoreAdminRequest
java.lang.Object
org.apache.solr.client.solrj.SolrRequest
org.apache.solr.client.solrj.request.CoreAdminRequest
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- CoreAdminRequest.Create, CoreAdminRequest.MergeIndexes, CoreAdminRequest.Persist, CoreAdminRequest.RequestRecovery, CoreAdminRequest.RequestSyncShard, CoreAdminRequest.Unload, CoreAdminRequest.WaitForState
public class CoreAdminRequest
- extends SolrRequest
This class is experimental and subject to change.
- Since:
- solr 1.3
- See Also:
- Serialized Form
Method Summary |
static CoreAdminResponse |
createCore(String name,
String instanceDir,
SolrServer server)
|
static CoreAdminResponse |
createCore(String name,
String instanceDir,
SolrServer server,
String configFile,
String schemaFile)
|
static CoreAdminResponse |
createCore(String name,
String instanceDir,
SolrServer server,
String configFile,
String schemaFile,
String dataDir,
String tlogDir)
|
Collection<ContentStream> |
getContentStreams()
|
SolrParams |
getParams()
|
static CoreAdminResponse |
getStatus(String name,
SolrServer server)
|
static CoreAdminResponse |
mergeIndexes(String name,
String[] indexDirs,
String[] srcCores,
SolrServer server)
|
static CoreAdminResponse |
persist(String fileName,
SolrServer server)
Deprecated. |
CoreAdminResponse |
process(SolrServer server)
|
static CoreAdminResponse |
reloadCore(String name,
SolrServer server)
|
static CoreAdminResponse |
renameCore(String coreName,
String newName,
SolrServer server)
|
void |
setAction(CoreAdminParams.CoreAdminAction action)
|
void |
setCoreName(String coreName)
|
void |
setIndexInfoNeeded(boolean isIndexInfoNeeded)
|
void |
setOtherCoreName(String otherCoreName)
|
static CoreAdminResponse |
unloadCore(String name,
boolean deleteIndex,
SolrServer server)
|
static CoreAdminResponse |
unloadCore(String name,
SolrServer server)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
core
protected String core
other
protected String other
isIndexInfoNeeded
protected boolean isIndexInfoNeeded
action
protected CoreAdminParams.CoreAdminAction action
CoreAdminRequest
public CoreAdminRequest()
CoreAdminRequest
public CoreAdminRequest(String path)
setCoreName
public final void setCoreName(String coreName)
setOtherCoreName
public final void setOtherCoreName(String otherCoreName)
setIndexInfoNeeded
public final void setIndexInfoNeeded(boolean isIndexInfoNeeded)
setAction
public void setAction(CoreAdminParams.CoreAdminAction action)
getParams
public SolrParams getParams()
- Specified by:
getParams
in class SolrRequest
getContentStreams
public Collection<ContentStream> getContentStreams()
throws IOException
- Specified by:
getContentStreams
in class SolrRequest
- Throws:
IOException
process
public CoreAdminResponse process(SolrServer server)
throws SolrServerException,
IOException
- Specified by:
process
in class SolrRequest
- Throws:
SolrServerException
IOException
reloadCore
public static CoreAdminResponse reloadCore(String name,
SolrServer server)
throws SolrServerException,
IOException
- Throws:
SolrServerException
IOException
unloadCore
public static CoreAdminResponse unloadCore(String name,
SolrServer server)
throws SolrServerException,
IOException
- Throws:
SolrServerException
IOException
unloadCore
public static CoreAdminResponse unloadCore(String name,
boolean deleteIndex,
SolrServer server)
throws SolrServerException,
IOException
- Throws:
SolrServerException
IOException
renameCore
public static CoreAdminResponse renameCore(String coreName,
String newName,
SolrServer server)
throws SolrServerException,
IOException
- Throws:
SolrServerException
IOException
getStatus
public static CoreAdminResponse getStatus(String name,
SolrServer server)
throws SolrServerException,
IOException
- Throws:
SolrServerException
IOException
createCore
public static CoreAdminResponse createCore(String name,
String instanceDir,
SolrServer server)
throws SolrServerException,
IOException
- Throws:
SolrServerException
IOException
createCore
public static CoreAdminResponse createCore(String name,
String instanceDir,
SolrServer server,
String configFile,
String schemaFile)
throws SolrServerException,
IOException
- Throws:
SolrServerException
IOException
createCore
public static CoreAdminResponse createCore(String name,
String instanceDir,
SolrServer server,
String configFile,
String schemaFile,
String dataDir,
String tlogDir)
throws SolrServerException,
IOException
- Throws:
SolrServerException
IOException
persist
@Deprecated
public static CoreAdminResponse persist(String fileName,
SolrServer server)
throws SolrServerException,
IOException
- Deprecated.
- Throws:
SolrServerException
IOException
mergeIndexes
public static CoreAdminResponse mergeIndexes(String name,
String[] indexDirs,
String[] srcCores,
SolrServer server)
throws SolrServerException,
IOException
- Throws:
SolrServerException
IOException
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.