Package com.zendesk.maxwell.util
Class AbstractConfig
- java.lang.Object
-
- com.zendesk.maxwell.util.AbstractConfig
-
- Direct Known Subclasses:
MaxwellBootstrapUtilityConfig
,MaxwellConfig
public abstract class AbstractConfig extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
DEFAULT_CONFIG_FILE
-
Constructor Summary
Constructors Constructor Description AbstractConfig()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract joptsimple.OptionParser
buildOptionParser()
protected boolean
fetchBooleanOption(String name, joptsimple.OptionSet options, Properties properties, boolean defaultVal)
protected Float
fetchFloatOption(String name, joptsimple.OptionSet options, Properties properties, Float defaultVal)
protected Integer
fetchIntegerOption(String name, joptsimple.OptionSet options, Properties properties, Integer defaultVal)
protected Long
fetchLongOption(String name, joptsimple.OptionSet options, Properties properties, Long defaultVal)
protected Object
fetchOption(String name, joptsimple.OptionSet options, Properties properties, Object defaultVal)
protected String
fetchStringOption(String name, joptsimple.OptionSet options, Properties properties, String defaultVal)
protected MaxwellMysqlConfig
parseMysqlConfig(String prefix, joptsimple.OptionSet options, Properties properties)
protected Properties
readPropertiesEnv(String envConfig)
protected Properties
readPropertiesFile(String filename, Boolean abortOnMissing)
protected void
usage(String string)
protected void
usage(String banner, MaxwellOptionParser optionParser, String section)
protected void
usageForOptions(String string, String... filterOptions)
-
-
-
Field Detail
-
DEFAULT_CONFIG_FILE
protected static final String DEFAULT_CONFIG_FILE
- See Also:
- Constant Field Values
-
-
Method Detail
-
buildOptionParser
protected abstract joptsimple.OptionParser buildOptionParser()
-
usage
protected void usage(String banner, MaxwellOptionParser optionParser, String section)
-
usage
protected void usage(String string)
-
readPropertiesFile
protected Properties readPropertiesFile(String filename, Boolean abortOnMissing)
-
readPropertiesEnv
protected Properties readPropertiesEnv(String envConfig)
-
fetchOption
protected Object fetchOption(String name, joptsimple.OptionSet options, Properties properties, Object defaultVal)
-
fetchStringOption
protected String fetchStringOption(String name, joptsimple.OptionSet options, Properties properties, String defaultVal)
-
fetchBooleanOption
protected boolean fetchBooleanOption(String name, joptsimple.OptionSet options, Properties properties, boolean defaultVal)
-
fetchLongOption
protected Long fetchLongOption(String name, joptsimple.OptionSet options, Properties properties, Long defaultVal)
-
fetchIntegerOption
protected Integer fetchIntegerOption(String name, joptsimple.OptionSet options, Properties properties, Integer defaultVal)
-
fetchFloatOption
protected Float fetchFloatOption(String name, joptsimple.OptionSet options, Properties properties, Float defaultVal)
-
parseMysqlConfig
protected MaxwellMysqlConfig parseMysqlConfig(String prefix, joptsimple.OptionSet options, Properties properties)
-
-