|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.yammer.metrics.util.Utils
public class Utils
| Method Summary | |
|---|---|
static Map<MetricName,Metric> |
filterMetrics(Map<MetricName,Metric> metrics,
MetricPredicate predicate)
|
static ScheduledExecutorService |
newScheduledThreadPool(int poolSize,
String name)
Deprecated. Get a thread pool via MetricsRegistry.threadPools()
instead |
static void |
shutdownThreadPools()
Deprecated. Shut down the thread pools object of the relevant MetricsRegistry instead |
static Map<String,Map<MetricName,Metric>> |
sortAndFilterMetrics(Map<MetricName,Metric> metrics,
MetricPredicate predicate)
|
static Map<String,Map<MetricName,Metric>> |
sortMetrics(Map<MetricName,Metric> metrics)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Map<String,Map<MetricName,Metric>> sortMetrics(Map<MetricName,Metric> metrics)
public static Map<MetricName,Metric> filterMetrics(Map<MetricName,Metric> metrics,
MetricPredicate predicate)
public static Map<String,Map<MetricName,Metric>> sortAndFilterMetrics(Map<MetricName,Metric> metrics,
MetricPredicate predicate)
public static ScheduledExecutorService newScheduledThreadPool(int poolSize,
String name)
MetricsRegistry.threadPools()
instead
poolSize - the number of threads to createname - the name of the pool
ScheduledExecutorServicepublic static void shutdownThreadPools()
MetricsRegistry instead
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||