A C D E F G H I K L M N P R S T U V W 

A

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.
activeTasks() - Method in interface com.netflix.spectator.api.LongTaskTimer
Returns the current number of tasks being executed.
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.
apply(Object) - Method in class com.netflix.spectator.api.DoubleFunction
 
apply(double) - Method in class com.netflix.spectator.api.DoubleFunction
Apply a transform to the value `v`.
apply(Object) - Method in interface com.netflix.spectator.api.ValueFunction
Returns a double value based on the object ref.

C

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 - 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.ExtendedRegistry
 
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.
COLLECTION_SIZE - Static variable in class com.netflix.spectator.api.Functions
Returns the size of the collection.
collectionSize(Id, T) - Method in class com.netflix.spectator.api.ExtendedRegistry
Register a gauge that reports the size of the Collection.
collectionSize(String, T) - Method in class com.netflix.spectator.api.ExtendedRegistry
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.impl - package com.netflix.spectator.impl
 
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 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 - 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
 
counter(String) - Method in class com.netflix.spectator.api.ExtendedRegistry
Measures the rate of some activity.
counter(String, Iterable<Tag>) - Method in class com.netflix.spectator.api.ExtendedRegistry
Measures the rate of some activity.
counter(String, String...) - Method in class com.netflix.spectator.api.ExtendedRegistry
Measures the rate of some activity.
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.
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.ExtendedRegistry
 
createId(String, Iterable<Tag>) - Method in class com.netflix.spectator.api.ExtendedRegistry
 
createId(String, String...) - Method in class com.netflix.spectator.api.ExtendedRegistry
Creates an identifier for a meter.
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.

D

DefaultRegistry - Class in com.netflix.spectator.api
Default implementation of registry.
DefaultRegistry() - Constructor for class com.netflix.spectator.api.DefaultRegistry
Create a new instance.
DefaultRegistry(Clock) - Constructor for class com.netflix.spectator.api.DefaultRegistry
Create a new instance.
distributionSummary(Id) - Method in class com.netflix.spectator.api.AbstractRegistry
 
DistributionSummary - Interface in com.netflix.spectator.api
Track the sample distribution of events.
distributionSummary(Id) - Method in class com.netflix.spectator.api.ExtendedRegistry
 
distributionSummary(String) - Method in class com.netflix.spectator.api.ExtendedRegistry
Measures the sample distribution of events.
distributionSummary(String, Iterable<Tag>) - Method in class com.netflix.spectator.api.ExtendedRegistry
Measures the sample distribution of events.
distributionSummary(String, String...) - Method in class com.netflix.spectator.api.ExtendedRegistry
Measures the sample distribution of events.
distributionSummary(Id) - Method in class com.netflix.spectator.api.NoopRegistry
 
distributionSummary(Id) - Method in interface com.netflix.spectator.api.Registry
Measures the rate and variation in amount for some activity.
DoubleFunction - Class in com.netflix.spectator.api
Function to extract a double value from an object.
DoubleFunction() - Constructor for class com.netflix.spectator.api.DoubleFunction
 
duration(long) - Method in interface com.netflix.spectator.api.LongTaskTimer
Returns the current duration for a given active task.
duration() - Method in interface com.netflix.spectator.api.LongTaskTimer
Returns the cumulative duration of all current tasks in nanoseconds.

E

equals(Object) - Method in class com.netflix.spectator.api.Measurement
 
ExtendedRegistry - Class in com.netflix.spectator.api
Wraps a registry and provides additional helper methods to make it easier to use.
ExtendedRegistry(Registry) - Constructor for class com.netflix.spectator.api.ExtendedRegistry
Create a new instance.

F

Functions - Class in com.netflix.spectator.api
Common functions for use with gauges.

G

gauge(Id, T) - Method in class com.netflix.spectator.api.ExtendedRegistry
Register a gauge that reports the value of the Number.
gauge(String, T) - Method in class com.netflix.spectator.api.ExtendedRegistry
Register a gauge that reports the value of the Number.
gauge(String, Iterable<Tag>, T) - Method in class com.netflix.spectator.api.ExtendedRegistry
Register a gauge that reports the value of the Number.
gauge(Id, T, ValueFunction) - Method in class com.netflix.spectator.api.ExtendedRegistry
Register a gauge that reports the value of the object after the function f is applied.
gauge(String, T, ValueFunction) - Method in class com.netflix.spectator.api.ExtendedRegistry
Register a gauge that reports the value of the object.
Gauge - Interface in com.netflix.spectator.api
A meter with a single value that can only be sampled at a point in time.
get(Id) - Method in class com.netflix.spectator.api.AbstractRegistry
 
