FileOperations Class
- java.
lang. Object - com.
microsoft. azure. batch. FileOperations
- com.
Implements
public class FileOperations
implements IInheritedBehaviors
Performs file-related operations on an Azure Batch account.
Method Summary
Methods inherited from java.lang.Object
Method Details
customBehaviors
public Collection<BatchClientBehavior> customBehaviors()
Gets a collection of behaviors that modify or customize requests to the Batch service.
Returns:
deleteFileFromComputeNode
public void deleteFileFromComputeNode(String poolId, String nodeId, String fileName)
Deletes the specified file from the specified compute node.
Parameters:
Throws:
deleteFileFromComputeNode
public void deleteFileFromComputeNode(String poolId, String nodeId, String fileName, Boolean recursive)
Deletes the specified file from the specified compute node.
Parameters:
Throws:
deleteFileFromComputeNode
public void deleteFileFromComputeNode(String poolId, String nodeId, String fileName, Boolean recursive, Iterable<BatchClientBehavior> additionalBehaviors)
Deletes the specified file from the specified compute node.
Parameters:
Throws:
deleteFileFromTask
public void deleteFileFromTask(String jobId, String taskId, String fileName)
Deletes the specified file from the specified task's directory on its compute node.
Parameters:
Throws:
deleteFileFromTask
public void deleteFileFromTask(String jobId, String taskId, String fileName, Boolean recursive)
Deletes the specified file from the specified task's directory on its compute node.
Parameters:
Throws:
deleteFileFromTask
public void deleteFileFromTask(String jobId, String taskId, String fileName, Boolean recursive, Iterable<BatchClientBehavior> additionalBehaviors)
Deletes the specified file from the specified task's directory on its compute node.
Parameters:
Throws:
getFileFromComputeNode
public void getFileFromComputeNode(String poolId, String nodeId, String fileName, Iterable<BatchClientBehavior> additionalBehaviors, OutputStream outputStream)
Downloads the specified file from the specified compute node.
Parameters:
Throws:
getFileFromComputeNode
public void getFileFromComputeNode(String poolId, String nodeId, String fileName, OutputStream outputStream)
Downloads the specified file from the specified compute node.
Parameters:
Throws:
getFileFromTask
public void getFileFromTask(String jobId, String taskId, String fileName, Iterable<BatchClientBehavior> additionalBehaviors, OutputStream outputStream)
Downloads the specified file from the specified task's directory on its compute node.
Parameters:
Throws:
getFileFromTask
public void getFileFromTask(String jobId, String taskId, String fileName, OutputStream outputStream)
Downloads the specified file from the specified task's directory on its compute node.
Parameters:
Throws:
getFilePropertiesFromComputeNode
public FileProperties getFilePropertiesFromComputeNode(String poolId, String nodeId, String fileName)
Gets information about a file on a compute node.
Parameters:
Returns:
Throws:
getFilePropertiesFromComputeNode
public FileProperties getFilePropertiesFromComputeNode(String poolId, String nodeId, String fileName, Iterable<BatchClientBehavior> additionalBehaviors)
Gets information about a file on a compute node.
Parameters:
Returns:
Throws:
getFilePropertiesFromTask
public FileProperties getFilePropertiesFromTask(String jobId, String taskId, String fileName)
Gets information about a file from the specified task's directory on its compute node.
Parameters:
Returns:
Throws:
getFilePropertiesFromTask
public FileProperties getFilePropertiesFromTask(String jobId, String taskId, String fileName, Iterable<BatchClientBehavior> additionalBehaviors)
Gets information about a file from the specified task's directory on its compute node.
Parameters:
Returns:
Throws:
listFilesFromComputeNode
public PagedList<NodeFile> listFilesFromComputeNode(String poolId, String nodeId)
Lists files on the specified compute node.
Parameters:
Returns:
Throws:
listFilesFromComputeNode
public PagedList<NodeFile> listFilesFromComputeNode(String poolId, String nodeId, Boolean recursive, DetailLevel detailLevel)
Lists files on the specified compute node.
Parameters:
Returns:
Throws:
listFilesFromComputeNode
public PagedList<NodeFile> listFilesFromComputeNode(String poolId, String nodeId, Boolean recursive, DetailLevel detailLevel, Iterable<BatchClientBehavior> additionalBehaviors)
Lists files on the specified compute node.
Parameters:
Returns:
Throws:
listFilesFromTask
public PagedList<NodeFile> listFilesFromTask(String jobId, String taskId)
Lists the files in the specified task's directory on its compute node.
Parameters:
Returns:
Throws:
listFilesFromTask
public PagedList<NodeFile> listFilesFromTask(String jobId, String taskId, Boolean recursive, DetailLevel detailLevel)
Lists the files in the specified task's directory on its compute node.
Parameters:
Returns:
Throws:
listFilesFromTask
public PagedList<NodeFile> listFilesFromTask(String jobId, String taskId, Boolean recursive, DetailLevel detailLevel, Iterable<BatchClientBehavior> additionalBehaviors)
Lists the files in the specified task's directory on its compute node.
Parameters:
Returns:
Throws:
withCustomBehaviors
public IInheritedBehaviors withCustomBehaviors(Collection<BatchClientBehavior> behaviors)
Sets a collection of behaviors that modify or customize requests to the Batch service.
Parameters:
Returns: