public class ConfigSetsHandler extends RequestHandlerBase implements PermissionNameProvider
SolrRequestHandler
for ConfigSets API requests.Modifier and Type | Class and Description |
---|---|
static class |
ConfigSetsHandler.ConfigSetOperation |
PermissionNameProvider.Name
SolrInfoBean.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, solrMetricsContext
ANY, NULL, values
TYPE
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, setPluginInfo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMetricRegistry, getMetricsSnapshot, registerMetricName
close, getUniqueMetricTag, initializeMetrics
registerV1, registerV2
public 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 RequestHandlerBase
Exception
protected void checkErrors()
protected void sendToZk(SolrQueryResponse rsp, ConfigSetsHandler.ConfigSetOperation operation, Map<String,Object> result) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperException
InterruptedException
public String getDescription()
SolrInfoBean
getDescription
in interface SolrInfoBean
getDescription
in class RequestHandlerBase
public SolrInfoBean.Category getCategory()
SolrInfoBean
getCategory
in interface SolrInfoBean
getCategory
in class RequestHandlerBase
public PermissionNameProvider.Name getPermissionName(AuthorizationContext ctx)
getPermissionName
in interface PermissionNameProvider
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.