use of functionaltests.utils.SchedulerTHelper in project scheduling by ow2-proactive.
the class TestPreemptRestartKillTask method startSchedulerInAnyCase.
@BeforeClass
public static void startSchedulerInAnyCase() throws Exception {
schedulerHelper.log("Starting a clean scheduler.");
schedulerHelper = new SchedulerTHelper(true, configFile.getPath());
}
use of functionaltests.utils.SchedulerTHelper in project scheduling by ow2-proactive.
the class TestPreemptRestartKillTaskSchema33 method startSchedulerInAnyCase.
@BeforeClass
public static void startSchedulerInAnyCase() throws Exception {
schedulerHelper.log("Starting a clean scheduler.");
schedulerHelper = new SchedulerTHelper(true, configFile.getPath());
}
use of functionaltests.utils.SchedulerTHelper in project scheduling by ow2-proactive.
the class TestDisabledListenJobLogs method startDedicatedScheduler.
@BeforeClass
public static void startDedicatedScheduler() throws Exception {
log("Creating the scheduler");
schedulerHelper = new SchedulerTHelper(true, new File(SchedulerTHelper.class.getResource("/functionaltests/config/scheduler-disablelistenjoblogs.ini").toURI()).getAbsolutePath());
}
use of functionaltests.utils.SchedulerTHelper in project scheduling by ow2-proactive.
the class GetResultMetricTest method test.
@Test(timeout = 3600000)
public void test() throws Exception {
// in milliseconds
final int taskDuration = 1000;
final int nodeNumber = 1;
ProActiveConfiguration.load();
RMFactory.setOsJavaProperty();
schedulerHelper = new SchedulerTHelper(false, SCHEDULER_CONFIGURATION_START.getPath(), RM_CONFIGURATION_START.getPath(), null);
schedulerHelper.createNodeSourceWithInfiniteTimeout("local", nodeNumber);
final TaskFlowJob job = SchedulerEfficiencyMetricsTest.createJob(taskNumber, taskDuration);
final long start = System.currentTimeMillis();
jobId = schedulerHelper.submitJob(job);
schedulerHelper.waitForEventJobFinished(jobId);
final JobResult jobResult = schedulerHelper.getSchedulerInterface().getJobResult(jobId);
long wholeTime = System.currentTimeMillis() - start;
long timeToGetResult = wholeTime - taskDuration;
LOGGER.info(makeCSVString(GetResultMetricTest.class.getSimpleName(), taskNumber, timeLimit, timeToGetResult, ((timeToGetResult < timeLimit) ? SUCCESS : FAILURE)));
}
use of functionaltests.utils.SchedulerTHelper in project scheduling by ow2-proactive.
the class RunningTaskRecoveryWhenNodesAreReservedInBatchTest method startDedicatedScheduler.
@Before
public void startDedicatedScheduler() throws Exception {
RMFactory.setOsJavaProperty();
schedulerHelper = new SchedulerTHelper(false, new File(SCHEDULER_CONFIGURATION_START.toURI()).getAbsolutePath(), new File(RM_CONFIGURATION_START.toURI()).getAbsolutePath(), null);
}
Aggregations