public class SimpleJmxExporter extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
collectInterval |
protected TimeUnit |
collectIntervalTimeUnit |
protected OutputWriter |
outputWriter
visible for test
|
protected List<Query> |
queries
visible for test
|
| Constructor and Description |
|---|
SimpleJmxExporter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
collectAndExport() |
void |
start() |
void |
stop() |
String |
toString() |
SimpleJmxExporter |
withCollectInterval(int collectInterval,
TimeUnit collectIntervalTimeUnit) |
SimpleJmxExporter |
withOutputWriter(OutputWriter outputWriter) |
SimpleJmxExporter |
withQuery(String objectName,
String attribute,
String resultAlias) |
SimpleJmxExporter |
withQuery(String objectName,
String attribute,
String key,
String resultAlias) |
protected OutputWriter outputWriter
protected int collectInterval
protected TimeUnit collectIntervalTimeUnit
public SimpleJmxExporter withQuery(String objectName, String attribute, String resultAlias)
public SimpleJmxExporter withQuery(String objectName, String attribute, String key, String resultAlias)
public SimpleJmxExporter withOutputWriter(OutputWriter outputWriter)
public SimpleJmxExporter withCollectInterval(int collectInterval, TimeUnit collectIntervalTimeUnit)
public void start()
public void stop()
protected void collectAndExport()
Copyright © 2013. All Rights Reserved.