compbio.engine
Class LoadBalancer

java.lang.Object
  extended by compbio.engine.LoadBalancer

public class LoadBalancer
extends Object

This class decides where to execute the job. If the local engine is enabled in the configuration file and it has free threads and the size of the tasks permits the local execution, then the local execution will be favoured.

Version:
1.0 March 2009
Author:
pvtroshin

Method Summary
static Executable.ExecProvider getEngine(Executable<?> executable)
           
static
<T,V> Executable.ExecProvider
getEngine(Executable<V> executable, List<FastaSequence> dataSet)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getEngine

public static Executable.ExecProvider getEngine(Executable<?> executable)

getEngine

public static <T,V> Executable.ExecProvider getEngine(Executable<V> executable,
                                                      List<FastaSequence> dataSet)