Package com.dynatrace.file.util
Class DynatraceFileBasedConfigurationProvider
- java.lang.Object
-
- com.dynatrace.file.util.DynatraceFileBasedConfigurationProvider
-
public class DynatraceFileBasedConfigurationProvider extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidforceOverwriteConfig(java.lang.String fileName, java.time.Duration pollInterval)This method should never be called by user code.static DynatraceFileBasedConfigurationProvidergetInstance()java.lang.StringgetMetricIngestEndpoint()java.lang.StringgetMetricIngestToken()
-
-
-
Method Detail
-
getInstance
public static DynatraceFileBasedConfigurationProvider getInstance()
-
forceOverwriteConfig
public void forceOverwriteConfig(java.lang.String fileName, java.time.Duration pollInterval)This method should never be called by user code. It is only available for testing. When passing null for thefileName, this method just shuts down the file polling mechanism.VisibleForTesting
- Parameters:
fileName- The filename of the file to watch.pollInterval- Polling interval for interval-based file pollers.
-
getMetricIngestEndpoint
public java.lang.String getMetricIngestEndpoint()
-
getMetricIngestToken
public java.lang.String getMetricIngestToken()
-
-