@InterfaceAudience.Private public class EnabledTableSnapshotHandler extends TakeSnapshotHandler
Procedure to run the snapshot across all the involved region servers.ProcedureCoordinatorEventHandler.EventHandlerListener| Modifier and Type | Field and Description |
|---|---|
private ProcedureCoordinator |
coordinator |
private static org.apache.commons.logging.Log |
LOG |
conf, fs, htd, master, metricsSnapshot, monitor, rootDir, snapshot, snapshotManager, snapshotManifest, snapshotTable, status, tableLock, tableLockManager, workingDireventType, seqids, server, waitingTimeForEvents| Constructor and Description |
|---|
EnabledTableSnapshotHandler(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot,
MasterServices master,
SnapshotManager manager) |
| Modifier and Type | Method and Description |
|---|---|
EnabledTableSnapshotHandler |
prepare()
Event handlers should do all the necessary checks in this method (rather than
in the constructor, or in process()) so that the caller, which is mostly executed
in the ipc context can fail fast.
|
protected void |
snapshotRegions(List<Pair<HRegionInfo,ServerName>> regions)
This method kicks off a snapshot procedure.
|
cancel, completeSnapshot, getCompletionTimestamp, getException, getExceptionIfFailed, getSnapshot, hasException, isFinished, process, releaseTableLock, rethrowException, rethrowExceptionIfFailed, snapshotDisabledRegioncompareTo, getEventType, getInformativeName, getListener, getPriority, getSeqid, handleException, run, setListener, toStringprivate static final org.apache.commons.logging.Log LOG
private final ProcedureCoordinator coordinator
public EnabledTableSnapshotHandler(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot,
MasterServices master,
SnapshotManager manager)
public EnabledTableSnapshotHandler prepare() throws Exception
EventHandlerprepare in class TakeSnapshotHandlerException - when something goes wrongprotected void snapshotRegions(List<Pair<HRegionInfo,ServerName>> regions) throws HBaseSnapshotException, IOException
snapshotRegions in class TakeSnapshotHandlerHBaseSnapshotExceptionIOExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.