public class LockManager.RemoteLocks extends Object
| Constructor and Description |
|---|
RemoteLocks() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
lockHeartbeat(long procId,
boolean keepAlive) |
long |
requestNamespaceLock(String namespace,
LockType type,
String description,
NonceKey nonceKey) |
long |
requestRegionsLock(RegionInfo[] regionInfos,
String description,
NonceKey nonceKey) |
long |
requestTableLock(TableName tableName,
LockType type,
String description,
NonceKey nonceKey) |
public long requestNamespaceLock(String namespace, LockType type, String description, NonceKey nonceKey) throws IllegalArgumentException, IOException
IllegalArgumentExceptionIOExceptionpublic long requestTableLock(TableName tableName, LockType type, String description, NonceKey nonceKey) throws IllegalArgumentException, IOException
IllegalArgumentExceptionIOExceptionpublic long requestRegionsLock(RegionInfo[] regionInfos, String description, NonceKey nonceKey) throws IllegalArgumentException, IOException
IllegalArgumentException - if all regions are not from same table.IOExceptionpublic boolean lockHeartbeat(long procId,
boolean keepAlive)
throws IOException
keepAlive - if false, release the lock.IOExceptionCopyright © 2007–2019 Cloudera. All rights reserved.