- AbstractMeter<T> - Class in com.netflix.spectator.api
-
Helper base class for meters that maintains a weak reference to the object being measured.
- AbstractMeter(Clock, Id, T) - Constructor for class com.netflix.spectator.api.AbstractMeter
-
Create a new instance.
- AbstractRegistry - Class in com.netflix.spectator.api
-
Base class to make it easier to implement a simple registry that only needs to customise the
types returned for Counter, DistributionSummary, and Timer calls.
- AbstractRegistry(Clock) - Constructor for class com.netflix.spectator.api.AbstractRegistry
-
Create a new instance.
- AbstractRegistry(Clock, RegistryConfig) - Constructor for class com.netflix.spectator.api.AbstractRegistry
-
Create a new instance.
- AbstractTimer - Class in com.netflix.spectator.api
-
Base class to simplify implementing a
Timer
.
- AbstractTimer(Clock) - Constructor for class com.netflix.spectator.api.AbstractTimer
-
Create a new instance.
- activeTasks() - Method in interface com.netflix.spectator.api.LongTaskTimer
-
Returns the current number of tasks being executed.
- add(Registry) - Method in class com.netflix.spectator.api.CompositeRegistry
-
Add a registry to the composite.
- addAndGet(double) - Method in class com.netflix.spectator.impl.AtomicDouble
-
Add amount
to the value and return the new value.
- AGE - Static variable in class com.netflix.spectator.api.Functions
-
Age function based on the system clock.
- age(Clock) - Static method in class com.netflix.spectator.api.Functions
-
Returns a function that computes the age in seconds.
- age(long, TimeUnit) - Static method in class com.netflix.spectator.api.histogram.BucketFunctions
-
Returns a function that maps age values to a set of buckets.
- ageBiasOld(long, TimeUnit) - Static method in class com.netflix.spectator.api.histogram.BucketFunctions
-
Returns a function that maps age values to a set of buckets.
- apply(double) - Method in class com.netflix.spectator.api.DoubleFunction
-
Apply a transform to the value `v`.
- applyAsDouble(T) - Method in class com.netflix.spectator.api.DoubleFunction
-
- asArray() - Static method in class com.netflix.spectator.api.histogram.PercentileBuckets
-
Returns a copy of the bucket values array.
- AtomicDouble - Class in com.netflix.spectator.impl
-
Wrapper around AtomicLong to make working with double values easier.
- AtomicDouble() - Constructor for class com.netflix.spectator.impl.AtomicDouble
-
Create an instance with an initial value of 0.
- AtomicDouble(double) - Constructor for class com.netflix.spectator.impl.AtomicDouble
-
Create an instance with an initial value of init
.
- checkArg(boolean, String) - Static method in class com.netflix.spectator.impl.Preconditions
-
Ensures the truth of an expression involving the state of the calling instance.
- checkNotNull(T, String) - Static method in class com.netflix.spectator.impl.Preconditions
-
Ensures the object reference is not null.
- checkState(boolean, String) - Static method in class com.netflix.spectator.impl.Preconditions
-
Ensures the truth of an expression involving the state of the calling instance.
- clock - Variable in class com.netflix.spectator.api.AbstractMeter
-
Clock to use for getting measurement timestamps.
- clock() - Method in class com.netflix.spectator.api.AbstractRegistry
-
- clock - Variable in class com.netflix.spectator.api.AbstractTimer
-
Clock to use for measuring the time of calls.
- Clock - Interface in com.netflix.spectator.api
-
A timing source that can be used to access the current wall time as well as a high resolution
monotonic time to measuring elapsed times.
- clock() - Method in class com.netflix.spectator.api.CompositeRegistry
-
- clock() - Method in class com.netflix.spectator.api.ExtendedRegistry
-
Deprecated.
- clock() - Method in class com.netflix.spectator.api.NoopRegistry
-
- clock() - Method in interface com.netflix.spectator.api.Registry
-
The clock used by the registry for timing events.
- collectionSize(Id, T) - Method in interface com.netflix.spectator.api.Registry
-
Register a gauge that reports the size of the
Collection
.
- collectionSize(String, T) - Method in interface com.netflix.spectator.api.Registry
-
Register a gauge that reports the size of the
Collection
.
- com.netflix.spectator.api - package com.netflix.spectator.api
-
Primary interfaces for working with spectator.
- com.netflix.spectator.api.histogram - package com.netflix.spectator.api.histogram
-
- com.netflix.spectator.impl - package com.netflix.spectator.impl
-
Classes in this package are only intended for use internally within spectator.
- compareAndSet(double, double) - Method in class com.netflix.spectator.impl.AtomicDouble
-
Set the value to amount
if the current value is expect
.
- CompositeRegistry - Class in com.netflix.spectator.api
-
Maps calls to zero or more sub-registries.
- config() - Method in class com.netflix.spectator.api.AbstractRegistry
-
- config() - Method in interface com.netflix.spectator.api.Registry
-
Configuration settings used for this registry.
- Config - Class in com.netflix.spectator.impl
-
Helper methods for accessing configuration settings.
- count() - Method in interface com.netflix.spectator.api.Counter
-
The cumulative count since this counter was created.
- count() - Method in interface com.netflix.spectator.api.DistributionSummary
-
The number of times that record has been called since this timer was created.
- count() - Method in class com.netflix.spectator.api.histogram.BucketCounter
-
Not supported, will always return 0.
- count() - Method in class com.netflix.spectator.api.histogram.BucketDistributionSummary
-
Not supported, will always return 0.
- count() - Method in class com.netflix.spectator.api.histogram.BucketTimer
-
Not supported, will always return 0.
- count() - Method in class com.netflix.spectator.api.histogram.PercentileDistributionSummary
-
- count() - Method in class com.netflix.spectator.api.histogram.PercentileTimer
-
- count() - Method in interface com.netflix.spectator.api.Timer
-
The number of times that record has been called since this timer was created.
- counter(Id) - Method in class com.netflix.spectator.api.AbstractRegistry
-
- counter(Id) - Method in class com.netflix.spectator.api.CompositeRegistry
-
- Counter - Interface in com.netflix.spectator.api
-
Measures the rate of change based on calls to increment.
- counter(Id) - Method in class com.netflix.spectator.api.ExtendedRegistry
-
Deprecated.
- counter(Id) - Method in class com.netflix.spectator.api.NoopRegistry
-
- counter(Id) - Method in interface com.netflix.spectator.api.Registry
-
Measures the rate of some activity.
- counter(String) - Method in interface com.netflix.spectator.api.Registry
-
Measures the rate of some activity.
- counter(String, Iterable<Tag>) - Method in interface com.netflix.spectator.api.Registry
-
Measures the rate of some activity.
- counter(String, String...) - Method in interface com.netflix.spectator.api.Registry
-
Measures the rate of some activity.
- counters() - Method in interface com.netflix.spectator.api.Registry
-
Returns a stream of all registered counters.
- createId(String) - Method in class com.netflix.spectator.api.AbstractRegistry
-
- createId(String, Iterable<Tag>) - Method in class com.netflix.spectator.api.AbstractRegistry
-
- createId(String) - Method in class com.netflix.spectator.api.CompositeRegistry
-
- createId(String, Iterable<Tag>) - Method in class com.netflix.spectator.api.CompositeRegistry
-
- createId(String) - Method in class com.netflix.spectator.api.ExtendedRegistry
-
Deprecated.
- createId(String, Iterable<Tag>) - Method in class com.netflix.spectator.api.ExtendedRegistry
-
Deprecated.
- createId(String) - Method in class com.netflix.spectator.api.NoopRegistry
-
- createId(String, Iterable<Tag>) - Method in class com.netflix.spectator.api.NoopRegistry
-
- createId(String) - Method in interface com.netflix.spectator.api.Registry
-
Creates an identifier for a meter.
- createId(String, Iterable<Tag>) - Method in interface com.netflix.spectator.api.Registry
-
Creates an identifier for a meter.
- createId(String, String...) - Method in interface com.netflix.spectator.api.Registry
-
Creates an identifier for a meter.
- createId(String, Map<String, String>) - Method in interface com.netflix.spectator.api.Registry
-
Creates an identifier for a meter.
- createProxy(Class<T>, Function<String, String>) - Static method in class com.netflix.spectator.impl.Config
-
Create a proxy class that implements the inferface specified.
- Gauge - Interface in com.netflix.spectator.api
-
A meter with a single value that can only be sampled at a point in time.
- gauge(Id, T) - Method in interface com.netflix.spectator.api.Registry
-
Register a gauge that reports the value of the
Number
.
- gauge(String, T) - Method in interface com.netflix.spectator.api.Registry
-
Register a gauge that reports the value of the
Number
.
- gauge(String, Iterable<Tag>, T) - Method in interface com.netflix.spectator.api.Registry
-
Register a gauge that reports the value of the
Number
.
- gauge(Id, T, ToDoubleFunction<T>) - Method in interface com.netflix.spectator.api.Registry
-
Register a gauge that reports the value of the object after the function
f
is applied.
- gauge(String, T, ToDoubleFunction<T>) - Method in interface com.netflix.spectator.api.Registry
-
Register a gauge that reports the value of the object.
- get(Id) - Method in class com.netflix.spectator.api.AbstractRegistry
-
- get(Id) - Method in class com.netflix.spectator.api.CompositeRegistry
-
- get(Id) - Method in class com.netflix.spectator.api.ExtendedRegistry
-
Deprecated.
- get(Registry, Id, LongFunction<String>) - Static method in class com.netflix.spectator.api.histogram.BucketCounter
-
Creates a distribution summary object that manages a set of counters based on the bucket
function supplied.
- get(Registry, Id, LongFunction<String>) - Static method in class com.netflix.spectator.api.histogram.BucketDistributionSummary
-
Creates a distribution summary object that manages a set of distribution summaries based on
the bucket function supplied.
- get(Registry, Id, LongFunction<String>) - Static method in class com.netflix.spectator.api.histogram.BucketTimer
-
Creates a timer object that manages a set of timers based on the bucket
function supplied.
- get(int) - Static method in class com.netflix.spectator.api.histogram.PercentileBuckets
-
Return the value of the bucket at index i
.
- get(Registry, Id) - Static method in class com.netflix.spectator.api.histogram.PercentileDistributionSummary
-
Creates a distribution summary object that can be used for estimating percentiles.
- get(Registry, Id) - Static method in class com.netflix.spectator.api.histogram.PercentileTimer
-
Creates a timer object that can be used for estimating percentiles.
- get(Id) - Method in class com.netflix.spectator.api.NoopRegistry
-
- get(Id) - Method in interface com.netflix.spectator.api.Registry
-
Returns the meter associated with a given id.
- get(String) - Method in interface com.netflix.spectator.api.RegistryConfig
-
Get the value associated with a key.
- get() - Method in class com.netflix.spectator.impl.AtomicDouble
-
Return the current value.
- getAndAdd(double) - Method in class com.netflix.spectator.impl.AtomicDouble
-
Add amount
to the value and return the previous value.
- getAndSet(double) - Method in class com.netflix.spectator.impl.AtomicDouble
-
Set the value to amount
and return the previous value.
- getCurrent() - Method in class com.netflix.spectator.impl.StepDouble
-
Get the AtomicDouble for the current bucket.
- getCurrent() - Method in class com.netflix.spectator.impl.StepLong
-
Get the AtomicLong for the current bucket.
- getTagValue(Id, String) - Static method in class com.netflix.spectator.api.Utils
-
Returns the value associated with with a given key or null if no such key is present in the
set of tags.
- getTagValue(Iterable<Tag>, String) - Static method in class com.netflix.spectator.api.Utils
-
Returns the value associated with with a given key or null if no such key is present in the
set of tags.
- globalRegistry() - Static method in class com.netflix.spectator.api.Spectator
-
Returns the global composite registry.
- percentile(long[], double) - Static method in class com.netflix.spectator.api.histogram.PercentileBuckets
-
Compute a percentile based on the counts for the buckets.
- percentile(double) - Method in class com.netflix.spectator.api.histogram.PercentileDistributionSummary
-
Computes the specified percentile for this distribution summary.
- percentile(double) - Method in class com.netflix.spectator.api.histogram.PercentileTimer
-
Computes the specified percentile for this timer.
- PercentileBuckets - Class in com.netflix.spectator.api.histogram
-
Bucket values for estimating a percentile from a set of non-negative long values.
- PercentileDistributionSummary - Class in com.netflix.spectator.api.histogram
-
Distribution summary that buckets the counts to allow for estimating percentiles.
- percentiles(long[], double[], double[]) - Static method in class com.netflix.spectator.api.histogram.PercentileBuckets
-
Compute a set of percentiles based on the counts for the buckets.
- PercentileTimer - Class in com.netflix.spectator.api.histogram
-
Timer that buckets the counts to allow for estimating percentiles.
- poll() - Method in class com.netflix.spectator.impl.StepDouble
-
Get the value for the last completed interval.
- poll() - Method in class com.netflix.spectator.impl.StepLong
-
Get the value for the last completed interval.
- pollAsRate() - Method in class com.netflix.spectator.impl.StepDouble
-
Get the value for the last completed interval as a rate per second.
- pollAsRate() - Method in class com.netflix.spectator.impl.StepLong
-
Get the value for the last completed interval as a rate per second.
- pollAsRate() - Method in interface com.netflix.spectator.impl.StepValue
-
Get the value for the last completed interval as a rate per second.
- Preconditions - Class in com.netflix.spectator.impl
-
Internal convenience methods that help a method or constructor check whether it was invoked
correctly.
- propagate(String, Throwable) - Method in interface com.netflix.spectator.api.Registry
-
Log a warning and if enabled propagate the exception t
.
- propagate(Throwable) - Method in interface com.netflix.spectator.api.Registry
-
Log a warning using the message from the exception and if enabled propagate the
exception t
.
- propagateWarnings() - Method in interface com.netflix.spectator.api.RegistryConfig
-
Should an exception be thrown for warnings?
- propagateWarnings() - Static method in class com.netflix.spectator.impl.Config
-
Should an exception be thrown for warnings?
- schedule(Scheduler.Options, Runnable) - Method in class com.netflix.spectator.impl.Scheduler
-
Schedule a repetitive task.
- Scheduler - Class in com.netflix.spectator.impl
-
This class is an internal implementation detail only intended for use within spectator.
- Scheduler(Registry, String, int) - Constructor for class com.netflix.spectator.impl.Scheduler
-
Create a new instance.
- Scheduler.Options - Class in com.netflix.spectator.impl
-
Options to control how a task will get executed.
- Scheduler.Policy - Enum in com.netflix.spectator.impl
-
Repetition schedulingPolicy for scheduled tasks.
- set(double) - Method in class com.netflix.spectator.impl.AtomicDouble
-
Set the current value to amount
.
- setMonotonicTime(long) - Method in class com.netflix.spectator.api.ManualClock
-
Set the monotonic time to the value t
.
- setWallTime(long) - Method in class com.netflix.spectator.api.ManualClock
-
Set the wall time to the value t
.
- shutdown() - Method in class com.netflix.spectator.impl.Scheduler
-
Shutdown and cleanup resources associated with the scheduler.
- Spectator - Class in com.netflix.spectator.api
-
Static factory used to access the main global registry.
- start() - Method in interface com.netflix.spectator.api.LongTaskTimer
-
Start keeping time for a task and return a task id that can be used to look up how long
it has been running.
- Statistic - Enum in com.netflix.spectator.api
-
The valid set of statistics that can be reported by timers and distribution summaries.
- StepDouble - Class in com.netflix.spectator.impl
-
Utility class for managing a set of AtomicLong instances mapped to a particular step interval.
- StepDouble(double, Clock, long) - Constructor for class com.netflix.spectator.impl.StepDouble
-
Create a new instance.
- StepLong - Class in com.netflix.spectator.impl
-
Utility class for managing a set of AtomicLong instances mapped to a particular step interval.
- StepLong(long, Clock, long) - Constructor for class com.netflix.spectator.impl.StepLong
-
Create a new instance.
- StepValue - Interface in com.netflix.spectator.impl
-
- stop(long) - Method in interface com.netflix.spectator.api.LongTaskTimer
-
Indicates that a given task has completed.
- stream() - Method in interface com.netflix.spectator.api.Registry
-
Returns a stream of all registered meters.
- SYSTEM - Static variable in interface com.netflix.spectator.api.Clock
-
Default clock implementation based on corresponding calls in
System
.
- Tag - Interface in com.netflix.spectator.api
-
Key/value pair used to classify and drill into measurements.
- tags() - Method in interface com.netflix.spectator.api.Id
-
Other dimensions that can be used to classify the measurement.
- timer(Id) - Method in class com.netflix.spectator.api.AbstractRegistry
-
- timer(Id) - Method in class com.netflix.spectator.api.CompositeRegistry
-
- timer(Id) - Method in class com.netflix.spectator.api.ExtendedRegistry
-
Deprecated.
- timer(Id) - Method in class com.netflix.spectator.api.NoopRegistry
-
- timer(Id) - Method in interface com.netflix.spectator.api.Registry
-
Measures the rate and time taken for short running tasks.
- timer(String) - Method in interface com.netflix.spectator.api.Registry
-
Measures the time taken for short tasks.
- timer(String, Iterable<Tag>) - Method in interface com.netflix.spectator.api.Registry
-
Measures the time taken for short tasks.
- timer(String, String...) - Method in interface com.netflix.spectator.api.Registry
-
Measures the time taken for short tasks.
- Timer - Interface in com.netflix.spectator.api
-
Timer intended to track a large number of short running events.
- timers() - Method in interface com.netflix.spectator.api.Registry
-
Returns a stream of all registered timers.
- timestamp() - Method in class com.netflix.spectator.api.Measurement
-
The timestamp in milliseconds since the epoch for when the measurement was taken.
- timestamp() - Method in class com.netflix.spectator.impl.StepDouble
-
Get the timestamp for the end of the last completed interval.
- timestamp() - Method in class com.netflix.spectator.impl.StepLong
-
Get the timestamp for the end of the last completed interval.
- timestamp() - Method in interface com.netflix.spectator.impl.StepValue
-
Get the timestamp for the end of the last completed interval.
- toList(Iterable<T>) - Static method in class com.netflix.spectator.api.Utils
-
Returns a list with a copy of the data from the iterable.
- toList(Iterator<T>) - Static method in class com.netflix.spectator.api.Utils
-
Returns a list with the data from the iterator.
- toString() - Method in class com.netflix.spectator.api.BasicTag
-
- toString() - Method in class com.netflix.spectator.api.ExtendedRegistry
-
Deprecated.
- toString() - Method in class com.netflix.spectator.api.Measurement
-
- toString() - Method in class com.netflix.spectator.impl.StepDouble
-
- toString() - Method in class com.netflix.spectator.impl.StepLong
-
- totalAmount() - Method in interface com.netflix.spectator.api.DistributionSummary
-
The total amount of all recorded events since this summary was created.
- totalAmount() - Method in class com.netflix.spectator.api.histogram.BucketCounter
-
Not supported, will always return 0.
- totalAmount() - Method in class com.netflix.spectator.api.histogram.BucketDistributionSummary
-
Not supported, will always return 0.
- totalAmount() - Method in class com.netflix.spectator.api.histogram.PercentileDistributionSummary
-
- totalTime() - Method in class com.netflix.spectator.api.histogram.BucketTimer
-
Not supported, will always return 0.
- totalTime() - Method in class com.netflix.spectator.api.histogram.PercentileTimer
-
- totalTime() - Method in interface com.netflix.spectator.api.Timer
-
The total time in nanoseconds of all recorded events since this timer was created.