@InterfaceAudience.Private public interface CloseRegionCoordination
Modifier and Type | Interface and Description |
---|---|
static interface |
CloseRegionCoordination.CloseRegionDetails
Marker interface for region closing tasks.
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkClosingState(HRegionInfo regionInfo,
CloseRegionCoordination.CloseRegionDetails crd)
Called before actual region closing to check that we can do close operation
on this region.
|
CloseRegionCoordination.CloseRegionDetails |
getDetaultDetails()
Get details object with params for case when we're closing on
regionserver side internally (not because of RPC call from master),
so we don't parse details from protobuf request.
|
CloseRegionCoordination.CloseRegionDetails |
parseFromProtoRequest(org.apache.hadoop.hbase.protobuf.generated.AdminProtos.CloseRegionRequest request)
Construct CloseRegionDetails instance from CloseRegionRequest.
|
void |
setClosedState(HRegion region,
ServerName sn,
CloseRegionCoordination.CloseRegionDetails crd)
Called after region is closed to notify all interesting parties / "register"
region as finally closed.
|
boolean checkClosingState(HRegionInfo regionInfo, CloseRegionCoordination.CloseRegionDetails crd)
regionInfo
- region being closedcrd
- details about closing operationvoid setClosedState(HRegion region, ServerName sn, CloseRegionCoordination.CloseRegionDetails crd)
region
- region being closedsn
- ServerName on which task runscrd
- details about closing operationCloseRegionCoordination.CloseRegionDetails parseFromProtoRequest(org.apache.hadoop.hbase.protobuf.generated.AdminProtos.CloseRegionRequest request)
CloseRegionCoordination.CloseRegionDetails getDetaultDetails()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.