public class LaunchProcess extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
AWS_ARG |
static String |
BIOLOCKJ_TEST_MODE |
protected static String |
BIOLOCKJ_TEST_MODE_VALUE |
protected static String |
BLJ_ARG |
protected File |
BLJ_DIR |
protected File |
BLJ_PROJ_DIR |
protected String |
command |
protected static String |
CONFIG_ARG |
protected static String |
DEBUG_ARG |
(package private) static String |
DOCKER_ARG |
protected static String |
DOCKER_MAPPER_ARG |
protected static String |
ENV_ARG |
protected HashMap<String,String> |
envVars |
protected static String |
EXT_MODS_ARG |
protected static String |
FG_ARG |
(package private) static String |
GUI_ARG |
protected File |
initDir |
protected File |
mostRecent |
protected List<String> |
msgs |
protected HashMap<String,String> |
parameters |
protected static String |
PASSWORD_ARG |
static String |
PLS_USE_INSTALL |
protected static String |
PRECHECK_ARG |
protected static String |
PROJ_ARG |
protected static String |
RESTART_ARG |
protected static String |
UNUSED_PROPS_ARG |
protected static String |
WAIT_ARG |
Constructor and Description |
---|
LaunchProcess(String[] args) |
Modifier and Type | Method and Description |
---|---|
protected void |
assignMainArg() |
protected String |
catchFirstResponse(Process p) |
protected void |
checkBasicArgCompatibility() |
(package private) String |
createCmd() |
(package private) void |
displayArgVals() |
(package private) boolean |
foundNewPipeline() |
protected void |
gatherEnvVars() |
protected File |
getConfigFile() |
boolean |
getFlag(String key) |
protected String |
getMainArgVal() |
protected File |
getMostRecentPipeline() |
String |
getParameter(String key) |
(package private) File |
getPipedir() |
protected File |
getRestartDir() |
(package private) void |
grabPipelineLocation(String s) |
(package private) static boolean |
inTestMode() |
protected boolean |
isReplacementForPrecheck() |
static void |
main(String[] args) |
protected void |
printActionOptions() |
static void |
printHelp()
Print the help to standard err.
|
static void |
printHelp(PrintStream s)
Print the help menu.
|
protected void |
printInfo() |
(package private) void |
printPipeDir()
Print the path to the pipeline root to standard out.
|
protected void |
printPipelineStatus(int maxtime)
Show the status the just-launched pipeline.
|
static void |
printVersion()
Print the version to standard out.
|
protected boolean |
restartDirHasStatusFlag() |
(package private) void |
runCommand() |
(package private) void |
scanForKeys(String s)
Scan string for specific keys which warrant specific actions.
|
(package private) void |
setPipedir(File dir) |
(package private) static void |
showArgs(String process,
String[] args) |
protected void |
watchProcess(Process p) |
static final String GUI_ARG
protected static final String PASSWORD_ARG
protected static final String CONFIG_ARG
protected static final String RESTART_ARG
protected static final String AWS_ARG
static final String DOCKER_ARG
protected static final String FG_ARG
protected static final String EXT_MODS_ARG
protected static final String BLJ_ARG
protected static final String PROJ_ARG
protected static final String ENV_ARG
protected static final String WAIT_ARG
protected static final String PRECHECK_ARG
protected static final String UNUSED_PROPS_ARG
protected static final String DEBUG_ARG
protected static final String DOCKER_MAPPER_ARG
public static final String BIOLOCKJ_TEST_MODE
protected static String BIOLOCKJ_TEST_MODE_VALUE
public static final String PLS_USE_INSTALL
protected File BLJ_DIR
protected File BLJ_PROJ_DIR
protected File initDir
protected File mostRecent
protected String command
public LaunchProcess(String[] args) throws EndLaunch, DockerVolCreationException, ConfigPathException
static boolean inTestMode()
protected void assignMainArg()
protected void checkBasicArgCompatibility() throws EndLaunch, DockerVolCreationException
EndLaunch
DockerVolCreationException
protected void gatherEnvVars() throws EndLaunch, DockerVolCreationException, ConfigPathException
void displayArgVals()
public static void printVersion()
public static void printHelp()
public static void printHelp(PrintStream s)
s
- PrintStream; System.out or System.errpublic boolean getFlag(String key)
protected String getMainArgVal()
protected File getConfigFile()
protected File getRestartDir()
protected boolean restartDirHasStatusFlag()
protected File getMostRecentPipeline()
protected boolean isReplacementForPrecheck()
protected void printInfo() throws InterruptedException, IOException, EndLaunch
InterruptedException
IOException
EndLaunch
protected void printActionOptions()
protected void watchProcess(Process p) throws IOException, InterruptedException
IOException
InterruptedException
protected String catchFirstResponse(Process p) throws IOException
IOException
protected void printPipelineStatus(int maxtime) throws InterruptedException, IOException, EndLaunch
maxtime
- - maximum time in seconds to wait for a status.InterruptedException
IOException
EndLaunch
void setPipedir(File dir)
File getPipedir()
void printPipeDir()
boolean foundNewPipeline()
void scanForKeys(String s)
s
- void grabPipelineLocation(String s)