public class ArrayDesignAlternativePopulateCli extends AbstractCLIContextCLI
auditEventService, auditTrailService
AUTO_OPTION_NAME, autoSeek, autoSeekEventType, FAILURE, FAILURE_FROM_ERROR_OBJECTS, FOOTER, HEADER, host, log, mDate, numThreads, port, SUCCESS, THREADS_OPTION
Constructor and Description |
---|
ArrayDesignAlternativePopulateCli() |
Modifier and Type | Method and Description |
---|---|
protected void |
buildOptions(org.apache.commons.cli.Options options)
Build option implementation.
|
protected void |
doWork()
Command line implementation.
|
GemmaCLI.CommandGroup |
getCommandGroup()
Obtain the command grup.
|
String |
getCommandName()
A short memorable name for the command that can be used to locate this class.
|
String |
getShortDesc()
Obtain a short description for this command explaining what it does.
|
protected void |
processOptions(org.apache.commons.cli.CommandLine commandLine)
Process command line options.
|
protected boolean |
requireLogin()
Indicate if the command requires authentication.
|
locateArrayDesign, readListFileToStrings, setTaxonByName
executeBatchTasks, getBean, getBean, getPersisterHelper, noNeedToRun, processStandardOptions
addAutoOption, addDateOption, addErrorObject, addErrorObject, addHostAndPortOptions, addSuccessObject, addThreadsOption, buildStandardOptions, executeCommand, getDoubleOptionValue, getDoubleOptionValue, getFileNameOptionValue, getFileNameOptionValue, getIntegerOptionValue, getIntegerOptionValue, getLimitingDate, printHelp, resetLogging
public GemmaCLI.CommandGroup getCommandGroup()
CLI
public String getCommandName()
CLI
protected void buildOptions(org.apache.commons.cli.Options options)
AbstractCLI
AbstractCLI.buildStandardOptions(Options)
so the options will be added after standard options.buildOptions
in class AbstractCLI
protected boolean requireLogin()
AbstractSpringAwareCLI
requireLogin
in class AbstractSpringAwareCLI
protected void processOptions(org.apache.commons.cli.CommandLine commandLine) throws Exception
AbstractCLI
AbstractCLI.buildOptions(Options)
and right before
AbstractCLI.doWork()
.processOptions
in class AbstractCLI
Exception
- in case of unrecoverable failure (i.e. missing option or invalid value), an exception can be
raised and will result in an exit code of AbstractCLI.FAILURE
.protected void doWork() throws Exception
AbstractCLI
AbstractCLI.buildOptions(Options)
and AbstractCLI.processOptions(CommandLine)
, so the implementation can assume that
all its arguments have already been initialized.doWork
in class AbstractCLI
Exception
- in case of unrecoverable failure, an exception is thrown and will result in a AbstractCLI.FAILURE
exit code, otherwise use AbstractCLI.addErrorObject(java.lang.Object, java.lang.String, java.lang.Throwable)
public String getShortDesc()
CLI
getShortDesc
in interface CLI
getShortDesc
in class AbstractSpringAwareCLI
Copyright © 2005–2023 Pavlidis lab, Michael Smith Laboratories and Department of Psychiatry, University of British Columbia. All rights reserved.