Class CoreAdminRequest.Create
- java.lang.Object
-
- org.apache.solr.client.solrj.SolrRequest<CoreAdminResponse>
-
- org.apache.solr.client.solrj.request.CoreAdminRequest
-
- org.apache.solr.client.solrj.request.CoreAdminRequest.Create
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- CoreAdminRequest
public static class CoreAdminRequest.Create extends CoreAdminRequest
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.solr.client.solrj.request.CoreAdminRequest
CoreAdminRequest.Create, CoreAdminRequest.CreateSnapshot, CoreAdminRequest.DeleteSnapshot, CoreAdminRequest.ListSnapshots, CoreAdminRequest.MergeIndexes, CoreAdminRequest.OverrideLastPublished, CoreAdminRequest.RequestRecovery, CoreAdminRequest.RequestSyncShard, CoreAdminRequest.Unload, CoreAdminRequest.WaitForState
-
Nested classes/interfaces inherited from class org.apache.solr.client.solrj.SolrRequest
SolrRequest.METHOD
-
-
Field Summary
Fields Modifier and Type Field Description protected String
collection
protected String
configName
protected String
configSet
protected String
dataDir
protected String
instanceDir
protected String
schemaName
protected String
ulogDir
-
Fields inherited from class org.apache.solr.client.solrj.request.CoreAdminRequest
action, core, isIndexInfoNeeded, other
-
Fields inherited from class org.apache.solr.client.solrj.SolrRequest
SUPPORTED_METHODS, useBinaryV2, usev2
-
-
Constructor Summary
Constructors Constructor Description Create()
-
Method Summary
-
Methods inherited from class org.apache.solr.client.solrj.request.CoreAdminRequest
createCore, createCore, createCore, createResponse, getCoreStatus, getCoreStatus, getStatus, mergeIndexes, reloadCore, renameCore, setAction, setIndexInfoNeeded, setOtherCoreName, swapCore, unloadCore, unloadCore, unloadCore
-
Methods inherited from class org.apache.solr.client.solrj.SolrRequest
addHeader, getBasePath, getBasicAuthPassword, getBasicAuthUser, getContentStreams, getContentWriter, getHeaders, getMethod, getPath, getQueryParams, getResponseParser, getStreamingResponseCallback, getUserPrincipal, process, process, setBasePath, setBasicAuthCredentials, setMethod, setPath, setQueryParams, setResponseParser, setStreamingResponseCallback, setUseBinaryV2, setUserPrincipal, setUseV2
-
-
-
-
Method Detail
-
setInstanceDir
public void setInstanceDir(String instanceDir)
-
setSchemaName
public void setSchemaName(String schema)
-
setConfigName
public void setConfigName(String config)
-
setDataDir
public void setDataDir(String dataDir)
-
setUlogDir
public void setUlogDir(String ulogDir)
-
setConfigSet
public void setConfigSet(String configSet)
-
setCollection
public void setCollection(String collection)
-
setNumShards
public void setNumShards(int numShards)
-
setShardId
public void setShardId(String shardId)
-
setRoles
public void setRoles(String roles)
-
setCoreNodeName
public void setCoreNodeName(String coreNodeName)
-
setIsTransient
public void setIsTransient(Boolean isTransient)
-
setIsLoadOnStartup
public void setIsLoadOnStartup(Boolean loadOnStartup)
-
setCollectionConfigName
public void setCollectionConfigName(String name)
-
getInstanceDir
public String getInstanceDir()
-
getSchemaName
public String getSchemaName()
-
getConfigName
public String getConfigName()
-
getDataDir
public String getDataDir()
-
getUlogDir
public String getUlogDir()
-
getConfigSet
public String getConfigSet()
-
getCollection
public String getCollection()
- Overrides:
getCollection
in classSolrRequest<CoreAdminResponse>
-
getShardId
public String getShardId()
-
getRoles
public String getRoles()
-
getCoreNodeName
public String getCoreNodeName()
-
getIsLoadOnStartup
public Boolean getIsLoadOnStartup()
-
getIsTransient
public Boolean getIsTransient()
-
getCollectionConfigName
public String getCollectionConfigName()
-
setCoreName
public void setCoreName(String coreName)
Provide the name of the core to be created. Core names must consist entirely of periods, underscores and alphanumerics. Other characters are not allowed.- Overrides:
setCoreName
in classCoreAdminRequest
- Throws:
IllegalArgumentException
- if the core name contains invalid characters.
-
getParams
public SolrParams getParams()
- Overrides:
getParams
in classCoreAdminRequest
-
-