FileServerReference Class
- java.
lang. Object - com.
microsoft. azure. management. batchai. FileServerReference
- com.
public class FileServerReference
File Server mounting configuration.
Method Summary
Modifier and Type | Method and Description |
---|---|
Resource |
fileServer()
Get resource ID of the existing File Server to be mounted. |
String |
mountOptions()
Get mount options to be passed to mount command. |
String |
relativeMountPath()
Get the relative path on the compute node where the File Server will be mounted. Note that all cluster level file servers will be mounted under $AZ_BATCHAI_MOUNT_ROOT location and all job level file servers will be mounted under $AZ_BATCHAI_JOB_MOUNT_ROOT. |
String |
sourceDirectory()
Get file Server directory that needs to be mounted. If this property is not specified, the entire File Server will be mounted. |
File |
withFileServer(ResourceId fileServer)
Set resource ID of the existing File Server to be mounted. |
File |
withMountOptions(String mountOptions)
Set mount options to be passed to mount command. |
File |
withRelativeMountPath(String relativeMountPath)
Set the relative path on the compute node where the File Server will be mounted. Note that all cluster level file servers will be mounted under $AZ_BATCHAI_MOUNT_ROOT location and all job level file servers will be mounted under $AZ_BATCHAI_JOB_MOUNT_ROOT. |
File |
withSourceDirectory(String sourceDirectory)
Set file Server directory that needs to be mounted. If this property is not specified, the entire File Server will be mounted. |
Method Details
fileServer
public ResourceId fileServer()
Get resource ID of the existing File Server to be mounted.
Returns:
mountOptions
public String mountOptions()
Get mount options to be passed to mount command.
Returns:
relativeMountPath
public String relativeMountPath()
Get the relative path on the compute node where the File Server will be mounted. Note that all cluster level file servers will be mounted under $AZ_BATCHAI_MOUNT_ROOT location and all job level file servers will be mounted under $AZ_BATCHAI_JOB_MOUNT_ROOT.
Returns:
sourceDirectory
public String sourceDirectory()
Get file Server directory that needs to be mounted. If this property is not specified, the entire File Server will be mounted.
Returns:
withFileServer
public FileServerReference withFileServer(ResourceId fileServer)
Set resource ID of the existing File Server to be mounted.
Parameters:
Returns:
withMountOptions
public FileServerReference withMountOptions(String mountOptions)
Set mount options to be passed to mount command.
Parameters:
Returns:
withRelativeMountPath
public FileServerReference withRelativeMountPath(String relativeMountPath)
Set the relative path on the compute node where the File Server will be mounted. Note that all cluster level file servers will be mounted under $AZ_BATCHAI_MOUNT_ROOT location and all job level file servers will be mounted under $AZ_BATCHAI_JOB_MOUNT_ROOT.
Parameters:
Returns:
withSourceDirectory
public FileServerReference withSourceDirectory(String sourceDirectory)
Set file Server directory that needs to be mounted. If this property is not specified, the entire File Server will be mounted.
Parameters:
Returns:
Applies to
Azure SDK for Java