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());
}
Aggregations