public class CompleteFileContext extends OperationContext<CompleteFilePOptions.Builder,CompleteFileContext>
CompleteFilePOptions
.Modifier and Type | Method and Description |
---|---|
static CompleteFileContext |
create(CompleteFilePOptions.Builder optionsBuilder) |
static CompleteFileContext |
defaults() |
OperationId |
getOperationId()
Get embedded operation id, passed via proto options.
|
long |
getOperationTimeMs() |
UfsStatus |
getUfsStatus() |
boolean |
isMetadataLoad() |
static CompleteFileContext |
mergeFrom(CompleteFilePOptions.Builder optionsBuilder)
Merges and embeds the given
CompleteFilePOptions with the corresponding master options. |
CompleteFileContext |
setMetadataLoad(boolean metadataLoad) |
CompleteFileContext |
setOperationTimeMs(long operationTimeMs)
Sets operation time.
|
CompleteFileContext |
setUfsStatus(UfsStatus ufsStatus)
Sets ufs status.
|
String |
toString() |
getCancelledTrackers, getOptions, withTracker
public CompleteFileContext setMetadataLoad(boolean metadataLoad)
metadataLoad
- the flag value to use; if true, the operation is a result of a metadata
loadpublic boolean isMetadataLoad()
public static CompleteFileContext create(CompleteFilePOptions.Builder optionsBuilder)
optionsBuilder
- Builder for proto CompleteFilePOptions
CompleteFileContext
with given optionspublic static CompleteFileContext mergeFrom(CompleteFilePOptions.Builder optionsBuilder)
CompleteFilePOptions
with the corresponding master options.optionsBuilder
- Builder for proto CompleteFilePOptions
to merge with defaultsCompleteFileContext
with default values for masterpublic static CompleteFileContext defaults()
CompleteFileContext
with default values for masterpublic UfsStatus getUfsStatus()
public CompleteFileContext setUfsStatus(UfsStatus ufsStatus)
ufsStatus
- ufs statuspublic long getOperationTimeMs()
public CompleteFileContext setOperationTimeMs(long operationTimeMs)
operationTimeMs
- operation system time in mspublic OperationId getOperationId()
OperationContext
getOperationId
in class OperationContext<CompleteFilePOptions.Builder,CompleteFileContext>
null
if not foundCopyright © 2023. All Rights Reserved.