Package org.nuxeo.runtime.metrics
Class AbstractMetricsReporter
java.lang.Object
org.nuxeo.runtime.metrics.AbstractMetricsReporter
- All Implemented Interfaces:
MetricsReporter
- Direct Known Subclasses:
DatadogReporter,DatadogTraceReporter,GraphiteReporter,JaegerReporter,JmxReporter,PrometheusReporter,ScaleMetricReporter,StreamMetricsNuxeoReporter,ZipkinReporter,ZPageReporter
- Since:
- 11.1
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected Stringprotected Stringprotected Stringprotected booleangetOptionAsBoolean(String name, boolean defaultValue) protected intgetOptionAsInt(String name, int defaultValue) protected longvoidCalled on new instance.protected StringrequireOption(String name) protected StringrequireOption(String name, String errorMessage) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nuxeo.runtime.metrics.MetricsReporter
start, stop
-
Field Details
-
URL_OPTION
- See Also:
-
TIMEOUT_OPTION
- See Also:
-
DEFAULT_TIMEOUT
-
SERVICE_OPTION
- See Also:
-
DEFAULT_SERVICE
- See Also:
-
MAX_ATTRIBUTES_OPTION
- See Also:
-
DEFAULT_MAX_ATTRIBUTES
- See Also:
-
MAX_ANNOTATIONS_OPTION
- See Also:
-
DEFAULT_MAX_ANNOTATIONS
- See Also:
-
SAMPLER_PROB_OPTION
- See Also:
-
DEFAULT_SAMPLER_PROB
- See Also:
-
NUXEO_URL_PROP
- See Also:
-
options
-
pollInterval
protected long pollInterval
-
-
Constructor Details
-
AbstractMetricsReporter
public AbstractMetricsReporter()
-
-
Method Details
-
enableTracing
public void enableTracing() -
init
Description copied from interface:MetricsReporterCalled on new instance.- Specified by:
initin interfaceMetricsReporter
-
getCurrentHostname
-
getPollInterval
protected long getPollInterval() -
getHostnameFromNuxeoUrl
-
getOption
-
requireOption
-
requireOption
-
getOptionAsInt
-
getOptionAsBoolean
-