Search in sources :

Example 1 with ProActiveForkedTaskLauncherFactory

use of org.ow2.proactive.scheduler.task.ProActiveForkedTaskLauncherFactory in project scheduling by ow2-proactive.

the class InternalForkedScriptTask method createLauncher.

/**
 * {@inheritDoc}
 */
@Override
public TaskLauncher createLauncher(Node node) throws ActiveObjectCreationException, NodeException {
    logger.info(getTaskInfo().getTaskId(), "creating forked task launcher");
    TaskLauncher launcher = (TaskLauncher) PAActiveObject.newActive(TaskLauncher.class.getName(), new Object[] { getDefaultTaskLauncherInitializer(), new ProActiveForkedTaskLauncherFactory() }, node);
    // wait until the task launcher is active
    launcher.isActivated();
    setExecuterInformation(new ExecuterInformation(launcher, node));
    return launcher;
}
Also used : TaskLauncher(org.ow2.proactive.scheduler.task.TaskLauncher) PAActiveObject(org.objectweb.proactive.api.PAActiveObject) ProActiveForkedTaskLauncherFactory(org.ow2.proactive.scheduler.task.ProActiveForkedTaskLauncherFactory)

Aggregations

PAActiveObject (org.objectweb.proactive.api.PAActiveObject)1 ProActiveForkedTaskLauncherFactory (org.ow2.proactive.scheduler.task.ProActiveForkedTaskLauncherFactory)1 TaskLauncher (org.ow2.proactive.scheduler.task.TaskLauncher)1