public abstract class SparkCommandLineProgram extends CommandLineProgram implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
java.lang.String |
programName |
static java.lang.String |
SPARK_PROGRAM_NAME_LONG_NAME |
SparkCommandLineArgumentCollection |
sparkArgs |
GATK_CONFIG_FILE, logger, NIO_MAX_REOPENS, NIO_PROJECT_FOR_REQUESTER_PAYS, QUIET, specialArgumentsCollection, tmpDir, useJdkDeflater, useJdkInflater, VERBOSITY
Constructor and Description |
---|
SparkCommandLineProgram() |
Modifier and Type | Method and Description |
---|---|
protected void |
afterPipeline(org.apache.spark.api.java.JavaSparkContext ctx)
Extend this method to run code after the pipeline returns.
|
protected java.lang.Object |
doWork()
Do the work after command line has been parsed.
|
protected java.lang.String |
getProgramName()
Returns the program's name.
|
protected abstract void |
runPipeline(org.apache.spark.api.java.JavaSparkContext ctx)
Runs the pipeline.
|
customCommandLineValidation, getCommandLine, getCommandLineParser, getDefaultHeaders, getMetricsFile, getPluginDescriptors, getSupportInformation, getToolkitName, getToolkitShortName, getToolStatusWarning, getUsage, getVersion, instanceMain, instanceMainPostParseArgs, isBetaFeature, isExperimentalFeature, onShutdown, onStartup, parseArgs, printLibraryVersions, printSettings, printStartupMessage, runTool, setDefaultHeaders, warnOnToolStatus
public static final java.lang.String SPARK_PROGRAM_NAME_LONG_NAME
@Argument(doc="Name of the program running", fullName="program-name", optional=true) public java.lang.String programName
@ArgumentCollection public SparkCommandLineArgumentCollection sparkArgs
protected java.lang.Object doWork()
CommandLineProgram
doWork
in class CommandLineProgram
protected abstract void runPipeline(org.apache.spark.api.java.JavaSparkContext ctx)
protected void afterPipeline(org.apache.spark.api.java.JavaSparkContext ctx)
protected java.lang.String getProgramName()
programName
argument is provided, returns that. Otherwise, returns the simple name of the class.
Subclasses can override if desired.