2010-06-15 12:43:46 +08:00
|
|
|
package org.broadinstitute.sting.queue.engine
|
|
|
|
|
|
2010-10-07 02:29:56 +08:00
|
|
|
import org.broadinstitute.sting.queue.function.CommandLineFunction
|
2010-10-14 06:22:01 +08:00
|
|
|
import org.broadinstitute.sting.queue.util._
|
2010-06-15 12:43:46 +08:00
|
|
|
|
2010-08-10 00:42:48 +08:00
|
|
|
/**
|
|
|
|
|
* Runs jobs on an LSF compute cluster.
|
|
|
|
|
*/
|
2011-01-11 05:07:29 +08:00
|
|
|
abstract class LsfJobRunner(val function: CommandLineFunction) extends CommandLineJobRunner with Logging {
|
2010-12-10 12:36:06 +08:00
|
|
|
protected var runStatus: RunnerStatus.Value = _
|
2010-10-07 02:29:56 +08:00
|
|
|
|
2011-01-21 06:34:43 +08:00
|
|
|
/** Job Id of the currently executing job. */
|
2010-12-10 12:36:06 +08:00
|
|
|
var jobId = -1L
|
2010-10-07 02:29:56 +08:00
|
|
|
|
2010-12-10 12:36:06 +08:00
|
|
|
// TODO: Full bsub command for debugging.
|
|
|
|
|
protected def bsubCommand = "bsub " + function.commandLine
|
2010-06-15 12:43:46 +08:00
|
|
|
}
|