@InterfaceAudience.LimitedPrivate(value="Configuration") @InterfaceStability.Unstable public class RegionServerSnapshotManager extends RegionServerProcedureManager
HRegionServer.
This provides the mechanism necessary to kick off a online snapshot specific
Subprocedure that is responsible for the regions being served by this region server.
If any failures occur with the subprocedure, the RegionSeverSnapshotManager's subprocedure
handler, ProcedureMember, notifies the master's ProcedureCoordinator to abort all
others.
On startup, requires start() to be called.
On shutdown, requires stop(boolean) to be called
| 限定符和类型 | 类和说明 |
|---|---|
class |
RegionServerSnapshotManager.SnapshotSubprocedureBuilder
Build the actual snapshot runner that will do all the 'hard' work
|
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
SNAPSHOT_REQUEST_THREADS_DEFAULT
# of threads for snapshotting regions on the rs.
|
static String |
SNAPSHOT_REQUEST_THREADS_KEY
Conf key for number of request threads to start snapshots on regionservers
|
static String |
SNAPSHOT_REQUEST_WAKE_MILLIS_KEY
Conf key for millis between checks to see if snapshot completed or if there are errors
|
static long |
SNAPSHOT_TIMEOUT_MILLIS_DEFAULT
Keep threads alive in request pool for max of 300 seconds
|
static String |
SNAPSHOT_TIMEOUT_MILLIS_KEY
Conf key for max time to keep threads in snapshot request pool waiting
|
| 构造器和说明 |
|---|
RegionServerSnapshotManager() |
| 限定符和类型 | 方法和说明 |
|---|---|
Subprocedure |
buildSubprocedure(org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot)
If in a running state, creates the specified subprocedure for handling an online snapshot.
|
String |
getProcedureSignature()
Return the unique signature of the procedure.
|
void |
initialize(RegionServerServices rss)
Create a default snapshot handler - uses a zookeeper based member controller.
|
void |
start()
Start accepting snapshot requests.
|
void |
stop(boolean force)
Close this and all running snapshot tasks
|
equals, hashCodepublic static final String SNAPSHOT_REQUEST_THREADS_KEY
public static final int SNAPSHOT_REQUEST_THREADS_DEFAULT
public static final String SNAPSHOT_TIMEOUT_MILLIS_KEY
public static final long SNAPSHOT_TIMEOUT_MILLIS_DEFAULT
public void start()
start 在类中 RegionServerProcedureManagerpublic void stop(boolean force)
throws IOException
stop 在类中 RegionServerProcedureManagerforce - forcefully stop all running tasksIOExceptionpublic Subprocedure buildSubprocedure(org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot)
snapshot - public void initialize(RegionServerServices rss) throws org.apache.zookeeper.KeeperException
initialize 在类中 RegionServerProcedureManagerrss - region server running the handlerorg.apache.zookeeper.KeeperException - if the zookeeper cluster cannot be reachedpublic String getProcedureSignature()
ProcedureManagergetProcedureSignature 在类中 ProcedureManagerCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.