public class Scraper<ScrapeRuleType extends ScrapeRule> extends Object
| Modifier and Type | Field | Description |
|---|---|---|
static com.fasterxml.jackson.databind.ObjectMapper |
JMX_MAPPER |
| Constructor | Description |
|---|---|
Scraper(MBeanServer server,
List<ScrapeRuleType> rules) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
scrape(ScrapeOutput<ScrapeRuleType> output) |
|
void |
scrape(ScrapeOutput<ScrapeRuleType> output,
long duration,
TimeUnit unit) |
public Scraper(MBeanServer server, List<ScrapeRuleType> rules)
public void scrape(ScrapeOutput<ScrapeRuleType> output) throws InterruptedException
InterruptedExceptionpublic void scrape(ScrapeOutput<ScrapeRuleType> output, long duration, TimeUnit unit) throws InterruptedException
InterruptedExceptionCopyright © 2018. All rights reserved.