Java 类org.apache.hadoop.hbase.protobuf.generated.MasterProtos.DeleteSnapshotResponse 实例源码

项目:ditb    文件:MasterRpcServices.java   
/**
 * Execute Delete Snapshot operation.
 * @return DeleteSnapshotResponse (a protobuf wrapped void) if the snapshot existed and was
 *    deleted properly.
 * @throws ServiceException wrapping SnapshotDoesNotExistException if specified snapshot did not
 *    exist.
 */
@Override
public DeleteSnapshotResponse deleteSnapshot(RpcController controller,
    DeleteSnapshotRequest request) throws ServiceException {
  try {
    master.checkInitialized();
    master.snapshotManager.checkSnapshotSupport();

    LOG.info(master.getClientIdAuditPrefix() + " delete " + request.getSnapshot());
    master.snapshotManager.deleteSnapshot(request.getSnapshot());
    return DeleteSnapshotResponse.newBuilder().build();
  } catch (IOException e) {
    throw new ServiceException(e);
  }
}
项目:pbase    文件:MasterRpcServices.java   
/**
 * Execute Delete Snapshot operation.
 * @return DeleteSnapshotResponse (a protobuf wrapped void) if the snapshot existed and was
 *    deleted properly.
 * @throws ServiceException wrapping SnapshotDoesNotExistException if specified snapshot did not
 *    exist.
 */
@Override
public DeleteSnapshotResponse deleteSnapshot(RpcController controller,
    DeleteSnapshotRequest request) throws ServiceException {
  try {
    master.checkInitialized();
    master.snapshotManager.checkSnapshotSupport();

    LOG.info(master.getClientIdAuditPrefix() + " delete " + request.getSnapshot());
    master.snapshotManager.deleteSnapshot(request.getSnapshot());
    return DeleteSnapshotResponse.newBuilder().build();
  } catch (IOException e) {
    throw new ServiceException(e);
  }
}
项目:PyroDB    文件:MasterRpcServices.java   
/**
 * Execute Delete Snapshot operation.
 * @return DeleteSnapshotResponse (a protobuf wrapped void) if the snapshot existed and was
 *    deleted properly.
 * @throws ServiceException wrapping SnapshotDoesNotExistException if specified snapshot did not
 *    exist.
 */
@Override
public DeleteSnapshotResponse deleteSnapshot(RpcController controller,
    DeleteSnapshotRequest request) throws ServiceException {
  try {
    master.checkInitialized();
    master.snapshotManager.checkSnapshotSupport();

    LOG.info(master.getClientIdAuditPrefix() + " delete " + request.getSnapshot());
    master.snapshotManager.deleteSnapshot(request.getSnapshot());
    return DeleteSnapshotResponse.newBuilder().build();
  } catch (IOException e) {
    throw new ServiceException(e);
  }
}