MATLAB-CONDOR, 2D GUI VERSION 2

CONDORMATLAB.m

CDCheckLogFiles
CDCheckLogFileInChunk
CDGenerateCondorSubmitFile
CDGetOutput
CDGetProcessID
CDGetProcessIndex
CDGetSubmittedJobsInformation
CD_ResumeJobsInChunk
CDSubmitDataToCondor
CDSubmitJobsInChunk
MLAddFolder
MLAddJobActivity
MLAddUserActivity
MLCheckInput
MLClearOldData
MLCollectJobInfo
MLCollectJobInfoInChunk
MLDisplayError
MLDisplayInformation
MLDivideJobsToChunk
MLDrawCompleteJobHistogram
MLDrawCurrentData
MLGenerateAllLogFiles
MLGenerateAppSettings
MLGenerateJobNode
MLGenerateLogFile
MLGeneratePath
ML_GetAllJobsInXMLLogFile
MLGetCompleteJobs
MLGetIncompleteJobFromOneChunk
MLGetSettingInfo
MLGetTime
MLInitGlobalParams_DrawGraph
MLInitGlobalParams_ResumeGraph
ML_IsSubmittedChunk
MLRemoveSpace
MLSwapElements
MLUpdateJobStatus
MLUpdateJobStatusInChunk
MLUpdateLogFiles
MLUpdateProcessIDInLogFile
MLWriteData

function CDCheckLogFiles(JobList, LOG_LAST_POS, RUNTIMES, RUNTIMES_INDEX, FOLDER)

Description:

Check all log files to detect the completed Condor jobs, search the line: (1) Normal termination

Input:

- JobList: list of submitted Condor jobs.
- LOG_LAST_POST: position of the last lines in all the log files of submitted chunks that the application has read.
- RUNTIMES: hashtable that stores running time of Condor jobs.
- RUNTIMES_INDEX: total number of jobs in RUNTIMES hashtable.
- FOLDER: directory of the current chunk.

Process:

1. Open all log file.
2. Extract information of the jobs

Output:

- status: Boolean type. True if all the processes have completed, else return false.
- outJobList: list of terminated jobs.
- outLOG_LAST_POS: list of the last positions of the log files that application has read.
- outRUNTIMES: hashtable that stores running time of Condor jobs.
- outRUNTIMES_INDEX: total number of jobs in RUNTIMES hashtable.