UpdateTableRequest req = spec.getRequest(); req.setTableName(getTableName()); UpdateTableResult result = client.updateTable(req); return this.tableDescription = result.getTableDescription();
@Override public UpdateTableResult updateTable(String tableName, ProvisionedThroughput provisionedThroughput) throws AmazonServiceException, AmazonClientException { return getBackend().updateTable(tableName, provisionedThroughput); }
@Override public UpdateTableResult updateTable(UpdateTableRequest request) throws AmazonServiceException, AmazonClientException { return getBackend().updateTable(request); }
/** * Adjusts throughput on the table. */ public void adjust() { this.table .region() .aws() .updateTable( this.table.name(), Throughput.suitableThroughput() ); }
/** * Adjusts throughput on the table. */ public void adjust() { this.table .region() .aws() .updateTable( this.table.name(), Throughput.suitableThroughput() ); }
/** * Updates the table settings (read and write capacities). * @param appid name of the {@link com.erudika.para.core.App} * @param readCapacity read capacity * @param writeCapacity write capacity * @return true if updated */ public static boolean updateTable(String appid, long readCapacity, long writeCapacity) { if (StringUtils.isBlank(appid) || StringUtils.containsWhitespace(appid)) { return false; } String table = getTableNameForAppid(appid); try { // AWS throws an exception if the new read/write capacity values are the same as the current ones getClient().updateTable(new UpdateTableRequest().withTableName(table). withProvisionedThroughput(new ProvisionedThroughput(readCapacity, writeCapacity))); return true; } catch (Exception e) { logger.error("Could not update table '{}' - table is not active or no change to capacity: {}", table, e.getMessage()); } return false; }
/** * Updates the table settings (read and write capacities). * @param appid name of the {@link com.erudika.para.core.App} * @param readCapacity read capacity * @param writeCapacity write capacity * @return true if updated */ public static boolean updateTable(String appid, long readCapacity, long writeCapacity) { if (StringUtils.isBlank(appid) || StringUtils.containsWhitespace(appid)) { return false; } String table = getTableNameForAppid(appid); try { // AWS throws an exception if the new read/write capacity values are the same as the current ones getClient().updateTable(new UpdateTableRequest().withTableName(table). withProvisionedThroughput(new ProvisionedThroughput(readCapacity, writeCapacity))); return true; } catch (Exception e) { logger.error("Could not update table '{}' - table is not active or no change to capacity: {}", table, e.getMessage()); } return false; }
UpdateTableRequest req = spec.getRequest(); req.setTableName(getTableName()); UpdateTableResult result = client.updateTable(req); return this.tableDescription = result.getTableDescription();