类com.amazonaws.services.dynamodbv2.model.UpdateTableResult源码实例Demo

下面列出了怎么用com.amazonaws.services.dynamodbv2.model.UpdateTableResult的API类实例代码及写法,或者点击链接到github查看源代码。

@Test
public void test_updateTable() throws Exception {
  createTable();

  DescribeTableResult describeResult = dynamoDb.describeTable(TEST_TABLE_NAME);
  Long readUnits = describeResult.getTable().getProvisionedThroughput().getReadCapacityUnits();

  assertThat(readUnits, equalTo(UNITS));

  UpdateTableResult updateResult = dynamoDb.updateTable(TEST_TABLE_NAME, new ProvisionedThroughput()
    .withReadCapacityUnits(new Long(200))
    .withWriteCapacityUnits(new Long(200)));
  String tableName = updateResult.getTableDescription().getTableName();

  assertThat(tableName, equalTo(TEST_TABLE_NAME));

  ListTablesResult listResult = listTables();

  describeResult = dynamoDb.describeTable(TEST_TABLE_NAME);
  readUnits = describeResult.getTable().getProvisionedThroughput().getReadCapacityUnits();

  assertThat(readUnits, equalTo(new Long(200)));
}
 
源代码2 项目: podyn   文件: PostgresDynamoDB.java
@Override
public UpdateTableResult updateTable(UpdateTableRequest updateTableRequest) {
	
	throw new UnsupportedOperationException();
}
 
源代码3 项目: podyn   文件: PostgresDynamoDB.java
@Override
public UpdateTableResult updateTable(String tableName, ProvisionedThroughput provisionedThroughput) {
	
	throw new UnsupportedOperationException();
}
 
@Override
public UpdateTableResult updateTable(UpdateTableRequest arg0)
        throws AmazonServiceException, AmazonClientException {
    throw new UnsupportedOperationException("Use the underlying client instance instead");
}
 
@Override
public UpdateTableResult updateTable(String tableName,
        ProvisionedThroughput provisionedThroughput)
        throws AmazonServiceException, AmazonClientException {
    throw new UnsupportedOperationException("Use the underlying client instance instead");
}
 
@Override
public UpdateTableResult updateTable(UpdateTableRequest request) throws AmazonServiceException, AmazonClientException {
    return getBackend().updateTable(request);
}
 
@Override
public UpdateTableResult updateTable(String tableName, ProvisionedThroughput provisionedThroughput) throws AmazonServiceException, AmazonClientException {
    return getBackend().updateTable(tableName, provisionedThroughput);
}
 
@Override
public UpdateTableResult updateTable(UpdateTableRequest arg0)
        throws AmazonServiceException, AmazonClientException {
    throw new UnsupportedOperationException("Use the underlying client instance instead");
}
 
@Override
public UpdateTableResult updateTable(String tableName,
        ProvisionedThroughput provisionedThroughput)
        throws AmazonServiceException, AmazonClientException {
    throw new UnsupportedOperationException("Use the underlying client instance instead");
}
 
 类方法
 同包方法