public class PipelineUtil extends Object
| Constructor and Description |
|---|
PipelineUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
clearStatus(File dir)
Remove the current status flag of a given directory
|
static String |
clearStatus(String dirPath)
Remove the current status flag of a given directory
|
static boolean |
discardPrecheckPipeline(File pipeDir) |
static File |
getMasterConfig(File pipeDir)
Get the MASTER_*.properties file for a given pipeline.
|
static File |
getMostRecentPipeline(File projDir) |
static String |
getPipelineId(File pipeDir) |
static File |
getPipelineStatusFlag()
Get the status flag file of the current pipeline root.
|
static File |
getPipelineStatusFlag(File dir)
Get the status flag file for a given directory (could be a module, current pipeline, or restart pipeline).
|
static String |
getProjectName(File pipeDir)
Extract the project name from the an existing pipeline.
|
static String |
getProjectNameFromPropFile(File config)
Extract the project name from the Config file.
|
static boolean |
isModuleDir(File dir)
Determine if a given directory is a module directory in a pipeline.
|
static boolean |
isPipelineDir(File dir)
Determine if a given directory is a valid pipeline.
|
static boolean |
isPrecheckPipeline(File pipelineDir)
Determine if a given pipeline was run in precheck mode, ie using the parameter.
|
static File |
markStatus(BioModule module,
String statusFlag)
Set the status of a module using a status flag file.
|
static File |
markStatus(String statusFlag)
Set the status of a module or pipeline using a status flag file.
|
static File |
markStatus(String dirPath,
String statusFlag)
Set the status of a module or pipeline using a status flag file.
|
public static final String[] allFlags
public static boolean discardPrecheckPipeline(File pipeDir)
pipeDir - the pipeline directory to discardpublic static String getProjectNameFromPropFile(File config)
configName - file name to derive the name frompublic static String getProjectName(File pipeDir) throws InvalidPipelineException
configName - file name to derive the name fromInvalidPipelineExceptionpublic static String getPipelineId(File pipeDir) throws InvalidPipelineException
InvalidPipelineExceptionpublic static boolean isModuleDir(File dir)
dir - public static boolean isPipelineDir(File dir)
dir - public static File getMasterConfig(File pipeDir) throws InvalidPipelineException
pipeDir - a pipeline directoryInvalidPipelineExceptionpublic static boolean isPrecheckPipeline(File pipelineDir)
pipelineDir - public static File getPipelineStatusFlag(File dir)
dir - public static File getPipelineStatusFlag()
public static String clearStatus(File dir)
dir - The pipeline or module directory to remove the flag frompublic static String clearStatus(String dirPath)
dirPath - a String giving the absolute path to a pipeline or modulepublic static File markStatus(String dirPath, String statusFlag) throws BioLockJStatusException, IOException
dirPath - the module or pipeline to markstatusFlag - the flag to mark it withBioLockJStatusExceptionIOExceptionpublic static File markStatus(String statusFlag) throws BioLockJStatusException, IOException
statusFlag - BioLockJStatusExceptionIOExceptionpublic static File markStatus(BioModule module, String statusFlag) throws BioLockJStatusException, IOException
module - statusFlag - BioLockJStatusExceptionIOException