| 程序包 | 说明 |
|---|---|
| org.apache.hadoop.hbase.client.locking | |
| org.apache.hadoop.hbase.regionserver |
| 限定符和类型 | 方法和说明 |
|---|---|
EntityLock |
LockServiceClient.namespaceLock(String namespace,
String description,
Abortable abort)
LocCreate a new EntityLock object to acquire exclusive lock on a namespace.
|
EntityLock |
LockServiceClient.regionLock(List<RegionInfo> regionInfos,
String description,
Abortable abort)
Create a new EntityLock object to acquire exclusive lock on multiple regions of same tables.
|
EntityLock |
LockServiceClient.tableLock(TableName tableName,
boolean exclusive,
String description,
Abortable abort)
Create a new EntityLock object to acquire an exclusive or shared lock on a table.
|
| 限定符和类型 | 方法和说明 |
|---|---|
EntityLock |
HRegionServer.regionLock(List<RegionInfo> regionInfos,
String description,
Abortable abort) |
EntityLock |
RegionServerServices.regionLock(List<RegionInfo> regionInfos,
String description,
Abortable abort)
Master based locks on namespaces/tables/regions.
|
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.