Search in sources :

Example 1 with SchedulerDecisions

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.
// 
}
Also used : VCellServerID(org.vcell.util.document.VCellServerID) ActiveJob(cbit.vcell.message.server.dispatcher.BatchScheduler.ActiveJob) PartitionStatistics(cbit.vcell.message.server.htc.HtcProxy.PartitionStatistics) ArrayList(java.util.ArrayList) SchedulerDecisions(cbit.vcell.message.server.dispatcher.BatchScheduler.SchedulerDecisions) Test(org.junit.Test)

Aggregations

ActiveJob (cbit.vcell.message.server.dispatcher.BatchScheduler.ActiveJob)1 SchedulerDecisions (cbit.vcell.message.server.dispatcher.BatchScheduler.SchedulerDecisions)1 PartitionStatistics (cbit.vcell.message.server.htc.HtcProxy.PartitionStatistics)1 ArrayList (java.util.ArrayList)1 Test (org.junit.Test)1 VCellServerID (org.vcell.util.document.VCellServerID)1