public class ExternalClockSpectatorRegistry
extends java.lang.Object
implements com.netflix.spectator.api.Registry
Modifier and Type | Method and Description |
---|---|
com.netflix.spectator.api.Clock |
clock() |
<T extends java.util.Collection<?>> |
collectionSize(com.netflix.spectator.api.Id id,
T collection) |
<T extends java.util.Collection<?>> |
collectionSize(java.lang.String name,
T collection) |
com.netflix.spectator.api.RegistryConfig |
config() |
com.netflix.spectator.api.Counter |
counter(com.netflix.spectator.api.Id id) |
com.netflix.spectator.api.Counter |
counter(java.lang.String name) |
com.netflix.spectator.api.Counter |
counter(java.lang.String name,
java.lang.Iterable<com.netflix.spectator.api.Tag> tags) |
com.netflix.spectator.api.Counter |
counter(java.lang.String name,
java.lang.String... tags) |
java.util.stream.Stream<com.netflix.spectator.api.Counter> |
counters() |
com.netflix.spectator.api.Id |
createId(java.lang.String name) |
com.netflix.spectator.api.Id |
createId(java.lang.String name,
java.lang.Iterable<com.netflix.spectator.api.Tag> tags) |
com.netflix.spectator.api.Id |
createId(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> tags) |
com.netflix.spectator.api.Id |
createId(java.lang.String name,
java.lang.String... tags) |
java.util.stream.Stream<com.netflix.spectator.api.DistributionSummary> |
distributionSummaries() |
com.netflix.spectator.api.DistributionSummary |
distributionSummary(com.netflix.spectator.api.Id id) |
com.netflix.spectator.api.DistributionSummary |
distributionSummary(java.lang.String name) |
com.netflix.spectator.api.DistributionSummary |
distributionSummary(java.lang.String name,
java.lang.Iterable<com.netflix.spectator.api.Tag> tags) |
com.netflix.spectator.api.DistributionSummary |
distributionSummary(java.lang.String name,
java.lang.String... tags) |
com.netflix.spectator.api.Gauge |
gauge(com.netflix.spectator.api.Id id) |
<T extends java.lang.Number> |
gauge(com.netflix.spectator.api.Id id,
T number) |
<T> T |
gauge(com.netflix.spectator.api.Id id,
T obj,
java.util.function.ToDoubleFunction<T> f) |
<T extends java.lang.Number> |
gauge(java.lang.String name,
java.lang.Iterable<com.netflix.spectator.api.Tag> tags,
T number) |
<T extends java.lang.Number> |
gauge(java.lang.String name,
T number) |
<T> T |
gauge(java.lang.String name,
T obj,
java.util.function.ToDoubleFunction<T> f) |
java.util.stream.Stream<com.netflix.spectator.api.Gauge> |
gauges() |
com.netflix.spectator.api.Meter |
get(com.netflix.spectator.api.Id id) |
com.netflix.spectator.api.Registry |
getSpectatorRegistry() |
java.util.Iterator<com.netflix.spectator.api.Meter> |
iterator() |
com.netflix.spectator.api.LongTaskTimer |
longTaskTimer(com.netflix.spectator.api.Id id) |
com.netflix.spectator.api.LongTaskTimer |
longTaskTimer(java.lang.String name) |
com.netflix.spectator.api.LongTaskTimer |
longTaskTimer(java.lang.String name,
java.lang.Iterable<com.netflix.spectator.api.Tag> tags) |
com.netflix.spectator.api.LongTaskTimer |
longTaskTimer(java.lang.String name,
java.lang.String... tags) |
<T extends java.util.Map<?,?>> |
mapSize(com.netflix.spectator.api.Id id,
T collection) |
<T extends java.util.Map<?,?>> |
mapSize(java.lang.String name,
T collection) |
void |
methodValue(com.netflix.spectator.api.Id id,
java.lang.Object obj,
java.lang.String method) |
void |
methodValue(java.lang.String name,
java.lang.Object obj,
java.lang.String method) |
void |
propagate(java.lang.String msg,
java.lang.Throwable t) |
void |
propagate(java.lang.Throwable t) |
void |
register(com.netflix.spectator.api.Meter meter) |
java.util.concurrent.ConcurrentMap<com.netflix.spectator.api.Id,java.lang.Object> |
state() |
java.util.stream.Stream<com.netflix.spectator.api.Meter> |
stream() |
com.netflix.spectator.api.Timer |
timer(com.netflix.spectator.api.Id id) |
com.netflix.spectator.api.Timer |
timer(java.lang.String name) |
com.netflix.spectator.api.Timer |
timer(java.lang.String name,
java.lang.Iterable<com.netflix.spectator.api.Tag> tags) |
com.netflix.spectator.api.Timer |
timer(java.lang.String name,
java.lang.String... tags) |
java.util.stream.Stream<com.netflix.spectator.api.Timer> |
timers() |
<T extends com.netflix.spectator.api.Registry> |
underlying(java.lang.Class<T> c) |
public com.netflix.spectator.api.Registry getSpectatorRegistry()
public com.netflix.spectator.api.Clock clock()
clock
in interface com.netflix.spectator.api.Registry
public com.netflix.spectator.api.RegistryConfig config()
config
in interface com.netflix.spectator.api.Registry
public com.netflix.spectator.api.Id createId(java.lang.String name)
createId
in interface com.netflix.spectator.api.Registry
public com.netflix.spectator.api.Id createId(java.lang.String name, java.lang.Iterable<com.netflix.spectator.api.Tag> tags)
createId
in interface com.netflix.spectator.api.Registry
public void register(com.netflix.spectator.api.Meter meter)
register
in interface com.netflix.spectator.api.Registry
public java.util.concurrent.ConcurrentMap<com.netflix.spectator.api.Id,java.lang.Object> state()
state
in interface com.netflix.spectator.api.Registry
public com.netflix.spectator.api.Counter counter(com.netflix.spectator.api.Id id)
counter
in interface com.netflix.spectator.api.Registry
public com.netflix.spectator.api.DistributionSummary distributionSummary(com.netflix.spectator.api.Id id)
distributionSummary
in interface com.netflix.spectator.api.Registry
public com.netflix.spectator.api.Timer timer(com.netflix.spectator.api.Id id)
timer
in interface com.netflix.spectator.api.Registry
public com.netflix.spectator.api.Gauge gauge(com.netflix.spectator.api.Id id)
gauge
in interface com.netflix.spectator.api.Registry
public com.netflix.spectator.api.Meter get(com.netflix.spectator.api.Id id)
get
in interface com.netflix.spectator.api.Registry
public java.util.Iterator<com.netflix.spectator.api.Meter> iterator()
iterator
in interface com.netflix.spectator.api.Registry
iterator
in interface java.lang.Iterable<com.netflix.spectator.api.Meter>
public <T extends com.netflix.spectator.api.Registry> T underlying(java.lang.Class<T> c)
underlying
in interface com.netflix.spectator.api.Registry
public com.netflix.spectator.api.Id createId(java.lang.String name, java.lang.String... tags)
createId
in interface com.netflix.spectator.api.Registry
public com.netflix.spectator.api.Id createId(java.lang.String name, java.util.Map<java.lang.String,java.lang.String> tags)
createId
in interface com.netflix.spectator.api.Registry
public com.netflix.spectator.api.Counter counter(java.lang.String name)
counter
in interface com.netflix.spectator.api.Registry
public com.netflix.spectator.api.Counter counter(java.lang.String name, java.lang.Iterable<com.netflix.spectator.api.Tag> tags)
counter
in interface com.netflix.spectator.api.Registry
public com.netflix.spectator.api.Counter counter(java.lang.String name, java.lang.String... tags)
counter
in interface com.netflix.spectator.api.Registry
public com.netflix.spectator.api.DistributionSummary distributionSummary(java.lang.String name)
distributionSummary
in interface com.netflix.spectator.api.Registry
public com.netflix.spectator.api.DistributionSummary distributionSummary(java.lang.String name, java.lang.Iterable<com.netflix.spectator.api.Tag> tags)
distributionSummary
in interface com.netflix.spectator.api.Registry
public com.netflix.spectator.api.DistributionSummary distributionSummary(java.lang.String name, java.lang.String... tags)
distributionSummary
in interface com.netflix.spectator.api.Registry
public com.netflix.spectator.api.Timer timer(java.lang.String name)
timer
in interface com.netflix.spectator.api.Registry
public com.netflix.spectator.api.Timer timer(java.lang.String name, java.lang.Iterable<com.netflix.spectator.api.Tag> tags)
timer
in interface com.netflix.spectator.api.Registry
public com.netflix.spectator.api.Timer timer(java.lang.String name, java.lang.String... tags)
timer
in interface com.netflix.spectator.api.Registry
public com.netflix.spectator.api.LongTaskTimer longTaskTimer(com.netflix.spectator.api.Id id)
longTaskTimer
in interface com.netflix.spectator.api.Registry
public com.netflix.spectator.api.LongTaskTimer longTaskTimer(java.lang.String name)
longTaskTimer
in interface com.netflix.spectator.api.Registry
public com.netflix.spectator.api.LongTaskTimer longTaskTimer(java.lang.String name, java.lang.Iterable<com.netflix.spectator.api.Tag> tags)
longTaskTimer
in interface com.netflix.spectator.api.Registry
public com.netflix.spectator.api.LongTaskTimer longTaskTimer(java.lang.String name, java.lang.String... tags)
longTaskTimer
in interface com.netflix.spectator.api.Registry
public <T extends java.lang.Number> T gauge(com.netflix.spectator.api.Id id, T number)
gauge
in interface com.netflix.spectator.api.Registry
public <T extends java.lang.Number> T gauge(java.lang.String name, T number)
gauge
in interface com.netflix.spectator.api.Registry
public <T extends java.lang.Number> T gauge(java.lang.String name, java.lang.Iterable<com.netflix.spectator.api.Tag> tags, T number)
gauge
in interface com.netflix.spectator.api.Registry
public <T> T gauge(com.netflix.spectator.api.Id id, T obj, java.util.function.ToDoubleFunction<T> f)
gauge
in interface com.netflix.spectator.api.Registry
public <T> T gauge(java.lang.String name, T obj, java.util.function.ToDoubleFunction<T> f)
gauge
in interface com.netflix.spectator.api.Registry
public <T extends java.util.Collection<?>> T collectionSize(com.netflix.spectator.api.Id id, T collection)
collectionSize
in interface com.netflix.spectator.api.Registry
public <T extends java.util.Collection<?>> T collectionSize(java.lang.String name, T collection)
collectionSize
in interface com.netflix.spectator.api.Registry
public <T extends java.util.Map<?,?>> T mapSize(com.netflix.spectator.api.Id id, T collection)
mapSize
in interface com.netflix.spectator.api.Registry
public <T extends java.util.Map<?,?>> T mapSize(java.lang.String name, T collection)
mapSize
in interface com.netflix.spectator.api.Registry
public void methodValue(com.netflix.spectator.api.Id id, java.lang.Object obj, java.lang.String method)
methodValue
in interface com.netflix.spectator.api.Registry
public void methodValue(java.lang.String name, java.lang.Object obj, java.lang.String method)
methodValue
in interface com.netflix.spectator.api.Registry
public java.util.stream.Stream<com.netflix.spectator.api.Meter> stream()
stream
in interface com.netflix.spectator.api.Registry
public java.util.stream.Stream<com.netflix.spectator.api.Counter> counters()
counters
in interface com.netflix.spectator.api.Registry
public java.util.stream.Stream<com.netflix.spectator.api.DistributionSummary> distributionSummaries()
distributionSummaries
in interface com.netflix.spectator.api.Registry
public java.util.stream.Stream<com.netflix.spectator.api.Timer> timers()
timers
in interface com.netflix.spectator.api.Registry
public java.util.stream.Stream<com.netflix.spectator.api.Gauge> gauges()
gauges
in interface com.netflix.spectator.api.Registry
public void propagate(java.lang.String msg, java.lang.Throwable t)
propagate
in interface com.netflix.spectator.api.Registry
public void propagate(java.lang.Throwable t)
propagate
in interface com.netflix.spectator.api.Registry