FileServerReference Class

  • java.lang.Object
    • com.microsoft.azure.management.batchai.FileServerReference

public class FileServerReference

File Server mounting configuration.

Method Summary

Modifier and Type Method and Description
ResourceId 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.

FileServerReference withFileServer(ResourceId fileServer)

Set resource ID of the existing File Server to be mounted.

FileServerReference withMountOptions(String mountOptions)

Set mount options to be passed to mount command.

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.

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.

Method Details

fileServer

public ResourceId fileServer()

Get resource ID of the existing File Server to be mounted.

Returns:

the fileServer value

mountOptions

public String mountOptions()

Get mount options to be passed to mount command.

Returns:

the mountOptions value

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:

the relativeMountPath value

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:

the sourceDirectory value

withFileServer

public FileServerReference withFileServer(ResourceId fileServer)

Set resource ID of the existing File Server to be mounted.

Parameters:

fileServer - the fileServer value to set

Returns:

the FileServerReference object itself.

withMountOptions

public FileServerReference withMountOptions(String mountOptions)

Set mount options to be passed to mount command.

Parameters:

mountOptions - the mountOptions value to set

Returns:

the FileServerReference object itself.

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:

relativeMountPath - the relativeMountPath value to set

Returns:

the FileServerReference object itself.

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:

sourceDirectory - the sourceDirectory value to set

Returns:

the FileServerReference object itself.

Applies to