public class MetricsHistoryHandler extends RequestHandlerBase implements PermissionNameProvider, Closeable
| Modifier and Type | Class and Description |
|---|---|
static class |
MetricsHistoryHandler.Cmd
Deprecated.
|
static class |
MetricsHistoryHandler.Format
Deprecated.
|
PermissionNameProvider.NameSolrInfoBean.Category, SolrInfoBean.Group| Modifier and Type | Field and Description |
|---|---|
static String |
COLLECT_PERIOD_PROP
Deprecated.
|
static int |
DEFAULT_COLLECT_PERIOD
Deprecated.
|
static List<String> |
DEFAULT_COLLECTION_GAUGES
Deprecated.
|
static List<String> |
DEFAULT_CORE_COUNTERS
Deprecated.
|
static List<String> |
DEFAULT_CORE_GAUGES
Deprecated.
|
static List<String> |
DEFAULT_JVM_GAUGES
Deprecated.
|
static List<String> |
DEFAULT_NODE_GAUGES
Deprecated.
|
static String |
ENABLE_NODES_PROP
Deprecated.
|
static String |
ENABLE_PROP
Deprecated.
|
static String |
ENABLE_REPLICAS_PROP
Deprecated.
|
static String |
NUM_NODES_KEY
Deprecated.
|
static String |
NUM_REPLICAS_KEY
Deprecated.
|
static String |
NUM_SHARDS_KEY
Deprecated.
|
static String |
SYNC_PERIOD_PROP
Deprecated.
|
static String |
URI_PREFIX
Deprecated.
|
appends, defaults, httpCaching, initArgs, invariants, solrMetricsContextANY, NULL, valuesTYPE| Constructor and Description |
|---|
MetricsHistoryHandler(String nodeName,
MetricsHandler metricsHandler,
SolrClient solrClient,
SolrCloudManager cloudManager,
Map<String,Object> pluginArgs)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkSystemCollection()
Deprecated.
|
void |
close()
Deprecated.
Implementations should always call
SolrMetricProducer.super.close() to ensure that
metrics with the same life-cycle as this component are properly unregistered. |
Collection<Api> |
getApis()
Deprecated.
It is possible to support multiple v2 apis by a single requesthandler
|
String |
getDescription()
Deprecated.
Simple one or two line description
|
SolrRrdBackendFactory |
getFactory()
Deprecated.
|
PermissionNameProvider.Name |
getPermissionName(AuthorizationContext request)
Deprecated.
|
SolrClient |
getSolrClient()
Deprecated.
|
void |
handleRequestBody(SolrQueryRequest req,
SolrQueryResponse rsp)
Deprecated.
|
Boolean |
registerV2()
Deprecated.
Whether this request handler must be made available at the /v2/ path
|
void |
removeHistory(String registry)
Deprecated.
|
getCategory, getInitArgs, getMetricNames, getName, getPluginInfo, getRequestHandler, getSolrMetricsContext, getSolrParamsFromNamedList, getSubHandler, handleRequest, init, initializeMetrics, setPluginInfoclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMetricRegistry, getMetricsSnapshot, registerMetricNamegetUniqueMetricTag, initializeMetricsregisterV1public 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()
SolrMetricProducerSolrMetricProducer.super.close() to ensure that
metrics with the same life-cycle as this component are properly unregistered. This prevents
obscure memory leaks.
from: https://docs.oracle.com/javase/8/docs/api/java/lang/AutoCloseable.html
While this interface method is declared to throw Exception, implementers are strongly encouraged
to declare concrete implementations of the close method to throw more specific exceptions, or to
throw no exception at all if the close operation cannot fail.close in interface Closeableclose in interface AutoCloseableclose in interface SolrMetricProducerpublic 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-2021 Apache Software Foundation. All Rights Reserved.