@ThreadSafe public final class LockingScheme extends Object
Constructor and Description |
---|
LockingScheme(AlluxioURI path,
InodeTree.LockPattern desiredLockPattern,
boolean shouldSync)
Constructs a
LockingScheme . |
LockingScheme(AlluxioURI path,
InodeTree.LockPattern desiredPattern,
FileSystemMasterCommonPOptions options,
UfsSyncPathCache pathCache,
boolean isGetFileInfo)
Create a new
LockingScheme . |
Modifier and Type | Method and Description |
---|---|
InodeTree.LockPattern |
getDesiredPattern() |
AlluxioURI |
getPath() |
InodeTree.LockPattern |
getPattern() |
boolean |
shouldSync() |
String |
toString() |
public LockingScheme(AlluxioURI path, InodeTree.LockPattern desiredLockPattern, boolean shouldSync)
LockingScheme
.path
- the path to lockdesiredLockPattern
- the desired lock modeshouldSync
- true if the path should be syncedpublic LockingScheme(AlluxioURI path, InodeTree.LockPattern desiredPattern, FileSystemMasterCommonPOptions options, UfsSyncPathCache pathCache, boolean isGetFileInfo)
LockingScheme
.
Thi constructor computes the value of mShouldSync
with the extra argument provided.path
- the path to lockdesiredPattern
- the desired lock modeoptions
- the common options provided in an RPCpathCache
- the DefaultFileSystemMaster
's path cacheisGetFileInfo
- whether the caller is
FileSystemMaster.getFileInfo(AlluxioURI, GetStatusContext)
public InodeTree.LockPattern getDesiredPattern()
public InodeTree.LockPattern getPattern()
public AlluxioURI getPath()
public boolean shouldSync()
Copyright © 2023. All Rights Reserved.