public class LockManager.RemoteLocks extends Object
| 构造器和说明 |
|---|
RemoteLocks() |
| 限定符和类型 | 方法和说明 |
|---|---|
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
public long requestTableLock(TableName tableName, LockType type, String description, NonceKey nonceKey) throws IllegalArgumentException, IOException
public 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 The Apache Software Foundation. All rights reserved.