public class TaskProActiveDataspaces extends Object implements TaskDataspaces
Modifier and Type | Field and Description |
---|---|
static String |
PA_NODE_DATASPACE_CREATE_FOLDER_HIERARCHY_SEQUENTIALLY |
static String |
PA_NODE_DATASPACE_FILE_TRANSFER_THREAD_POOL_SIZE |
Constructor and Description |
---|
TaskProActiveDataspaces(TaskId taskId,
org.objectweb.proactive.extensions.dataspaces.core.naming.NamingService namingService,
boolean isRunAsUser) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
copyInputDataToScratch(List<InputSelector> inputSelectors) |
void |
copyScratchDataToOutput(List<OutputSelector> outputSelectors) |
protected void |
createFolderHierarchy(boolean isDebugEnabled,
org.objectweb.proactive.extensions.dataspaces.api.DataSpacesFileObject fileObject,
org.objectweb.proactive.extensions.dataspaces.api.DataSpacesFileObject target) |
protected void |
createFolderHierarchySequentially(org.objectweb.proactive.extensions.dataspaces.api.DataSpacesFileObject destination,
String spaceUri,
List<org.objectweb.proactive.extensions.dataspaces.api.DataSpacesFileObject> spaceFiles,
Map<String,org.objectweb.proactive.extensions.dataspaces.api.DataSpacesFileObject> filesToCopy) |
String |
getCacheURI() |
protected int |
getFileTransferThreadPoolSize() |
String |
getGlobalURI() |
String |
getInputURI() |
String |
getOutputURI() |
File |
getScratchFolder() |
String |
getScratchURI() |
String |
getUserURI() |
protected void |
handleResultsWhileTransferringFile(List<Future<Boolean>> transferFutures,
String destinationSpaceName,
long startTime) |
protected boolean |
isCreateFolderHierarchySequentiallyEnabled() |
protected String |
relativize(String inputSpaceUri,
org.objectweb.proactive.extensions.dataspaces.api.DataSpacesFileObject fileObject) |
public static final String PA_NODE_DATASPACE_FILE_TRANSFER_THREAD_POOL_SIZE
public static final String PA_NODE_DATASPACE_CREATE_FOLDER_HIERARCHY_SEQUENTIALLY
protected int getFileTransferThreadPoolSize()
public File getScratchFolder()
getScratchFolder
in interface TaskDataspaces
public String getScratchURI()
getScratchURI
in interface TaskDataspaces
public String getCacheURI()
getCacheURI
in interface TaskDataspaces
public String getInputURI()
getInputURI
in interface TaskDataspaces
public String getOutputURI()
getOutputURI
in interface TaskDataspaces
public String getUserURI()
getUserURI
in interface TaskDataspaces
public String getGlobalURI()
getGlobalURI
in interface TaskDataspaces
public void copyInputDataToScratch(List<InputSelector> inputSelectors) throws org.objectweb.proactive.extensions.dataspaces.exceptions.FileSystemException, InterruptedException
copyInputDataToScratch
in interface TaskDataspaces
org.objectweb.proactive.extensions.dataspaces.exceptions.FileSystemException
InterruptedException
protected void createFolderHierarchySequentially(org.objectweb.proactive.extensions.dataspaces.api.DataSpacesFileObject destination, String spaceUri, List<org.objectweb.proactive.extensions.dataspaces.api.DataSpacesFileObject> spaceFiles, Map<String,org.objectweb.proactive.extensions.dataspaces.api.DataSpacesFileObject> filesToCopy) throws org.objectweb.proactive.extensions.dataspaces.exceptions.FileSystemException
org.objectweb.proactive.extensions.dataspaces.exceptions.FileSystemException
protected void createFolderHierarchy(boolean isDebugEnabled, org.objectweb.proactive.extensions.dataspaces.api.DataSpacesFileObject fileObject, org.objectweb.proactive.extensions.dataspaces.api.DataSpacesFileObject target) throws org.objectweb.proactive.extensions.dataspaces.exceptions.FileSystemException
org.objectweb.proactive.extensions.dataspaces.exceptions.FileSystemException
protected boolean isCreateFolderHierarchySequentiallyEnabled()
protected void handleResultsWhileTransferringFile(List<Future<Boolean>> transferFutures, String destinationSpaceName, long startTime) throws org.objectweb.proactive.extensions.dataspaces.exceptions.FileSystemException
org.objectweb.proactive.extensions.dataspaces.exceptions.FileSystemException
protected String relativize(String inputSpaceUri, org.objectweb.proactive.extensions.dataspaces.api.DataSpacesFileObject fileObject)
public void copyScratchDataToOutput(List<OutputSelector> outputSelectors) throws org.objectweb.proactive.extensions.dataspaces.exceptions.FileSystemException
copyScratchDataToOutput
in interface TaskDataspaces
org.objectweb.proactive.extensions.dataspaces.exceptions.FileSystemException
public void close()
close
in interface TaskDataspaces