|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.netflix.hystrix.contrib.metrics.eventstream.HystrixMetricsPoller
public class HystrixMetricsPoller
Polls Hystrix metrics and output JSON strings for each metric to a MetricsPollerListener.
Polling can be stopped/started. Use shutdown() to permanently shutdown the poller.
| Nested Class Summary | |
|---|---|
static interface |
HystrixMetricsPoller.MetricsAsJsonPollerListener
|
static class |
HystrixMetricsPoller.UnitTest
|
| Constructor Summary | |
|---|---|
HystrixMetricsPoller(HystrixMetricsPoller.MetricsAsJsonPollerListener listener,
int delay)
Allocate resources to begin polling. |
|
| Method Summary | |
|---|---|
boolean |
isRunning()
|
void |
pause()
Pause (stop) polling. |
void |
shutdown()
Stops polling and shuts down the ExecutorService. |
void |
start()
Start polling. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HystrixMetricsPoller(HystrixMetricsPoller.MetricsAsJsonPollerListener listener,
int delay)
Use start to begin polling.
Use shutdown to cleanup resources and stop polling.
Use pause to temporarily stop polling that can be restarted again with start.
MetricsAsJsonPollerListener - for callbacksdelay - | Method Detail |
|---|
public void start()
public void pause()
start as long as shutdown is not called.
public void shutdown()
This instance can no longer be used after calling shutdown.
public boolean isRunning()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||