T
- Proto Builder typeK
- Context type (It must be either CreateFileContext or CreateDirectoryContextpublic abstract class CreatePathContext<T extends com.google.protobuf.GeneratedMessageV3.Builder<?>,K> extends OperationContext<T>
CreateFilePOptions
or CreateDirectoryPOptions
with additional context
data.Modifier and Type | Field and Description |
---|---|
protected List<AclEntry> |
mAcl |
protected String |
mGroup |
protected boolean |
mMetadataLoad |
protected Mode |
mMode |
protected boolean |
mMountPoint |
protected long |
mOperationTimeMs |
protected String |
mOwner |
protected boolean |
mRecursive |
protected long |
mTtl |
protected TtlAction |
mTtlAction |
protected Map<String,byte[]> |
mXAttr |
Modifier | Constructor and Description |
---|---|
protected |
CreatePathContext(T optionsBuilder)
Creates context with given option data.
|
Modifier and Type | Method and Description |
---|---|
List<AclEntry> |
getAcl() |
String |
getGroup() |
Mode |
getMode() |
long |
getOperationTimeMs() |
String |
getOwner() |
protected abstract K |
getThis() |
long |
getTtl() |
TtlAction |
getTtlAction() |
WriteType |
getWriteType() |
Map<String,byte[]> |
getXAttr() |
boolean |
isMetadataLoad() |
boolean |
isMountPoint() |
boolean |
isPersisted() |
boolean |
isRecursive() |
K |
setAcl(List<AclEntry> acl)
Sets an immutable copy of acl as the internal access control list.
|
K |
setGroup(String group) |
K |
setMetadataLoad(boolean metadataLoad) |
K |
setMountPoint(boolean mountPoint) |
K |
setOperationTimeMs(long operationTimeMs) |
K |
setOwner(String owner) |
K |
setWriteType(WriteType writeType) |
K |
setXAttr(Map<String,byte[]> xattr) |
String |
toString() |
getOptions, isCancelled
protected boolean mMountPoint
protected long mOperationTimeMs
protected String mOwner
protected String mGroup
protected boolean mMetadataLoad
protected Mode mMode
protected boolean mRecursive
protected long mTtl
protected TtlAction mTtlAction
protected CreatePathContext(T optionsBuilder)
optionsBuilder
- the options builderpublic Mode getMode()
public boolean isPersisted()
public boolean isRecursive()
public long getTtl()
public TtlAction getTtlAction()
protected abstract K getThis()
public K setOperationTimeMs(long operationTimeMs)
operationTimeMs
- the operation time to usepublic long getOperationTimeMs()
public K setAcl(List<AclEntry> acl)
acl
- the ACL entriespublic K setMountPoint(boolean mountPoint)
mountPoint
- the mount point flag to use; it specifies whether the object to create is a
mount pointpublic boolean isMountPoint()
public K setOwner(String owner)
owner
- the owner to usepublic String getOwner()
public K setGroup(String group)
group
- the group to usepublic WriteType getWriteType()
public K setWriteType(WriteType writeType)
writeType
- type of write on this createpublic String getGroup()
public K setMetadataLoad(boolean metadataLoad)
metadataLoad
- the flag value to use; if true, the create path is a result of a metadata
load@Nullable public Map<String,byte[]> getXAttr()
public K setXAttr(@Nullable Map<String,byte[]> xattr)
xattr
- extended attributes to set when creatingpublic boolean isMetadataLoad()
Copyright © 2023. All Rights Reserved.