Examples of AmazonDynamoDBClient


Examples of com.amazonaws.services.dynamodbv2.AmazonDynamoDBClient

      Region region = Region.getRegion(Regions.fromName(regionName));
      ClientConfiguration clientConfiguration = new ClientConfiguration().withMaxErrorRetry(20);
      AWSCredentials credentials = new BasicAWSCredentials(accessKey, secretKey);

      AmazonDynamoDBClient ddb = new AmazonDynamoDBClient(credentials, clientConfiguration);
      ddb.setRegion(region);

      GeoDataManagerConfiguration config = new GeoDataManagerConfiguration(ddb, tableName);
      geoDataManager = new GeoDataManager(config);
    }
  }
View Full Code Here

Examples of com.amazonaws.services.dynamodbv2.AmazonDynamoDBClient

    String secretKey = System.getProperty("AWS_SECRET_KEY");
    String tableName = System.getProperty("PARAM1");
    String regionName = System.getProperty("PARAM2");

    AWSCredentials credentials = new BasicAWSCredentials(accessKey, secretKey);
    AmazonDynamoDBClient ddb = new AmazonDynamoDBClient(credentials);
    Region region = Region.getRegion(Regions.fromName(regionName));
    ddb.setRegion(region);

    config = new GeoDataManagerConfiguration(ddb, tableName);
    geoDataManager = new GeoDataManager(config);
  }
View Full Code Here

Examples of com.amazonaws.services.dynamodbv2.AmazonDynamoDBClient

        // Grab the container's logger
        logger = getContainer().getLogger();

        AWSCredentialsProvider credentialsProvider = initCredentials();
        AmazonDynamoDBClient dynamo = new AmazonDynamoDBClient(credentialsProvider);
        if (this.regionId != null) dynamo.setRegion(RegionUtils.getRegion(this.regionId));
        if (this.endpoint != null) dynamo.setEndpoint(this.endpoint);

        initDynamoTable(dynamo);

        // init session store
        dynamoSessionStore.setDynamoClient(dynamo);
View Full Code Here

Examples of com.amazonaws.services.dynamodbv2.AmazonDynamoDBClient

    if (ddbClient != null) {
      return ddbClient;
    }

    if (Config.IN_PRODUCTION) {
      ddbClient = new AmazonDynamoDBClient();
      ddbClient.setEndpoint(ENDPOINT);
    } else {
      ddbClient = new AmazonDynamoDBClient(new BasicAWSCredentials("local", "null"));
      ddbClient.setEndpoint(LOCAL_ENDPOINT);
    }

    Para.addDestroyListener(new Para.DestroyListener() {
      public void onDestroy() {
View Full Code Here

Examples of com.amazonaws.services.dynamodbv2.AmazonDynamoDBClient

    DefaultDynamo() {
        this(
            new Dynamo.Client() {
                @Override
                public AmazonDynamoDB get() {
                    final AmazonDynamoDB aws = new AmazonDynamoDBClient(
                        new BasicAWSCredentials(
                            Manifests.read("S3Auth-AwsDynamoKey"),
                            Manifests.read("S3Auth-AwsDynamoSecret")
                        )
                    );
                    // @checkstyle MultipleStringLiterals (1 line)
                    if (Manifests.exists("S3Auth-AwsDynamoEntryPoint")) {
                        aws.setEndpoint(
                            Manifests.read("S3Auth-AwsDynamoEntryPoint")
                        );
                    }
                    return aws;
                }
View Full Code Here

Examples of com.amazonaws.services.dynamodbv2.AmazonDynamoDBClient

    public Worker(IRecordProcessorFactory recordProcessorFactory,
            KinesisClientLibConfiguration config,
            ExecutorService execService) {
        this(recordProcessorFactory, config, new AmazonKinesisClient(config.getKinesisCredentialsProvider(),
                config.getKinesisClientConfiguration()),
                new AmazonDynamoDBClient(config.getDynamoDBCredentialsProvider(),
                        config.getDynamoDBClientConfiguration()),
                new AmazonCloudWatchClient(config.getCloudWatchCredentialsProvider(),
                        config.getCloudWatchClientConfiguration()), execService);
    }
View Full Code Here

Examples of com.amazonaws.services.dynamodbv2.AmazonDynamoDBClient

            KinesisClientLibConfiguration config,
            IMetricsFactory metricsFactory,
            ExecutorService execService) {
        this(recordProcessorFactory, config, new AmazonKinesisClient(config.getKinesisCredentialsProvider(),
                config.getKinesisClientConfiguration()),
                new AmazonDynamoDBClient(config.getDynamoDBCredentialsProvider(),
                        config.getDynamoDBClientConfiguration()), metricsFactory, execService);
    }
View Full Code Here

Examples of com.amazonaws.services.dynamodbv2.AmazonDynamoDBClient

    if (ddbClient != null) {
      return ddbClient;
    }

    if (Config.IN_PRODUCTION) {
      ddbClient = new AmazonDynamoDBClient();
      ddbClient.setEndpoint(ENDPOINT);
    } else {
      ddbClient = new AmazonDynamoDBClient(new BasicAWSCredentials("local", "null"));
      ddbClient.setEndpoint(LOCAL_ENDPOINT);
    }

    Para.addDestroyListener(new Para.DestroyListener() {
      public void onDestroy() {
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.