Package org.apache.solr.handler.admin
Class AutoscalingHistoryHandler
- java.lang.Object
-
- org.apache.solr.handler.RequestHandlerBase
-
- org.apache.solr.handler.admin.AutoscalingHistoryHandler
-
- All Implemented Interfaces:
ApiSupport,SolrInfoBean,NestedRequestHandler,SolrMetricProducer,SolrRequestHandler,PermissionNameProvider
public class AutoscalingHistoryHandler extends RequestHandlerBase implements PermissionNameProvider
This handler makes it easier to retrieve a history of autoscaling events from the .system collection.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.solr.security.PermissionNameProvider
PermissionNameProvider.Name
-
Nested classes/interfaces inherited from interface org.apache.solr.core.SolrInfoBean
SolrInfoBean.Category, SolrInfoBean.Group
-
-
Field Summary
Fields Modifier and Type Field Description static StringACTION_PARAMstatic StringAFTER_ACTION_PARAMstatic StringBEFORE_ACTION_PARAMstatic StringCOLLECTION_PARAMstatic StringMESSAGE_PARAMstatic StringNODE_PARAMstatic StringSTAGE_PARAMstatic StringSYSTEM_COLLECTION_PARAMstatic StringTRIGGER_PARAMstatic StringTYPE_PARAM-
Fields inherited from class org.apache.solr.handler.RequestHandlerBase
appends, defaults, httpCaching, initArgs, invariants, metricManager, registryName
-
Fields inherited from interface org.apache.solr.security.PermissionNameProvider
ANY, NULL, values
-
Fields inherited from interface org.apache.solr.request.SolrRequestHandler
TYPE
-
-
Constructor Summary
Constructors Constructor Description AutoscalingHistoryHandler(CoreContainer coreContainer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Api>getApis()It is possible to support multiple v2 apis by a single requesthandlerSolrInfoBean.CategorygetCategory()Category of this componentStringgetDescription()Simple one or two line descriptionPermissionNameProvider.NamegetPermissionName(AuthorizationContext request)voidhandleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp)BooleanregisterV2()Whether this request handler must be made available at the /v2/ path-
Methods inherited from class org.apache.solr.handler.RequestHandlerBase
getInitArgs, getMetricNames, getMetricRegistry, getName, getPluginInfo, getRequestHandler, getSolrParamsFromNamedList, getSubHandler, handleRequest, init, initializeMetrics, setPluginInfo
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.solr.api.ApiSupport
registerV1
-
Methods inherited from interface org.apache.solr.core.SolrInfoBean
getMetricsSnapshot, registerMetricName
-
Methods inherited from interface org.apache.solr.metrics.SolrMetricProducer
initializeMetrics
-
-
-
-
Field Detail
-
SYSTEM_COLLECTION_PARAM
public static final String SYSTEM_COLLECTION_PARAM
- See Also:
- Constant Field Values
-
ACTION_PARAM
public static final String ACTION_PARAM
- See Also:
- Constant Field Values
-
MESSAGE_PARAM
public static final String MESSAGE_PARAM
- See Also:
- Constant Field Values
-
TRIGGER_PARAM
public static final String TRIGGER_PARAM
- See Also:
- Constant Field Values
-
TYPE_PARAM
public static final String TYPE_PARAM
- See Also:
- Constant Field Values
-
NODE_PARAM
public static final String NODE_PARAM
- See Also:
- Constant Field Values
-
COLLECTION_PARAM
public static final String COLLECTION_PARAM
- See Also:
- Constant Field Values
-
STAGE_PARAM
public static final String STAGE_PARAM
- See Also:
- Constant Field Values
-
BEFORE_ACTION_PARAM
public static final String BEFORE_ACTION_PARAM
- See Also:
- Constant Field Values
-
AFTER_ACTION_PARAM
public static final String AFTER_ACTION_PARAM
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AutoscalingHistoryHandler
public AutoscalingHistoryHandler(CoreContainer coreContainer)
-
-
Method Detail
-
getPermissionName
public PermissionNameProvider.Name getPermissionName(AuthorizationContext request)
- Specified by:
getPermissionNamein interfacePermissionNameProvider
-
handleRequestBody
public void handleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp) throws Exception
- Specified by:
handleRequestBodyin classRequestHandlerBase- Throws:
Exception
-
getDescription
public String getDescription()
Description copied from interface:SolrInfoBeanSimple one or two line description- Specified by:
getDescriptionin interfaceSolrInfoBean- Specified by:
getDescriptionin classRequestHandlerBase
-
getCategory
public SolrInfoBean.Category getCategory()
Description copied from interface:SolrInfoBeanCategory of this component- Specified by:
getCategoryin interfaceSolrInfoBean- Overrides:
getCategoryin classRequestHandlerBase
-
registerV2
public Boolean registerV2()
Description copied from interface:ApiSupportWhether this request handler must be made available at the /v2/ path- Specified by:
registerV2in interfaceApiSupport
-
getApis
public Collection<Api> getApis()
Description copied from interface:ApiSupportIt is possible to support multiple v2 apis by a single requesthandler- Specified by:
getApisin interfaceApiSupport- Overrides:
getApisin classRequestHandlerBase- Returns:
- the list of v2 api implementations
-
-