Class ServiceLauncher.MinimalGenericOptionsParser
java.lang.Object
org.apache.hadoop.util.GenericOptionsParser
org.apache.hadoop.service.launcher.ServiceLauncher.MinimalGenericOptionsParser
- Enclosing class:
- ServiceLauncher<S extends Service>
A generic options parser which does not parse any of the traditional
Hadoop options.
-
Constructor Summary
ConstructorsConstructorDescriptionMinimalGenericOptionsParser(Configuration conf, org.apache.commons.cli.Options options, String[] args) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.commons.cli.OptionsbuildGeneralOptions(org.apache.commons.cli.Options opts) Methods inherited from class org.apache.hadoop.util.GenericOptionsParser
getCommandLine, getConfiguration, getLibJars, getRemainingArgs, isParseSuccessful, printGenericCommandUsage
-
Constructor Details
-
MinimalGenericOptionsParser
public MinimalGenericOptionsParser(Configuration conf, org.apache.commons.cli.Options options, String[] args) throws IOException - Throws:
IOException
-
-
Method Details
-
buildGeneralOptions
protected org.apache.commons.cli.Options buildGeneralOptions(org.apache.commons.cli.Options opts) - Overrides:
buildGeneralOptionsin classGenericOptionsParser- Parameters:
opts- input opts.- Returns:
- Specify properties of each generic option.
Important: as
Optionis not thread safe, subclasses must synchronize use onOption.class
-