Package org.jmxtrans.agent
Class JmxTransExporterConfiguration
java.lang.Object
org.jmxtrans.agent.JmxTransExporterConfiguration
public class JmxTransExporterConfiguration extends Object
- Author:
- Cyrille Le Clerc, Kristoffer Erlandsson
-
Field Summary
Fields Modifier and Type Field Description protected intcollectIntervalprotected TimeUnitcollectIntervalTimeUnitprotected List<Invocation>invocationsvisible for testprotected OutputWriteroutputWritervisible for testprotected List<Query>queriesvisible for testprotected ResultNameStrategyresultNameStrategy -
Constructor Summary
Constructors Constructor Description JmxTransExporterConfiguration(Document document) -
Method Summary
-
Field Details
-
queries
visible for test -
invocations
visible for test -
outputWriter
visible for test -
resultNameStrategy
-
collectInterval
protected int collectInterval -
collectIntervalTimeUnit
-
-
Constructor Details
-
JmxTransExporterConfiguration
- Parameters:
document- The document used when creating this configuration. Will be used to detect configuration changes in the underlying configuration file. No configuration will be read from this document - configuration has to be explicitly set with the withXxx methods.
-
-
Method Details
-
withQuery
-
withQuery
-
withInvocation
-
withOutputWriter
-
withCollectInterval
public JmxTransExporterConfiguration withCollectInterval(int collectInterval, @Nonnull TimeUnit collectIntervalTimeUnit) -
withConfigReloadInterval
-
getQueries
-
getInvocations
-
getOutputWriter
-
getResultNameStrategy
-
getCollectInterval
public int getCollectInterval() -
getCollectIntervalTimeUnit
-
toString
-
getConfigReloadInterval
-
getDocument
-
destroy
public void destroy() -
withDiscoveryQuery
-