public class ConfigSetsHandler extends RequestHandlerBase implements PermissionNameProvider
SolrRequestHandler for ConfigSets API requests.| Modifier and Type | Class and Description |
|---|---|
static class |
ConfigSetsHandler.ConfigSetOperation |
PermissionNameProvider.NameSolrInfoBean.Category, SolrInfoBean.Group| Modifier and Type | Field and Description |
|---|---|
static String |
AUTOCREATED_CONFIGSET_SUFFIX |
protected CoreContainer |
coreContainer |
static String |
DEFAULT_CONFIGSET_NAME |
static long |
DEFAULT_ZK_TIMEOUT |
static Boolean |
DISABLE_CREATE_AUTH_CHECKS |
appends, defaults, httpCaching, initArgs, invariants, solrMetricsContextANY, NULL, valuesTYPE| Constructor and Description |
|---|
ConfigSetsHandler(CoreContainer coreContainer)
Overloaded ctor to inject CoreContainer into the handler.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkErrors() |
SolrInfoBean.Category |
getCategory()
Category of this component
|
String |
getDescription()
Simple one or two line description
|
PermissionNameProvider.Name |
getPermissionName(AuthorizationContext ctx) |
static String |
getSuffixedNameForAutoGeneratedConfigSet(String configName) |
void |
handleRequestBody(SolrQueryRequest req,
SolrQueryResponse rsp) |
static boolean |
isAutoGeneratedConfigSet(String configName) |
protected void |
sendToZk(SolrQueryResponse rsp,
ConfigSetsHandler.ConfigSetOperation operation,
Map<String,Object> result) |
getApis, getInitArgs, getMetricNames, getName, getPluginInfo, getRequestHandler, getSolrMetricsContext, getSolrParamsFromNamedList, getSubHandler, handleRequest, init, initializeMetrics, setPluginInfoclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMetricRegistry, getMetricsSnapshot, registerMetricNameclose, getUniqueMetricTag, initializeMetricsregisterV1, registerV2public static final Boolean DISABLE_CREATE_AUTH_CHECKS
public static final String DEFAULT_CONFIGSET_NAME
public static final String AUTOCREATED_CONFIGSET_SUFFIX
protected final CoreContainer coreContainer
public static long DEFAULT_ZK_TIMEOUT
public ConfigSetsHandler(CoreContainer coreContainer)
coreContainer - Core Container of the solr webapp installed.public static String getSuffixedNameForAutoGeneratedConfigSet(String configName)
public static boolean isAutoGeneratedConfigSet(String configName)
public void handleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp) throws Exception
handleRequestBody in class RequestHandlerBaseExceptionprotected void checkErrors()
protected void sendToZk(SolrQueryResponse rsp, ConfigSetsHandler.ConfigSetOperation operation, Map<String,Object> result) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic String getDescription()
SolrInfoBeangetDescription in interface SolrInfoBeangetDescription in class RequestHandlerBasepublic SolrInfoBean.Category getCategory()
SolrInfoBeangetCategory in interface SolrInfoBeangetCategory in class RequestHandlerBasepublic PermissionNameProvider.Name getPermissionName(AuthorizationContext ctx)
getPermissionName in interface PermissionNameProviderCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.