get(Id) - Method in class com.netflix.spectator.api.ExtendedRegistry
 
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.

H

hasExpired() - Method in class com.netflix.spectator.api.AbstractMeter
 
hasExpired() - Method in interface com.netflix.spectator.api.Meter
Indicates whether the meter is expired.
hashCode() - Method in class com.netflix.spectator.api.Measurement
 

I

id - Variable in class com.netflix.spectator.api.AbstractMeter
Identifier for the meter.
id() - Method in class com.netflix.spectator.api.AbstractMeter
 
Id - Interface in com.netflix.spectator.api
Identifier for a meter or measurement.
id() - Method in class com.netflix.spectator.api.Measurement
Identifier for the measurement.
id() - Method in interface com.netflix.spectator.api.Meter
Identifier used to lookup this meter in the registry.
IDENTITY - Static variable in class com.netflix.spectator.api.Functions
Identity function that just returns the passed in value if it implements the Number interface.
increment() - Method in interface com.netflix.spectator.api.Counter
Update the counter by one.
increment(long) - Method in interface com.netflix.spectator.api.Counter
Update the counter by amount.
invokeMethod(Method) - Static method in class com.netflix.spectator.api.Functions
Returns a function that invokes a method on the object via reflection.
iterator() - Method in class com.netflix.spectator.api.AbstractRegistry
 
iterator() - Method in class com.netflix.spectator.api.ExtendedRegistry
 
iterator() - Method in class com.netflix.spectator.api.NoopRegistry
 
iterator() - Method in interface com.netflix.spectator.api.Registry
Iterator for traversing the set of meters in the registry.

K

key() - Method in interface com.netflix.spectator.api.Tag
Key for the tag.

L

longTaskTimer(Id) - Method in class com.netflix.spectator.api.ExtendedRegistry
Measures the time taken for long tasks.
longTaskTimer(String) - Method in class com.netflix.spectator.api.ExtendedRegistry
Measures the time taken for long tasks.
longTaskTimer(String, Iterable<Tag>) - Method in class com.netflix.spectator.api.ExtendedRegistry
Measures the time taken for long tasks.
longTaskTimer(String, String...) - Method in class com.netflix.spectator.api.ExtendedRegistry
Measures the time taken for long tasks.
LongTaskTimer - Interface in com.netflix.spectator.api
Timer intended to track a small number of long running tasks.

M

ManualClock - Class in com.netflix.spectator.api
Clock implementation that allows the user to explicitly control the time.
ManualClock() - Constructor for class com.netflix.spectator.api.ManualClock
Create a new instance.
ManualClock(long, long) - Constructor for class com.netflix.spectator.api.ManualClock
Create a new instance.
MAP_SIZE - Static variable in class com.netflix.spectator.api.Functions
Returns the size of the map.
mapSize(Id, T) - Method in class com.netflix.spectator.api.ExtendedRegistry
Register a gauge that reports the size of the Map.
mapSize(String, T) - Method in class com.netflix.spectator.api.ExtendedRegistry
Register a gauge that reports the size of the Map.
measure() - Method in interface com.netflix.spectator.api.Meter
Get the set of measurements for this meter.
Measurement - Class in com.netflix.spectator.api
A measurement sampled from a meter.
Measurement(Id, long, double) - Constructor for class com.netflix.spectator.api.Measurement
Create a new instance.
Meter - Interface in com.netflix.spectator.api
A device for collecting a set of measurements.
methodValue(Id, Object, String) - Method in class com.netflix.spectator.api.ExtendedRegistry
Register a gauge that reports the return value of invoking the method on the object.
methodValue(String, Object, String) - Method in class com.netflix.spectator.api.ExtendedRegistry
Register a gauge that reports the return value of invoking the method on the object.
monotonicTime() - Method in interface com.netflix.spectator.api.Clock
Current time from a monotonic clock source.
monotonicTime() - Method in class com.netflix.spectator.api.ManualClock
 

N

