@InterfaceAudience.Private public abstract class BaseCoordinatedStateManager extends Object implements CoordinatedStateManager
CoordinatedStateManager
implementations.
Defines methods to retrieve coordination objects for relevant areas. CoordinatedStateManager
reference returned from Server interface has to be casted to this type to
access those methods.Constructor and Description |
---|
BaseCoordinatedStateManager() |
Modifier and Type | Method and Description |
---|---|
abstract CloseRegionCoordination |
getCloseRegionCoordination()
Method to retrieve coordination for closing region operations.
|
abstract OpenRegionCoordination |
getOpenRegionCoordination()
Method to retrieve coordination for opening region operations.
|
abstract RegionMergeCoordination |
getRegionMergeCoordination()
Method to retrieve coordination for region merge transaction
|
Server |
getServer() |
abstract SplitLogManagerCoordination |
getSplitLogManagerCoordination()
Method to retrieve coordination for split log manager
|
abstract SplitLogWorkerCoordination |
getSplitLogWorkerCoordination()
Method to retrieve coordination for split log worker
|
abstract SplitTransactionCoordination |
getSplitTransactionCoordination()
Method to retrieve coordination for split transaction.
|
abstract TableStateManager |
getTableStateManager()
Returns implementation of TableStateManager.
|
void |
initialize(Server server)
Initialize coordinated state management service.
|
void |
start()
Starts service.
|
void |
stop()
Stops service.
|
public void initialize(Server server)
CoordinatedStateManager
initialize
in interface CoordinatedStateManager
server
- server instance to run within.public void start()
CoordinatedStateManager
start
in interface CoordinatedStateManager
public void stop()
CoordinatedStateManager
stop
in interface CoordinatedStateManager
public Server getServer()
getServer
in interface CoordinatedStateManager
public abstract TableStateManager getTableStateManager() throws InterruptedException, CoordinatedStateException
CoordinatedStateManager
getTableStateManager
in interface CoordinatedStateManager
InterruptedException
- if operation is interruptedCoordinatedStateException
- if error happens in underlying coordination mechanismpublic abstract SplitLogWorkerCoordination getSplitLogWorkerCoordination()
public abstract SplitLogManagerCoordination getSplitLogManagerCoordination()
public abstract SplitTransactionCoordination getSplitTransactionCoordination()
public abstract CloseRegionCoordination getCloseRegionCoordination()
public abstract OpenRegionCoordination getOpenRegionCoordination()
public abstract RegionMergeCoordination getRegionMergeCoordination()
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.