@NotThreadSafe public final class MountOptions extends Object
Constructor and Description |
---|
MountOptions(File.AddMountPointEntry options)
Creates a new instance of
MountOptions from File.AddMountPointEntry . |
MountOptions(MountTOptions options)
Creates a new instance of
MountOptions from MountTOptions . |
Modifier and Type | Method and Description |
---|---|
static MountOptions |
defaults() |
boolean |
equals(Object o) |
CommonOptions |
getCommonOptions() |
Map<String,String> |
getProperties() |
int |
hashCode() |
boolean |
isReadOnly() |
boolean |
isShared() |
MountOptions |
setCommonOptions(CommonOptions options) |
MountOptions |
setProperties(Map<String,String> properties) |
MountOptions |
setReadOnly(boolean readOnly) |
MountOptions |
setShared(boolean shared) |
String |
toString() |
public MountOptions(MountTOptions options)
MountOptions
from MountTOptions
.options
- Thrift optionspublic MountOptions(File.AddMountPointEntry options)
MountOptions
from File.AddMountPointEntry
.options
- Proto optionspublic static MountOptions defaults()
CompleteFileOptions
public CommonOptions getCommonOptions()
public boolean isReadOnly()
public MountOptions setReadOnly(boolean readOnly)
readOnly
- the readOnly flag to use; if true, write or create operations will not be
allowed under the mount point.public MountOptions setCommonOptions(CommonOptions options)
options
- the common optionspublic MountOptions setProperties(Map<String,String> properties)
properties
- the properties map to use. The existing map will be cleared first, and then
entries of the input map will be added to the internal map.public boolean isShared()
public MountOptions setShared(boolean shared)
shared
- the shared flag to set; if true, the mounted point is shared with all Alluxio
users.Copyright © 2023. All Rights Reserved.