Search in sources :

Example 1 with TaskProActiveDataspaces

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

the class NodeDataspace method init.

public void init(TaskId taskId, String namingServiceUrl) throws Exception {
    dataSpaceNodeConfigurationAgent = (DataSpaceNodeConfigurationAgent) PAActiveObject.newActive(DataSpaceNodeConfigurationAgent.class.getName(), null, PAActiveObject.getNode());
    if (!dataSpaceNodeConfigurationAgent.configureNode()) {
        throw new IllegalStateException("Could not configure node for dataspaces");
    }
    NamingService namingServiceStub = NamingService.createNamingServiceStub(namingServiceUrl);
    taskProActiveDataspaces = new TaskProActiveDataspaces(taskId, namingServiceStub, false);
    System.out.println("Node scratch folder is " + getScratchFolder());
}
Also used : NamingService(org.objectweb.proactive.extensions.dataspaces.core.naming.NamingService) TaskProActiveDataspaces(org.ow2.proactive.scheduler.task.data.TaskProActiveDataspaces) DataSpaceNodeConfigurationAgent(org.ow2.proactive.resourcemanager.nodesource.dataspace.DataSpaceNodeConfigurationAgent)

Aggregations

NamingService (org.objectweb.proactive.extensions.dataspaces.core.naming.NamingService)1 DataSpaceNodeConfigurationAgent (org.ow2.proactive.resourcemanager.nodesource.dataspace.DataSpaceNodeConfigurationAgent)1 TaskProActiveDataspaces (org.ow2.proactive.scheduler.task.data.TaskProActiveDataspaces)1