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 RemoteLocks()
public long requestNamespaceLock(String namespace, LockType type, String description, NonceKey nonceKey) throws IllegalArgumentException, IOException
IllegalArgumentException
IOException
public long requestTableLock(TableName tableName, LockType type, String description, NonceKey nonceKey) throws IllegalArgumentException, IOException
IllegalArgumentException
IOException
public long requestRegionsLock(RegionInfo[] regionInfos, String description, NonceKey nonceKey) throws IllegalArgumentException, IOException
IllegalArgumentException
- if all regions are not from same table.IOException
public boolean lockHeartbeat(long procId, boolean keepAlive) throws IOException
keepAlive
- if false, release the lock.IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.