Class UploadConfigSetAPI
- java.lang.Object
-
- org.apache.solr.handler.configsets.ConfigSetAPIBase
-
- org.apache.solr.handler.configsets.UploadConfigSetAPI
-
public class UploadConfigSetAPI extends ConfigSetAPIBase
V2 API for uploading a new configset (or overwriting an existing one).This API (PUT /v2/cluster/configs/configsetName) is analogous to the v1 /admin/configs?action=UPLOAD command.
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONFIGSET_NAME_PLACEHOLDER
-
Fields inherited from class org.apache.solr.handler.configsets.ConfigSetAPIBase
configSetService, coreContainer, distributedCollectionConfigSetCommandRunner
-
-
Constructor Summary
Constructors Constructor Description UploadConfigSetAPI(CoreContainer coreContainer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
uploadConfigSet(SolrQueryRequest req, SolrQueryResponse rsp)
-
Methods inherited from class org.apache.solr.handler.configsets.ConfigSetAPIBase
createBaseNode, ensureConfigSetUploadEnabled, ensureNonEmptyInputStream, isTrusted, runConfigSetCommand
-
-
-
-
Field Detail
-
CONFIGSET_NAME_PLACEHOLDER
public static final String CONFIGSET_NAME_PLACEHOLDER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
UploadConfigSetAPI
public UploadConfigSetAPI(CoreContainer coreContainer)
-
-
Method Detail
-
uploadConfigSet
public void uploadConfigSet(SolrQueryRequest req, SolrQueryResponse rsp) throws Exception
- Throws:
Exception
-
-