Java 类com.amazonaws.services.dynamodb.model.DeleteTableResult 实例源码

项目:gora-boot    文件:DynamoDBStore.java   
/**
 * Executes a delete table request using the DynamoDB client
 * @param tableName
 */
public void executeDeleteTableRequest(String pTableName){
  try{
    DeleteTableRequest deleteTableRequest = new DeleteTableRequest().withTableName(pTableName);
    DeleteTableResult result = dynamoDBClient.deleteTable(deleteTableRequest);
    waitForTableToBeDeleted(pTableName);
    LOG.debug("Schema: " + result.getTableDescription() + " deleted successfully.");
  }
  catch(Exception e){
    LOG.debug("Schema: " + pTableName + " deleted.");
    e.printStackTrace();
  }
}
项目:gora-oraclenosql    文件:DynamoDBStore.java   
/**
 * Executes a delete table request using the DynamoDB client
 * @param tableName
 */
public void executeDeleteTableRequest(String pTableName){
  try{
    DeleteTableRequest deleteTableRequest = new DeleteTableRequest().withTableName(pTableName);
    DeleteTableResult result = dynamoDBClient.deleteTable(deleteTableRequest);
    waitForTableToBeDeleted(pTableName);
    LOG.debug("Schema: " + result.getTableDescription() + " deleted successfully.");
  }
  catch(Exception e){
    LOG.debug("Schema: " + pTableName + " deleted.");
    e.printStackTrace();
  }
}