use of cbit.vcell.message.server.dispatcher.BatchScheduler.SchedulerDecisions in project vcell by virtualcell.
the class BatchSchedulerTest method test.
@Test
public void test() {
ArrayList<BatchScheduler.ActiveJob> activeJobs = new ArrayList<BatchScheduler.ActiveJob>();
activeJobs.addAll(Arrays.asList(job1, job2, job3, job4, job5, job6, job7, job8, job9, job10));
int numCpusAllocated = 5;
int numCpusTotal = 10;
double load = 0.4;
PartitionStatistics partitionStatistics = new PartitionStatistics(numCpusAllocated, numCpusTotal, load);
int userQuotaOde = 2;
int userQuotaPde = 2;
VCellServerID systemID = relSite;
SchedulerDecisions schedulerDecisions = BatchScheduler.schedule(activeJobs, partitionStatistics, userQuotaOde, userQuotaPde, systemID, null);
schedulerDecisions.show();
//
// enhance BatchScheduler to give reason why not to run each job that is not run.
//
}
Aggregations