public class MetricsHistoryHandler extends RequestHandlerBase implements PermissionNameProvider, Closeable
| Modifier and Type | Class and Description |
|---|---|
static class |
MetricsHistoryHandler.Cmd |
static class |
MetricsHistoryHandler.Format |
PermissionNameProvider.NameSolrInfoBean.Category, SolrInfoBean.Group| Modifier and Type | Field and Description |
|---|---|
static String |
COLLECT_PERIOD_PROP |
static int |
DEFAULT_COLLECT_PERIOD |
static List<String> |
DEFAULT_COLLECTION_GAUGES |
static List<String> |
DEFAULT_CORE_COUNTERS |
static List<String> |
DEFAULT_CORE_GAUGES |
static List<String> |
DEFAULT_JVM_GAUGES |
static List<String> |
DEFAULT_NODE_GAUGES |
static String |
ENABLE_NODES_PROP |
static String |
ENABLE_PROP |
static String |
ENABLE_REPLICAS_PROP |
static String |
NUM_NODES_KEY |
static String |
NUM_REPLICAS_KEY |
static String |
NUM_SHARDS_KEY |
static String |
SYNC_PERIOD_PROP |
static String |
URI_PREFIX |
appends, defaults, httpCaching, initArgs, invariants, metricManager, registryNameANY, NULL, valuesTYPE| Constructor and Description |
|---|
MetricsHistoryHandler(String nodeName,
MetricsHandler metricsHandler,
SolrClient solrClient,
SolrCloudManager cloudManager,
Map<String,Object> pluginArgs) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkSystemCollection() |
void |
close() |
Collection<Api> |
getApis()
It is possible to support multiple v2 apis by a single requesthandler
|
String |
getDescription()
Simple one or two line description
|
SolrRrdBackendFactory |
getFactory() |
PermissionNameProvider.Name |
getPermissionName(AuthorizationContext request) |
SolrClient |
getSolrClient() |
void |
handleRequestBody(SolrQueryRequest req,
SolrQueryResponse rsp) |
Boolean |
registerV2()
Whether this request handler must be made available at the /v2/ path
|
void |
removeHistory(String registry) |
getCategory, getInitArgs, getMetricNames, getMetricRegistry, getName, getPluginInfo, getRequestHandler, getSolrParamsFromNamedList, getSubHandler, handleRequest, init, initializeMetrics, setPluginInfoclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMetricsSnapshot, registerMetricNameregisterV1public static final String NUM_SHARDS_KEY
public static final String NUM_REPLICAS_KEY
public static final String NUM_NODES_KEY
public static final String COLLECT_PERIOD_PROP
public static final String SYNC_PERIOD_PROP
public static final String ENABLE_PROP
public static final String ENABLE_REPLICAS_PROP
public static final String ENABLE_NODES_PROP
public static final int DEFAULT_COLLECT_PERIOD
public static final String URI_PREFIX
public MetricsHistoryHandler(String nodeName, MetricsHandler metricsHandler, SolrClient solrClient, SolrCloudManager cloudManager, Map<String,Object> pluginArgs)
public void checkSystemCollection()
public SolrClient getSolrClient()
public void removeHistory(String registry) throws IOException
IOExceptionpublic SolrRrdBackendFactory getFactory()
public void close()
close in interface Closeableclose in interface AutoCloseablepublic void handleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp) throws Exception
handleRequestBody in class RequestHandlerBaseExceptionpublic String getDescription()
SolrInfoBeangetDescription in interface SolrInfoBeangetDescription in class RequestHandlerBasepublic PermissionNameProvider.Name getPermissionName(AuthorizationContext request)
getPermissionName in interface PermissionNameProviderpublic Boolean registerV2()
ApiSupportregisterV2 in interface ApiSupportpublic Collection<Api> getApis()
ApiSupportgetApis in interface ApiSupportgetApis in class RequestHandlerBaseCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.