当前位置: 首页>>代码示例>>Java>>正文


Java SnapshotTestingUtils.deleteAllSnapshots方法代码示例

本文整理汇总了Java中org.apache.hadoop.hbase.snapshot.SnapshotTestingUtils.deleteAllSnapshots方法的典型用法代码示例。如果您正苦于以下问题:Java SnapshotTestingUtils.deleteAllSnapshots方法的具体用法?Java SnapshotTestingUtils.deleteAllSnapshots怎么用?Java SnapshotTestingUtils.deleteAllSnapshots使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.hadoop.hbase.snapshot.SnapshotTestingUtils的用法示例。


在下文中一共展示了SnapshotTestingUtils.deleteAllSnapshots方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: tearDown

import org.apache.hadoop.hbase.snapshot.SnapshotTestingUtils; //导入方法依赖的package包/类
@After
public void tearDown() throws Exception {
  if (admin.tableExists(tableName)) {
    TEST_UTIL.deleteTable(tableName);
  }
  SnapshotTestingUtils.deleteAllSnapshots(admin);
  SnapshotTestingUtils.deleteArchiveDirectory(TEST_UTIL);
}
 
开发者ID:fengchen8086,项目名称:ditb,代码行数:9,代码来源:TestCloneSnapshotFromClient.java

示例2: tearDown

import org.apache.hadoop.hbase.snapshot.SnapshotTestingUtils; //导入方法依赖的package包/类
@After
public void tearDown() throws Exception {
  UTIL.deleteTable(TABLE_NAME);

  SnapshotTestingUtils.deleteAllSnapshots(UTIL.getHBaseAdmin());
  SnapshotTestingUtils.deleteArchiveDirectory(UTIL);
}
 
开发者ID:tenggyut,项目名称:HIndex,代码行数:8,代码来源:TestFlushSnapshotFromClient.java

示例3: tearDown

import org.apache.hadoop.hbase.snapshot.SnapshotTestingUtils; //导入方法依赖的package包/类
/**
 * @throws Exception if deleting the archive directory or shutting down the mini cluster fails
 */
@AfterClass
public static void tearDown() throws Exception {
  try{
    SnapshotTestingUtils.deleteAllSnapshots(TEST_UTIL.getHBaseAdmin());
  } catch (Exception e) {
  }
  SnapshotTestingUtils.deleteArchiveDirectory(TEST_UTIL);
  if (useSecondCluster) {
    TEST_UTIL2.shutdownMiniCluster();
  }
  TEST_UTIL.shutdownMiniCluster();
  TEST_UTIL.shutdownMiniMapReduceCluster();
}
 
开发者ID:apache,项目名称:hbase,代码行数:17,代码来源:TestBackupBase.java

示例4: tearDown

import org.apache.hadoop.hbase.snapshot.SnapshotTestingUtils; //导入方法依赖的package包/类
@After
public void tearDown() throws Exception {
  UTIL.deleteTable(originalTableName);
  UTIL.deleteTable(cloneTableName);
  SnapshotTestingUtils.deleteAllSnapshots(UTIL.getAdmin());
  SnapshotTestingUtils.deleteArchiveDirectory(UTIL);
}
 
开发者ID:apache,项目名称:hbase,代码行数:8,代码来源:TestSnapshotCloneIndependence.java

示例5: tearDown

import org.apache.hadoop.hbase.snapshot.SnapshotTestingUtils; //导入方法依赖的package包/类
@After
@Override
public void tearDown() throws Exception {
  super.tearDown();
  SnapshotTestingUtils.deleteAllSnapshots(UTIL.getAdmin());
  snapshot = null;
}
 
开发者ID:apache,项目名称:hbase,代码行数:8,代码来源:TestCloneSnapshotProcedure.java

示例6: tearDown

import org.apache.hadoop.hbase.snapshot.SnapshotTestingUtils; //导入方法依赖的package包/类
@After
@Override
public void tearDown() throws Exception {
  super.tearDown();
  SnapshotTestingUtils.deleteAllSnapshots(UTIL.getAdmin());
  SnapshotTestingUtils.deleteArchiveDirectory(UTIL);
}
 
开发者ID:apache,项目名称:hbase,代码行数:8,代码来源:TestRestoreSnapshotProcedure.java

示例7: tearDown

import org.apache.hadoop.hbase.snapshot.SnapshotTestingUtils; //导入方法依赖的package包/类
@After
public void tearDown() throws Exception {
  SnapshotTestingUtils.deleteAllSnapshots(admin);
}
 
开发者ID:fengchen8086,项目名称:ditb,代码行数:5,代码来源:TestSnapshotMetadata.java

示例8: tearDown

import org.apache.hadoop.hbase.snapshot.SnapshotTestingUtils; //导入方法依赖的package包/类
@After
public void tearDown() throws Exception {
  TEST_UTIL.deleteTable(tableName);
  SnapshotTestingUtils.deleteAllSnapshots(TEST_UTIL.getHBaseAdmin());
  SnapshotTestingUtils.deleteArchiveDirectory(TEST_UTIL);
}
 
开发者ID:fengchen8086,项目名称:ditb,代码行数:7,代码来源:TestRestoreSnapshotFromClient.java

示例9: tearDown

import org.apache.hadoop.hbase.snapshot.SnapshotTestingUtils; //导入方法依赖的package包/类
@After
public void tearDown() throws Exception {
  UTIL.deleteTable(TABLE_NAME);
  SnapshotTestingUtils.deleteAllSnapshots(UTIL.getHBaseAdmin());
  SnapshotTestingUtils.deleteArchiveDirectory(UTIL);
}
 
开发者ID:fengchen8086,项目名称:ditb,代码行数:7,代码来源:TestSnapshotFromClient.java

示例10: tearDown

import org.apache.hadoop.hbase.snapshot.SnapshotTestingUtils; //导入方法依赖的package包/类
@After
public void tearDown() throws Exception {
  UTIL.deleteTable(TABLE_NAME);
  SnapshotTestingUtils.deleteAllSnapshots(UTIL.getAdmin());
  SnapshotTestingUtils.deleteArchiveDirectory(UTIL);
}
 
开发者ID:apache,项目名称:hbase,代码行数:7,代码来源:TestSnapshotFromClient.java


注:本文中的org.apache.hadoop.hbase.snapshot.SnapshotTestingUtils.deleteAllSnapshots方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。