@InterfaceAudience.Private public class EnabledTableSnapshotHandler extends TakeSnapshotHandler
Procedure to run the snapshot across all the involved region servers.ProcedureCoordinatorEventHandler.EventHandlerListenerconf, htd, master, metricsSnapshot, monitor, rootDir, rootFs, snapshot, snapshotManager, snapshotManifest, snapshotTable, status, tableLock, tableLockManager, workingDir, workingDirFseventType, seqids, server, waitingTimeForEvents| 构造器和说明 |
|---|
EnabledTableSnapshotHandler(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot,
MasterServices master,
SnapshotManager manager) |
| 限定符和类型 | 方法和说明 |
|---|---|
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, toStringpublic EnabledTableSnapshotHandler(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot, MasterServices master, SnapshotManager manager) throws IOException
IOExceptionpublic EnabledTableSnapshotHandler prepare() throws Exception
EventHandlerprepare 在类中 TakeSnapshotHandlerException - when something goes wrongprotected void snapshotRegions(List<Pair<HRegionInfo,ServerName>> regions) throws IOException
snapshotRegions 在类中 TakeSnapshotHandlerIOExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.