Package org.duracloud.mill.util
Class DriverSupport
- java.lang.Object
-
- org.duracloud.mill.util.DriverSupport
-
public abstract class DriverSupport extends Object
- Author:
- Daniel Bernstein Date: Apr 23, 2014
-
-
Constructor Summary
Constructors Constructor Description DriverSupport(org.apache.commons.cli.Options options)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voiddie()voidexecute(String[] args)protected abstract voidexecuteImpl(org.apache.commons.cli.CommandLine cmd)org.apache.commons.cli.CommandLineparseArgs(String[] args)protected voidprocessConfigFileOption(org.apache.commons.cli.CommandLine cmd)protected voidsetSystemProperty(String name, String value)protected voidsetSystemProperty(String name, String value, String defaultValue)voidusage()
-
-
-
Method Detail
-
die
public void die()
-
usage
public void usage()
-
parseArgs
public org.apache.commons.cli.CommandLine parseArgs(String[] args)
-
execute
public final void execute(String[] args)
-
processConfigFileOption
protected void processConfigFileOption(org.apache.commons.cli.CommandLine cmd)
- Parameters:
cmd-
-
executeImpl
protected abstract void executeImpl(org.apache.commons.cli.CommandLine cmd)
- Parameters:
cmd-
-
-