@InterfaceAudience.Private public final class LockManager extends Object
Modifier and Type | Class and Description |
---|---|
class |
LockManager.MasterLock
Locks on namespace/table/regions.
|
class |
LockManager.RemoteLocks
Locks on namespace/table/regions for remote operations.
|
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOG |
private HMaster |
master |
private LockManager.RemoteLocks |
remoteLocks |
Constructor and Description |
---|
LockManager(HMaster master) |
Modifier and Type | Method and Description |
---|---|
LockManager.MasterLock |
createMasterLock(RegionInfo[] regionInfos,
String description) |
LockManager.MasterLock |
createMasterLock(String namespace,
LockType type,
String description) |
LockManager.MasterLock |
createMasterLock(TableName tableName,
LockType type,
String description) |
LockManager.RemoteLocks |
remoteLocks() |
private void |
submitProcedure(LockProcedure proc,
NonceKey nonceKey) |
private static final org.slf4j.Logger LOG
private final LockManager.RemoteLocks remoteLocks
public LockManager(HMaster master)
public LockManager.RemoteLocks remoteLocks()
public LockManager.MasterLock createMasterLock(String namespace, LockType type, String description)
public LockManager.MasterLock createMasterLock(TableName tableName, LockType type, String description)
public LockManager.MasterLock createMasterLock(RegionInfo[] regionInfos, String description)
private void submitProcedure(LockProcedure proc, NonceKey nonceKey)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.