T - Proto Builder typeK - Path context typepublic abstract class CreatePathContext<T extends com.google.protobuf.GeneratedMessageV3.Builder<?>,K extends CreatePathContext<?,?>> extends OperationContext<T,K>
CreateFilePOptions or CreateDirectoryPOptions with additional context
data.| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<AclEntry> |
mAcl |
protected java.lang.String |
mGroup |
protected boolean |
mMetadataLoad |
protected Mode |
mMode |
protected boolean |
mMountPoint |
protected long |
mOperationTimeMs |
protected java.lang.String |
mOwner |
protected boolean |
mRecursive |
protected long |
mTtl |
protected TtlAction |
mTtlAction |
protected java.util.Map<java.lang.String,byte[]> |
mXAttr |
| Modifier | Constructor and Description |
|---|---|
protected |
CreatePathContext(T optionsBuilder)
Creates context with given option data.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<AclEntry> |
getAcl() |
java.lang.String |
getGroup() |
Mode |
getMode() |
long |
getOperationTimeMs() |
java.lang.String |
getOwner() |
protected K |
getThis()
Note: This is safe as 'K' extends
CreatePathContext. |
long |
getTtl() |
TtlAction |
getTtlAction() |
WriteType |
getWriteType() |
java.util.Map<java.lang.String,byte[]> |
getXAttr() |
boolean |
isMetadataLoad() |
boolean |
isMountPoint() |
boolean |
isPersisted() |
boolean |
isRecursive() |
K |
setAcl(java.util.List<AclEntry> acl)
Sets an immutable copy of acl as the internal access control list.
|
K |
setGroup(java.lang.String group) |
K |
setMetadataLoad(boolean metadataLoad) |
K |
setMountPoint(boolean mountPoint) |
K |
setOperationTimeMs(long operationTimeMs) |
K |
setOwner(java.lang.String owner) |
K |
setWriteType(WriteType writeType) |
K |
setXAttr(java.util.Map<java.lang.String,byte[]> xattr) |
java.lang.String |
toString() |
getCancelledTrackers, getOptions, withTrackerprotected boolean mMountPoint
protected long mOperationTimeMs
protected java.util.List<AclEntry> mAcl
protected java.lang.String mOwner
protected java.lang.String mGroup
protected boolean mMetadataLoad
protected java.util.Map<java.lang.String,byte[]> mXAttr
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 K getThis()
CreatePathContext.public K setOperationTimeMs(long operationTimeMs)
operationTimeMs - the operation time to usepublic long getOperationTimeMs()
public K setAcl(java.util.List<AclEntry> acl)
acl - the ACL entriespublic java.util.List<AclEntry> getAcl()
public 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(java.lang.String owner)
owner - the owner to usepublic java.lang.String getOwner()
public K setGroup(java.lang.String group)
group - the group to usepublic WriteType getWriteType()
public K setWriteType(WriteType writeType)
writeType - type of write on this createpublic java.lang.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 java.util.Map<java.lang.String,byte[]> getXAttr()
public K setXAttr(@Nullable java.util.Map<java.lang.String,byte[]> xattr)
xattr - extended attributes to set when creatingpublic boolean isMetadataLoad()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2020. All Rights Reserved.