public final class CatalogMetrics extends Object implements PreQueryPlugin, PostQueryPlugin, PostIngestPlugin, PostResourcePlugin
| Modifier and Type | Field and Description |
|---|---|
protected com.codahale.metrics.Meter |
comparisonQueries |
protected com.codahale.metrics.Meter |
createdMetacards |
protected com.codahale.metrics.Meter |
deletedMetacards |
protected com.codahale.metrics.Meter |
exceptions |
protected static String |
EXCEPTIONS_SCOPE |
protected com.codahale.metrics.Meter |
federatedQueries |
protected com.codahale.metrics.Meter |
federationExceptions |
protected com.codahale.metrics.Meter |
functionQueries |
protected com.codahale.metrics.Meter |
fuzzyQueries |
protected static String |
INGEST_SCOPE |
protected com.codahale.metrics.MetricRegistry |
metrics |
protected com.codahale.metrics.Meter |
queries |
protected static String |
QUERIES_SCOPE |
protected com.codahale.metrics.JmxReporter |
reporter |
protected static String |
RESOURCE_SCOPE |
protected com.codahale.metrics.Meter |
resourceRetrival |
protected com.codahale.metrics.Histogram |
resultCount |
protected com.codahale.metrics.Meter |
sourceUnavailableExceptions |
protected com.codahale.metrics.Meter |
spatialQueries |
protected com.codahale.metrics.Meter |
temporalQueries |
protected com.codahale.metrics.Meter |
unsupportedQueryExceptions |
protected com.codahale.metrics.Meter |
updatedMetacards |
protected com.codahale.metrics.Meter |
xpathQueries |
| Constructor and Description |
|---|
CatalogMetrics(FilterAdapter filterAdapter) |
| Modifier and Type | Method and Description |
|---|---|
CreateResponse |
process(CreateResponse input)
Processes the
CreateResponse. |
DeleteResponse |
process(DeleteResponse input)
Processes the
DeleteResponse. |
QueryRequest |
process(QueryRequest input)
Processes a
QueryRequest prior to execution of the Query. |
QueryResponse |
process(QueryResponse input)
Processes a
QueryResponse after the execution of the Query. |
ResourceResponse |
process(ResourceResponse input)
Processes a
ResourceResponse after the execution of a getResource operation. |
UpdateResponse |
process(UpdateResponse input)
Processes the
UpdateResponse. |
protected static final String EXCEPTIONS_SCOPE
protected static final String QUERIES_SCOPE
protected static final String INGEST_SCOPE
protected static final String RESOURCE_SCOPE
protected final com.codahale.metrics.MetricRegistry metrics
protected final com.codahale.metrics.JmxReporter reporter
protected final com.codahale.metrics.Histogram resultCount
protected final com.codahale.metrics.Meter exceptions
protected final com.codahale.metrics.Meter unsupportedQueryExceptions
protected final com.codahale.metrics.Meter sourceUnavailableExceptions
protected final com.codahale.metrics.Meter federationExceptions
protected final com.codahale.metrics.Meter queries
protected final com.codahale.metrics.Meter federatedQueries
protected final com.codahale.metrics.Meter comparisonQueries
protected final com.codahale.metrics.Meter spatialQueries
protected final com.codahale.metrics.Meter xpathQueries
protected final com.codahale.metrics.Meter fuzzyQueries
protected final com.codahale.metrics.Meter functionQueries
protected final com.codahale.metrics.Meter temporalQueries
protected final com.codahale.metrics.Meter createdMetacards
protected final com.codahale.metrics.Meter updatedMetacards
protected final com.codahale.metrics.Meter deletedMetacards
protected final com.codahale.metrics.Meter resourceRetrival
public CatalogMetrics(FilterAdapter filterAdapter)
public QueryResponse process(QueryResponse input) throws PluginExecutionException, StopProcessingException
PostQueryPluginQueryResponse after the execution of the Query.process in interface PostQueryPlugininput - the QueryResponse to processQueryResponse to pass to the next PostQueryPlugin, or if this is the last PostQueryPlugin to be calledPluginExecutionException - thrown when an error occurs while processing the QueryResponseStopProcessingException - thrown to halt processing when a critical issue occurs during
processing. This is intended to prevent other plugins from processing as well.public QueryRequest process(QueryRequest input) throws PluginExecutionException, StopProcessingException
PreQueryPluginQueryRequest prior to execution of the Query.process in interface PreQueryPlugininput - the QueryRequest to processQueryRequest to pass to the next PreQueryPlugin, or if this is the last PreQueryPlugin to be calledPluginExecutionException - thrown when an error occurs while processing the QueryRequestStopProcessingException - thrown to halt processing when a critical issue occurs during
processing. This is intended to prevent other plugins from processing as well.public CreateResponse process(CreateResponse input) throws PluginExecutionException
PostIngestPluginCreateResponse.process in interface PostIngestPlugininput - the CreateResponse to processCreateResponse to pass to the next PostIngestPlugin, or if this is the last PostIngestPlugin to be calledPluginExecutionException - thrown when an error occurs during processingpublic UpdateResponse process(UpdateResponse input) throws PluginExecutionException
PostIngestPluginUpdateResponse.process in interface PostIngestPlugininput - the UpdateResponse to processUpdateResponse to pass to the next PostIngestPlugin, or if this is the last PostIngestPlugin to be calledPluginExecutionException - thrown when an error occurs during processingpublic DeleteResponse process(DeleteResponse input) throws PluginExecutionException
PostIngestPluginDeleteResponse.process in interface PostIngestPlugininput - the DeleteResponse to processDeleteResponse to pass to the next PostIngestPlugin, or if this is the last PostIngestPlugin to be calledPluginExecutionException - thrown when an error occurs during processingpublic ResourceResponse process(ResourceResponse input) throws PluginExecutionException, StopProcessingException
PostResourcePluginResourceResponse after the execution of a getResource operation.process in interface PostResourcePlugininput - the ResourceResponse to processResourceResponse to pass to the next PostResourcePlugin, or if this is the last PostResourcePlugin to be calledPluginExecutionException - thrown when an error occurs while processing the ResourceResponseStopProcessingException - thrown to halt processing when a critical issue occurs during
processing. This is intended to prevent other plugins from processing as well.This work is licensed under a Creative Commons Attribution 4.0 International License.