@InterfaceAudience.Private @InterfaceStability.Unstable public class FlushSnapshotSubprocedure extends Subprocedure
| Modifier and Type | Class and Description | 
|---|---|
| static class  | FlushSnapshotSubprocedure.RegionSnapshotTaskCallable for adding files to snapshot manifest working dir. | 
Subprocedure.SubprocedureImplexecutionTimeoutTimer, monitor, rpcs, wakeFrequency| Constructor and Description | 
|---|
| FlushSnapshotSubprocedure(ProcedureMember member,
                         ForeignExceptionDispatcher errorListener,
                         long wakeFrequency,
                         long timeout,
                         List<Region> regions,
                         org.apache.hadoop.hbase.protobuf.generated.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. | 
| byte[] | 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<Region> regions, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot, org.apache.hadoop.hbase.regionserver.snapshot.RegionServerSnapshotManager.SnapshotSubprocedurePool taskManager)
public void acquireBarrier()
                    throws ForeignException
insideBarrier() step.acquireBarrier in class SubprocedureForeignExceptionpublic byte[] insideBarrier()
                     throws ForeignException
insideBarrier in class SubprocedureForeignExceptionpublic void cleanup(Exception e)
cleanup in class Subprocedurepublic void releaseBarrier()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.