Search in sources :

Example 11 with ClientJobState

use of org.ow2.proactive.scheduler.job.ClientJobState in project scheduling by ow2-proactive.

the class SchedulerFrontendState method jobSubmitted.

@Override
public synchronized void jobSubmitted(JobState job) {
    ClientJobState storedJobState = new ClientJobState(job);
    jobsMap.put(job.getId(), storedJobState);
    sState.update(storedJobState);
    dispatchJobSubmitted(job);
}
Also used : ClientJobState(org.ow2.proactive.scheduler.job.ClientJobState)

Example 12 with ClientJobState

use of org.ow2.proactive.scheduler.job.ClientJobState in project scheduling by ow2-proactive.

the class LiveJobs method jobSubmitted.

void jobSubmitted(InternalJob job) {
    job.prepareTasks();
    job.submitAction();
    dbManager.newJobSubmitted(job);
    ClientJobState clientJobState = new ClientJobState(job);
    jobs.put(job.getId(), new JobData(job));
    listener.jobSubmitted(clientJobState);
}
Also used : ClientJobState(org.ow2.proactive.scheduler.job.ClientJobState)

Aggregations

ClientJobState (org.ow2.proactive.scheduler.job.ClientJobState)10 Test (org.junit.Test)4 JobState (org.ow2.proactive.scheduler.common.job.JobState)2 TaskState (org.ow2.proactive.scheduler.common.task.TaskState)2 SchedulerJMXHelper (org.ow2.proactive.scheduler.core.jmx.SchedulerJMXHelper)2 RuntimeDataMBeanImpl (org.ow2.proactive.scheduler.core.jmx.mbean.RuntimeDataMBeanImpl)2 JobIdImpl (org.ow2.proactive.scheduler.job.JobIdImpl)2 UserIdentificationImpl (org.ow2.proactive.scheduler.job.UserIdentificationImpl)2 ClientTaskState (org.ow2.proactive.scheduler.task.ClientTaskState)2 TaskInfoImpl (org.ow2.proactive.scheduler.task.TaskInfoImpl)2 ByteArrayInputStream (java.io.ByteArrayInputStream)1 ByteArrayOutputStream (java.io.ByteArrayOutputStream)1 IOException (java.io.IOException)1 ObjectInputStream (java.io.ObjectInputStream)1 ObjectOutputStream (java.io.ObjectOutputStream)1 ArrayList (java.util.ArrayList)1 HashSet (java.util.HashSet)1 Map (java.util.Map)1 Vector (java.util.Vector)1 ExecutionException (java.util.concurrent.ExecutionException)1