org.apache.hadoop.hbase.master
Interface SnapshotSentinel

All Known Implementing Classes:
CloneSnapshotHandler, DisabledTableSnapshotHandler, EnabledTableSnapshotHandler, RestoreSnapshotHandler, TakeSnapshotHandler

@InterfaceAudience.Private
@InterfaceStability.Unstable
public interface SnapshotSentinel

Watch the current snapshot under process


Method Summary
 void cancel(String why)
          Actively cancel a running snapshot.
 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.
 

Method Detail

isFinished

boolean isFinished()
Check to see if the snapshot is finished, where finished may be success or failure.

Returns:
false if the snapshot is still in progress, true if the snapshot has finished

cancel

void cancel(String why)
Actively cancel a running snapshot.

Parameters:
why - Reason for cancellation.

getSnapshot

HBaseProtos.SnapshotDescription getSnapshot()
Returns:
the description of the snapshot being run

getExceptionIfFailed

ForeignException getExceptionIfFailed()
Get the exception that caused the snapshot to fail, if the snapshot has failed.

Returns:
ForeignException that caused the snapshot to fail, or null if the snapshot is still in progress or has succeeded


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.