@InterfaceAudience.Private @InterfaceStability.Evolving public class DisabledTableSnapshotHandler extends TakeSnapshotHandler
Table must exist when taking the snapshot, or results are undefined.
EventHandler.EventHandlerListenerconf, htd, master, metricsSnapshot, monitor, rootDir, rootFs, snapshot, snapshotManager, snapshotManifest, snapshotTable, status, tableLock, tableLockManager, workingDir, workingDirFseventType, seqids, server, waitingTimeForEvents| Constructor and Description |
|---|
DisabledTableSnapshotHandler(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot,
MasterServices masterServices,
SnapshotManager snapshotManager) |
| 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(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(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot,
MasterServices masterServices,
SnapshotManager snapshotManager)
throws IOException
snapshot - descriptor of the snapshot to takemasterServices - master services providerIOException - if it cannot access the filesystem of the snapshot
temporary directorypublic DisabledTableSnapshotHandler prepare() throws Exception
EventHandlerprepare in class TakeSnapshotHandlerException - when something goes wrongpublic void snapshotRegions(List<Pair<HRegionInfo,ServerName>> regionsAndLocations) throws IOException, org.apache.zookeeper.KeeperException
TakeSnapshotHandlersnapshotRegions in class TakeSnapshotHandlerIOExceptionorg.apache.zookeeper.KeeperExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.