public class Scraper<ScrapeRuleType extends ScrapeRule> extends Object
| Modifier and Type | Field and Description |
|---|---|
net.thisptr.jmx.exporter.agent.scraper.Scraper.CachedMBeanInfo |
MBEAN_INFO_NEGATIVE_CACHE
Null object to use with Guava cache, because Guava cache cannot cache null values.
|
| Constructor and Description |
|---|
Scraper(MBeanServer server,
List<ScrapeRuleType> rules,
ScrapeRuleType defaultRule) |
| Modifier and Type | Method and Description |
|---|---|
void |
scrape(ScrapeOutput<ScrapeRuleType> output) |
void |
scrape(ScrapeOutput<ScrapeRuleType> output,
long duration,
TimeUnit unit) |
void |
scrape(ScrapeOutput<ScrapeRuleType> output,
ObjectName _name) |
public final net.thisptr.jmx.exporter.agent.scraper.Scraper.CachedMBeanInfo MBEAN_INFO_NEGATIVE_CACHE
public Scraper(MBeanServer server, List<ScrapeRuleType> rules, ScrapeRuleType defaultRule)
public void scrape(ScrapeOutput<ScrapeRuleType> output) throws InterruptedException
InterruptedExceptionpublic void scrape(ScrapeOutput<ScrapeRuleType> output, long duration, TimeUnit unit) throws InterruptedException
InterruptedExceptionpublic void scrape(ScrapeOutput<ScrapeRuleType> output, ObjectName _name) throws InstanceNotFoundException
InstanceNotFoundExceptionCopyright © 2020. All rights reserved.