@InterfaceAudience.Private @InterfaceStability.Evolving public class DisabledTableSnapshotHandler extends TakeSnapshotHandler
Table must exist when taking the snapshot, or results are undefined.
EventHandler.EventHandlerListenerconf, fs, htd, master, metricsSnapshot, monitor, rootDir, snapshot, snapshotManifest, snapshotTable, status, tableLock, tableLockManager, workingDireventType, seqids, server, waitingTimeForEvents| Constructor and Description |
|---|
DisabledTableSnapshotHandler(HBaseProtos.SnapshotDescription snapshot,
MasterServices masterServices) |
| Modifier and Type | Method and Description |
|---|---|
DisabledTableSnapshotHandler |
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.
|
void |
snapshotRegions(java.util.List<Pair<HRegionInfo,ServerName>> regionsAndLocations)
Snapshot the specified regions
|
cancel, completeSnapshot, getCompletionTimestamp, getException, getExceptionIfFailed, getSnapshot, hasException, isFinished, process, releaseTableLock, rethrowException, rethrowExceptionIfFailed, snapshotDisabledRegioncompareTo, getEventType, getInformativeName, getListener, getPriority, getSeqid, handleException, run, setListener, toStringpublic DisabledTableSnapshotHandler(HBaseProtos.SnapshotDescription snapshot, MasterServices masterServices)
snapshot - descriptor of the snapshot to takemasterServices - master services providerpublic DisabledTableSnapshotHandler prepare() throws java.lang.Exception
EventHandlerprepare in class TakeSnapshotHandlerjava.lang.Exception - when something goes wrongpublic void snapshotRegions(java.util.List<Pair<HRegionInfo,ServerName>> regionsAndLocations) throws java.io.IOException, KeeperException
TakeSnapshotHandlersnapshotRegions in class TakeSnapshotHandlerjava.io.IOExceptionKeeperException