Package com.example.provider1
Class ProviderUtil
- java.lang.Object
-
- com.example.BaseUtil
-
- com.example.provider1.ProviderUtil
-
public class ProviderUtil extends BaseUtil
This class provides the configuration used for the provider instance.Overwriting configuration steps allows customizing the behavior of the framework through injection.
-
-
Field Summary
Fields Modifier and Type Field Description static StringOPT_REPORT_INTERVALstatic StringOPT_WAVEFORMS_INTERVAL
-
Constructor Summary
Constructors Constructor Description ProviderUtil(String[] args)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidaddMetricQualityDemo(AbstractMetricValue val)protected org.apache.commons.cli.OptionsconfigureOptions()Configures the available command line flags.com.google.inject.InjectorgetInjector()DurationgetReportInterval()DurationgetWaveformInterval()-
Methods inherited from class com.example.BaseUtil
createCustomCryptoSettings, getAddress, getEpr, getIface, getParsedArgs, isUseTls, setAddress, setEpr, setIface, setUseTls
-
-
-
-
Field Detail
-
OPT_REPORT_INTERVAL
public static final String OPT_REPORT_INTERVAL
- See Also:
- Constant Field Values
-
OPT_WAVEFORMS_INTERVAL
public static final String OPT_WAVEFORMS_INTERVAL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ProviderUtil
public ProviderUtil(String[] args)
-
-
Method Detail
-
getInjector
public com.google.inject.Injector getInjector()
-
addMetricQualityDemo
public static void addMetricQualityDemo(AbstractMetricValue val)
-
configureOptions
protected org.apache.commons.cli.Options configureOptions()
Description copied from class:BaseUtilConfigures the available command line flags.- Overrides:
configureOptionsin classBaseUtil- Returns:
- configured command line flags
-
getReportInterval
public Duration getReportInterval()
-
getWaveformInterval
public Duration getWaveformInterval()
-
-