Commit 2e7179ef authored by Peter van 't Hof's avatar Peter van 't Hof

Added scala docs

parent 0b3c1e25
......@@ -22,9 +22,16 @@ import org.broadinstitute.gatk.queue.function.CommandLineFunction
*/
trait CommandLineResources extends CommandLineFunction with Configurable {
/**
* This value is overruling threads method when this is set.
* This can be used to limit the number of threads on a global level.
*/
lazy val maxThreads: Option[Int] = config("max_threads")
/** To set an other default threads this method need to be override */
def defaultThreads = 1
/** This method will get and set the cores requested */
final def threads = nCoresRequest match {
case Some(i) => i
case _ =>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment