@InterfaceAudience.Private @InterfaceStability.Evolving public class DisabledTableSnapshotHandler extends TakeSnapshotHandler
Table must exist when taking the snapshot, or results are undefined.
conf, fs, htd, master, metricsSnapshot, monitor, rootDir, snapshot, snapshotManager, snapshotManifest, snapshotTable, status, workingDireventType, seqids, server, waitingTimeForEvents| 构造器和说明 |
|---|
DisabledTableSnapshotHandler(org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot,
MasterServices masterServices,
SnapshotManager snapshotManager) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected boolean |
downgradeToSharedTableLock()
When taking snapshot, first we must acquire the exclusive table lock to confirm that there are
no ongoing merge/split procedures.
|
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<RegionInfo,ServerName>> regionsAndLocations)
Snapshot the specified regions
|
cancel, completeSnapshot, getCompletionTimestamp, getException, getExceptionIfFailed, getSnapshot, hasException, isFinished, process, rethrowException, rethrowExceptionIfFailed, snapshotDisabledRegioncompareTo, getEventType, getInformativeName, getPriority, getSeqid, handleException, run, toStringpublic DisabledTableSnapshotHandler(org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot, MasterServices masterServices, SnapshotManager snapshotManager)
snapshot - descriptor of the snapshot to takemasterServices - master services providerpublic DisabledTableSnapshotHandler prepare() throws Exception
EventHandlerprepare 在类中 TakeSnapshotHandlerException - when something goes wrongpublic void snapshotRegions(List<Pair<RegionInfo,ServerName>> regionsAndLocations) throws IOException, org.apache.zookeeper.KeeperException
TakeSnapshotHandlersnapshotRegions 在类中 TakeSnapshotHandlerIOExceptionorg.apache.zookeeper.KeeperExceptionprotected boolean downgradeToSharedTableLock()
TakeSnapshotHandlerCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.