@InterfaceAudience.Private @InterfaceStability.Unstable public class FlushSnapshotSubprocedure extends Subprocedure
Subprocedure.SubprocedureImplexecutionTimeoutTimer, monitor, rpcs, wakeFrequency| Constructor and Description |
|---|
FlushSnapshotSubprocedure(ProcedureMember member,
ForeignExceptionDispatcher errorListener,
long wakeFrequency,
long timeout,
List<HRegion> regions,
HBaseProtos.SnapshotDescription snapshot,
org.apache.hadoop.hbase.regionserver.snapshot.RegionServerSnapshotManager.SnapshotSubprocedurePool taskManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
acquireBarrier()
do nothing, core of snapshot is executed in
insideBarrier() step. |
void |
cleanup(Exception e)
Cancel threads if they haven't finished.
|
void |
insideBarrier()
do a flush snapshot of every region on this rs from the target table.
|
void |
releaseBarrier()
Hooray!
|
call, cancel, getMemberName, getName, receiveReachedGlobalBarrier, waitForLocallyCompletedpublic FlushSnapshotSubprocedure(ProcedureMember member, ForeignExceptionDispatcher errorListener, long wakeFrequency, long timeout, List<HRegion> regions, HBaseProtos.SnapshotDescription snapshot, org.apache.hadoop.hbase.regionserver.snapshot.RegionServerSnapshotManager.SnapshotSubprocedurePool taskManager)
public void acquireBarrier()
throws ForeignException
insideBarrier() step.acquireBarrier in class SubprocedureForeignExceptionpublic void insideBarrier()
throws ForeignException
insideBarrier in class SubprocedureForeignExceptionpublic void cleanup(Exception e)
cleanup in class Subprocedurepublic void releaseBarrier()
Copyright © 2014 The Apache Software Foundation. All rights reserved.