| 
 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectcom.amazonaws.services.dynamodbv2.util.Tables
public class Tables
Utility methods for working with AWS DynamoDB tables.
 if (Tables.doesTableExist(dynamoDB, myTableName) == false) {
    // ... create your table ...
    Tables.waitForTableToBecomeActive(dynamoDB, myTableName);
 }
 
| Constructor Summary | |
|---|---|
| Tables() | |
| Method Summary | |
|---|---|
| static boolean | doesTableExist(AmazonDynamoDB dynamo,
               java.lang.String tableName)Checks if a specified table exists and is in ACTIVEstate. | 
| static void | waitForTableToBecomeActive(AmazonDynamoDB dynamo,
                           java.lang.String tableName)Waits up to 10 minutes for a specified AWS DynamoDB table to move into the ACTIVEstate. | 
| static void | waitForTableToBecomeActive(AmazonDynamoDB dynamo,
                           java.lang.String tableName,
                           int timeout,
                           int interval)Waits up to a specified amount of time for a specified AWS DynamoDB table to move into the ACTIVEstate. | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public Tables()
| Method Detail | 
|---|
public static boolean doesTableExist(AmazonDynamoDB dynamo,
                                     java.lang.String tableName)
ACTIVE state.
dynamo - The AWS DynamoDB client to use to make requests.tableName - The name of the table being searched for.
public static void waitForTableToBecomeActive(AmazonDynamoDB dynamo,
                                              java.lang.String tableName)
ACTIVE state. If the table doesn't transition to the
 ACTIVE state, then an AmazonClientException is thrown.
dynamo - The AWS DynamoDB client to use to make requests.tableName - The name of the table whose status is being checked.
AmazonClientException - If the specified table does not transition into the
             ACTIVE state before this method times out and
             stops polling.
public static void waitForTableToBecomeActive(AmazonDynamoDB dynamo,
                                              java.lang.String tableName,
                                              int timeout,
                                              int interval)
ACTIVE state. If the table doesn't
 transition to the ACTIVE state, then an
 AmazonClientException is thrown.
dynamo - The AWS DynamoDB client to use to make requests.tableName - The name of the table whose status is being checked.timeout - The maximum number of milliseconds to wait.interval - The poll interval in milliseconds.
AmazonClientException - If the specified table does not transition into the
             ACTIVE state before this method times out and
             stops polling.| 
 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||