@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,
DescendantType descendantType)
Create a new
LockingScheme . |
Modifier and Type | Method and Description |
---|---|
InodeTree.LockPattern |
getDesiredPattern() |
AlluxioURI |
getPath() |
InodeTree.LockPattern |
getPattern() |
SyncCheck |
shouldSync() |
String |
toString() |
public LockingScheme(AlluxioURI path, InodeTree.LockPattern desiredLockPattern, boolean shouldSync)
LockingScheme
.
Avoid using this constructor where shouldSync is set true, if possible.
#LockingScheme(AlluxioURI, LockPattern, FileSystemMasterCommonPOptions, UfsSyncPathCache, DescendantType)
is the preferred one in such case, to make the metadata sync dedup feature work.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, DescendantType descendantType) throws InvalidPathException
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 cachedescendantType
- the descendant typeInvalidPathException
public InodeTree.LockPattern getDesiredPattern()
public InodeTree.LockPattern getPattern()
public AlluxioURI getPath()
public SyncCheck shouldSync()
Copyright © 2023. All Rights Reserved.