@InterfaceAudience.Private public interface SplitTransactionCoordination
Modifier and Type | Interface and Description |
---|---|
static interface |
SplitTransactionCoordination.SplitTransactionDetails
Dummy interface for split transaction details.
|
Modifier and Type | Method and Description |
---|---|
void |
clean(HRegionInfo hri)
clean the split transaction
|
void |
completeSplitTransaction(RegionServerServices services,
Region first,
Region second,
SplitTransactionCoordination.SplitTransactionDetails std,
Region parent)
Finish off split transaction
|
SplitTransactionCoordination.SplitTransactionDetails |
getDefaultDetails() |
int |
processTransition(HRegionInfo p,
HRegionInfo hri_a,
HRegionInfo hri_b,
ServerName sn,
SplitTransactionCoordination.SplitTransactionDetails std)
Required by AssignmentManager
|
void |
startSplitTransaction(HRegion parent,
ServerName serverName,
HRegionInfo hri_a,
HRegionInfo hri_b)
init coordination for split transaction
|
void |
waitForSplitTransaction(RegionServerServices services,
Region parent,
HRegionInfo hri_a,
HRegionInfo hri_b,
SplitTransactionCoordination.SplitTransactionDetails std)
Wait while coordination process the transaction
|
SplitTransactionCoordination.SplitTransactionDetails getDefaultDetails()
void startSplitTransaction(HRegion parent, ServerName serverName, HRegionInfo hri_a, HRegionInfo hri_b) throws IOException
parent
- region to be created as offlineserverName
- server event originates fromhri_a
- daughter regionhri_b
- daughter regionIOException
void waitForSplitTransaction(RegionServerServices services, Region parent, HRegionInfo hri_a, HRegionInfo hri_b, SplitTransactionCoordination.SplitTransactionDetails std) throws IOException
services
- Used to online/offline regions.parent
- regionhri_a
- daughter regionhri_b
- daughter regionstd
- split transaction detailsIOException
void completeSplitTransaction(RegionServerServices services, Region first, Region second, SplitTransactionCoordination.SplitTransactionDetails std, Region parent) throws IOException
services
- Used to online/offline regions.first
- daughter regionsecond
- daughter regionstd
- split transaction detailsparent
- IOException
- If thrown, transaction failed. Call
SplitTransaction.rollback(
Server, RegionServerServices)
void clean(HRegionInfo hri)
hri
- node to deleteint processTransition(HRegionInfo p, HRegionInfo hri_a, HRegionInfo hri_b, ServerName sn, SplitTransactionCoordination.SplitTransactionDetails std) throws IOException
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.