public class AutoScalingHandler extends RequestHandlerBase implements PermissionNameProvider
PermissionNameProvider.NameSolrInfoBean.Category, SolrInfoBean.Group| Modifier and Type | Field and Description |
|---|---|
protected SolrCloudManager |
cloudManager |
static String |
HANDLER_PATH |
protected SolrResourceLoader |
loader |
protected AutoScaling.TriggerFactory |
triggerFactory |
appends, defaults, httpCaching, initArgs, invariants, solrMetricsContextANY, NULL, valuesTYPE| Constructor and Description |
|---|
AutoScalingHandler(SolrCloudManager cloudManager,
SolrResourceLoader loader) |
| Modifier and Type | Method and Description |
|---|---|
Collection<Api> |
getApis()
It is possible to support multiple v2 apis by a single requesthandler
|
String |
getDescription()
Simple one or two line description
|
PermissionNameProvider.Name |
getPermissionName(AuthorizationContext request) |
SolrRequestHandler |
getSubHandler(String path)
Return a RequestHandler to handle a subpath from the path this handler is registered.
|
void |
handleRequestBody(SolrQueryRequest req,
SolrQueryResponse rsp) |
void |
processOps(SolrQueryRequest req,
SolrQueryResponse rsp,
List<CommandOperation> ops) |
Boolean |
registerV2()
Whether this request handler must be made available at the /v2/ path
|
static AutoScalingConfig |
withSystemLogListener(AutoScalingConfig autoScalingConfig,
String triggerName) |
getCategory, getInitArgs, getMetricNames, getName, getPluginInfo, getRequestHandler, getSolrMetricsContext, getSolrParamsFromNamedList, handleRequest, init, initializeMetrics, setPluginInfoclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMetricRegistry, getMetricsSnapshot, registerMetricNameclose, getUniqueMetricTag, initializeMetricsregisterV1public static final String HANDLER_PATH
protected final SolrCloudManager cloudManager
protected final SolrResourceLoader loader
protected final AutoScaling.TriggerFactory triggerFactory
public AutoScalingHandler(SolrCloudManager cloudManager, SolrResourceLoader loader)
public void handleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp) throws Exception
handleRequestBody in class RequestHandlerBaseExceptionpublic void processOps(SolrQueryRequest req, SolrQueryResponse rsp, List<CommandOperation> ops) throws org.apache.zookeeper.KeeperException, InterruptedException, IOException
org.apache.zookeeper.KeeperExceptionInterruptedExceptionIOExceptionpublic static AutoScalingConfig withSystemLogListener(AutoScalingConfig autoScalingConfig, String triggerName)
public String getDescription()
SolrInfoBeangetDescription in interface SolrInfoBeangetDescription in class RequestHandlerBasepublic PermissionNameProvider.Name getPermissionName(AuthorizationContext request)
getPermissionName in interface PermissionNameProviderpublic Collection<Api> getApis()
ApiSupportgetApis in interface ApiSupportgetApis in class RequestHandlerBasepublic Boolean registerV2()
ApiSupportregisterV2 in interface ApiSupportpublic SolrRequestHandler getSubHandler(String path)
NestedRequestHandlergetSubHandler in interface NestedRequestHandlergetSubHandler in class RequestHandlerBaseCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.