@InterfaceAudience.Private @InterfaceStability.Unstable public interface SnapshotSentinel
Modifier and Type | Method and Description |
---|---|
void |
cancel(String why)
Actively cancel a running snapshot.
|
long |
getCompletionTimestamp() |
ForeignException |
getExceptionIfFailed()
Get the exception that caused the snapshot to fail, if the snapshot has failed.
|
HBaseProtos.SnapshotDescription |
getSnapshot() |
boolean |
isFinished()
Check to see if the snapshot is finished, where finished may be success or failure.
|
void |
rethrowExceptionIfFailed()
Rethrow the exception returned by
getExceptionIfFailed() . |
boolean isFinished()
long getCompletionTimestamp()
void cancel(String why)
why
- Reason for cancellation.HBaseProtos.SnapshotDescription getSnapshot()
ForeignException getExceptionIfFailed()
ForeignException
that caused the snapshot to fail, or null if the
snapshot is still in progress or has succeededvoid rethrowExceptionIfFailed() throws ForeignException
getExceptionIfFailed()
.
If there is no exception this is a no-op.ForeignException
- all exceptions from remote sources are procedure exceptionsCopyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.