Package org.jmxtrans.agent
Class JmxTransConfigurationXmlLoader
java.lang.Object
org.jmxtrans.agent.JmxTransConfigurationXmlLoader
- All Implemented Interfaces:
JmxTransConfigurationLoader
public class JmxTransConfigurationXmlLoader extends Object implements JmxTransConfigurationLoader
XML configuration parser.
- Author:
- Cyrille Le Clerc
-
Constructor Summary
Constructors Constructor Description JmxTransConfigurationXmlLoader(Resource configurationResource, PropertiesLoader propertiesLoader, ExpressionLanguageEngine expressionLanguageEngine) -
Method Summary
Modifier and Type Method Description JmxTransExporterConfigurationbuild(JmxTransConfigurationLoader configurationDocumentLoader)protected JmxTransExporterConfigurationbuild(Document document)longlastModified()JmxTransExporterConfigurationloadConfiguration()StringtoString()
-
Constructor Details
-
JmxTransConfigurationXmlLoader
public JmxTransConfigurationXmlLoader(@Nonnull Resource configurationResource, @Nonnull PropertiesLoader propertiesLoader, @Nonnull ExpressionLanguageEngine expressionLanguageEngine)
-
-
Method Details
-
loadConfiguration
- Specified by:
loadConfigurationin interfaceJmxTransConfigurationLoader
-
lastModified
public long lastModified()- Specified by:
lastModifiedin interfaceJmxTransConfigurationLoader- Returns:
- A
Longvalue representing the time the file was last modified, measured in milliseconds since the epoch (00:00:00 GMT, January 1, 1970), or0Lif the file does not exist or if an I/O error occurs
-
build
-
build
public JmxTransExporterConfiguration build(JmxTransConfigurationLoader configurationDocumentLoader) throws Exception- Throws:
Exception
-
toString
-