Examples of DescribeTableResult


Examples of com.amazonaws.services.dynamodbv2.model.DescribeTableResult

     * Retrieves the table description from DynamoDB. Involves network calls.
     * Meant to be called as infrequently as possible to avoid throttling
     * exception from the server side.
     */
    public TableDescription describe() {
        DescribeTableResult result = client.describeTable(
                InternalUtils.applyUserAgent(new DescribeTableRequest(tableName)));
        return tableDescription = result.getTable();
    }
View Full Code Here

Examples of com.amazonaws.services.dynamodbv2.model.DescribeTableResult

    private void waitForTableToBeReady() {
      GeoDataManagerConfiguration config = geoDataManager.getGeoDataManagerConfiguration();

      DescribeTableRequest describeTableRequest = new DescribeTableRequest().withTableName(config.getTableName());
      DescribeTableResult describeTableResult = config.getDynamoDBClient().describeTable(describeTableRequest);

      while (!describeTableResult.getTable().getTableStatus().equalsIgnoreCase("ACTIVE")) {
        try {
          Thread.sleep(2000);
        } catch (InterruptedException e) {
          throw new RuntimeException(e);
        }
View Full Code Here

Examples of com.amazonaws.services.dynamodbv2.model.DescribeTableResult

  @Test
  public void describeTable() {
    String name = createTableName();
    createTable(name);
    DescribeTableResult res = getClient().describeTable(new DescribeTableRequest().withTableName(name));
    Assert.assertNotNull(res.getTable());
    Assert.assertEquals(res.getTable().getTableName(), name);
  }
View Full Code Here

Examples of com.amazonaws.services.dynamodbv2.model.DescribeTableResult

  @Test
  public void describeTableWithoutTableName() {
    createTable();
    boolean wasError = false;
    try {
      DescribeTableResult res = getClient().describeTable(new DescribeTableRequest());
      wasError = res.getTable() == null;
    } catch (Exception e) {
      wasError = true;
    }
    Assert.assertTrue(wasError);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.