name() - Method in interface com.netflix.spectator.api.Id
Description of the measurement that is being collected.
newCounter(Id) - Method in class com.netflix.spectator.api.AbstractRegistry
Create a new counter instance for a given id.
newCounter(Id) - Method in class com.netflix.spectator.api.DefaultRegistry
 
newDistributionSummary(Id) - Method in class com.netflix.spectator.api.AbstractRegistry
Create a new distribution summary instance for a given id.
newDistributionSummary(Id) - Method in class com.netflix.spectator.api.DefaultRegistry
 
newTimer(Id) - Method in class com.netflix.spectator.api.AbstractRegistry
Create a new timer instance for a given id.
newTimer(Id) - Method in class com.netflix.spectator.api.DefaultRegistry
 
NoopRegistry - Class in com.netflix.spectator.api
Registry implementation that does nothing.
NoopRegistry() - Constructor for class com.netflix.spectator.api.NoopRegistry
 

P

Preconditions - Class in com.netflix.spectator.impl
Internal convenience methods that help a method or constructor check whether it was invoked correctly.

R

record(long) - Method in interface com.netflix.spectator.api.DistributionSummary
Updates the statistics kept by the summary with the specified amount.
record(long, TimeUnit) - Method in interface com.netflix.spectator.api.Timer
Updates the statistics kept by the counter with the specified amount.
record(Callable<T>) - Method in interface com.netflix.spectator.api.Timer
Executes the callable `f` and records the time taken.
record(Runnable) - Method in interface com.netflix.spectator.api.Timer
Executes the runnable `f` and records the time taken.
ref - Variable in class com.netflix.spectator.api.AbstractMeter
Reference to the underlying object used to compute the measurements.
register(Meter) - Method in class com.netflix.spectator.api.AbstractRegistry
 
register(Meter) - Method in class com.netflix.spectator.api.ExtendedRegistry
 
register(Meter) - Method in class com.netflix.spectator.api.NoopRegistry
 
register(Meter) - Method in interface com.netflix.spectator.api.Registry
Add a custom meter to the registry.
Registry - Interface in com.netflix.spectator.api
Registry to manage a set of meters.
registry() - Static method in class com.netflix.spectator.api.Spectator
Return the default global registry implementation.

S

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.
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.
stop(long) - Method in interface com.netflix.spectator.api.LongTaskTimer
Indicates that a given task has completed.
SYSTEM - Static variable in interface com.netflix.spectator.api.Clock
Default clock implementation based on corresponding calls in System.

T

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.ExtendedRegistry
 
timer(String) - Method in class com.netflix.spectator.api.ExtendedRegistry
Measures the time taken for short tasks.
timer(String, Iterable<Tag>) - Method in class com.netflix.spectator.api.ExtendedRegistry
Measures the time taken for short tasks.
timer(String, String...) - Method in class com.netflix.spectator.api.ExtendedRegistry
Measures the time taken for short tasks.
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 - Interface in com.netflix.spectator.api
Timer intended to track a large number of short running events.
timestamp() - Method in class com.netflix.spectator.api.Measurement
The timestamp in milliseconds since the epoch for when the measurement was taken.
toString() - Method in class com.netflix.spectator.api.ExtendedRegistry
 
toString() - Method in class com.netflix.spectator.api.Measurement
 
totalAmount() - Method in interface com.netflix.spectator.api.DistributionSummary
The total amount of all recorded events since this summary was created.
totalTime() - Method in interface com.netflix.spectator.api.Timer
The total time in nanoseconds of all recorded events since this timer was created.

U

underlying() - Method in class com.netflix.spectator.api.ExtendedRegistry
Returns the underlying registry implementation that is being wrapped.

V

value() - Method in interface com.netflix.spectator.api.Gauge
Returns the current value.
value() - Method in class com.netflix.spectator.api.Measurement
Value for the measurement.
value() - Method in interface com.netflix.spectator.api.Tag
Value for the tag.
ValueFunction - Interface in com.netflix.spectator.api
Function to extract a double value from an object.

W

wallTime() - Method in interface com.netflix.spectator.api.Clock
Current wall time in milliseconds since the epoch.
wallTime() - Method in class com.netflix.spectator.api.ManualClock
 
withTag(String, String) - Method in interface com.netflix.spectator.api.Id
New id with an additional tag value.
withTag(Tag) - Method in interface com.netflix.spectator.api.Id
New id with an additional tag value.
A C D E F G H I K L M N P R S T U V W