public interface MetricsService
| Modifier and Type | Method and Description |
|---|---|
com.google.common.util.concurrent.ListenableFuture<Void> |
addData(RawNumericMetric data) |
com.google.common.util.concurrent.ListenableFuture<Map<RawNumericMetric,Throwable>> |
addData(Set<RawNumericMetric> data) |
com.google.common.util.concurrent.ListenableFuture<Boolean> |
deleteMetric(String id)
Delete the metric with the passed id
|
com.google.common.util.concurrent.ListenableFuture<List<Counter>> |
findCounters(String group) |
com.google.common.util.concurrent.ListenableFuture<List<Counter>> |
findCounters(String group,
List<String> counterNames) |
com.google.common.util.concurrent.ListenableFuture<List<RawNumericMetric>> |
findData(String id,
long start,
long end)
Find and return raw metrics for {id} that have a timestamp between {start} and {end}
|
com.google.common.util.concurrent.ListenableFuture<List<RawNumericMetric>> |
findData(String bucket,
String id,
long start,
long end) |
com.google.common.util.concurrent.ListenableFuture<Boolean> |
idExists(String id)
Check if a metric with the passed {id} has been stored in the system
|
com.google.common.util.concurrent.ListenableFuture<List<String>> |
listMetrics()
Return a list of all metric names
|
void |
shutdown() |
void |
startUp(Map<String,String> params)
called to start the service up if needed
|
void |
startUp(com.datastax.driver.core.Session session)
Startup with a given cassandra session
|
com.google.common.util.concurrent.ListenableFuture<Void> |
updateCounter(Counter counter) |
com.google.common.util.concurrent.ListenableFuture<Void> |
updateCounters(Collection<Counter> counters) |
void startUp(Map<String,String> params)
params - from e.g. servlet contextvoid startUp(com.datastax.driver.core.Session session)
session - void shutdown()
com.google.common.util.concurrent.ListenableFuture<Void> addData(RawNumericMetric data)
com.google.common.util.concurrent.ListenableFuture<Map<RawNumericMetric,Throwable>> addData(Set<RawNumericMetric> data)
com.google.common.util.concurrent.ListenableFuture<List<RawNumericMetric>> findData(String bucket, String id, long start, long end)
com.google.common.util.concurrent.ListenableFuture<Void> updateCounter(Counter counter)
com.google.common.util.concurrent.ListenableFuture<Void> updateCounters(Collection<Counter> counters)
com.google.common.util.concurrent.ListenableFuture<List<Counter>> findCounters(String group)
com.google.common.util.concurrent.ListenableFuture<List<Counter>> findCounters(String group, List<String> counterNames)
com.google.common.util.concurrent.ListenableFuture<List<RawNumericMetric>> findData(String id, long start, long end)
com.google.common.util.concurrent.ListenableFuture<Boolean> idExists(String id)
com.google.common.util.concurrent.ListenableFuture<List<String>> listMetrics()
Copyright © 2014 Red Hat, Inc.. All rights reserved.