Examples of AmazonSQSClient


Examples of com.amazonaws.services.sqs.AmazonSQSClient

    }

    @PostConstruct
    private void init() {
        AWSCredentials credentials = new BasicAWSCredentials(awsAccessKey, awsSecretKey);
        this.sqsClient = new AmazonSQSClient(credentials);

        GetQueueUrlRequest request = new GetQueueUrlRequest(sqsQueueName);
        this.queueUrl = sqsClient.getQueueUrl(request).getQueueUrl();
    }
View Full Code Here

Examples of com.amazonaws.services.sqs.AmazonSQSClient

    }

    @PostConstruct
    private void init() {
        AWSCredentials credentials = new BasicAWSCredentials(awsAccessKey, awsSecretKey);
        this.sqsClient = new AmazonSQSClient(credentials);

        GetQueueUrlRequest request = new GetQueueUrlRequest(sqsQueueName);
        this.queueUrl = sqsClient.getQueueUrl(request).getQueueUrl();
    }
View Full Code Here

Examples of com.amazonaws.services.sqs.AmazonSQSClient

     * Provide the possibility to override this method for an mock implementation
     * @return AmazonSQSClient
     */
    AmazonSQSClient createClient() {
        AWSCredentials credentials = new BasicAWSCredentials(configuration.getAccessKey(), configuration.getSecretKey());
        return new AmazonSQSClient(credentials);
    }
View Full Code Here

Examples of com.amazonaws.services.sqs.AmazonSQSClient

  private String topicArn;

    private static final Log log = LogFactory.getLog(JobStatusMonitor.class);

  public JobStatusMonitor(AWSCredentialsProvider credentialsProvider, ClientConfiguration clientConfiguration) {
    sqs = new AmazonSQSClient(credentialsProvider, clientConfiguration);
    sns = new AmazonSNSClient(credentialsProvider, clientConfiguration);
    setupQueueAndTopic();
  }
View Full Code Here

Examples of com.amazonaws.services.sqs.AmazonSQSClient

    Assert.isTrue(queue != null || awsCredentialsProvider != null,
        "Either queue or awsCredentialsProvider needs to be provided");

    if (queue == null) {
      if (sqsClient == null) {
        sqsClient = new AmazonSQSClient(awsCredentialsProvider);
      }
      if (regionId != null) {
        sqsClient.setEndpoint(String.format("sqs.%s.amazonaws.com",
            regionId));
      }
View Full Code Here

Examples of com.amazonaws.services.sqs.AmazonSQSClient

     * Provide the possibility to override this method for an mock implementation
     * @return AmazonSQSClient
     */
    AmazonSQSClient createClient() {
        AWSCredentials credentials = new BasicAWSCredentials(configuration.getAccessKey(), configuration.getSecretKey());
        AmazonSQSClient client = new AmazonSQSClient(credentials);
        if (configuration.getAmazonSQSEndpoint() != null) {
            client.setEndpoint(configuration.getAmazonSQSEndpoint());
        }
        return client;
    }
View Full Code Here

Examples of com.amazonaws.services.sqs.AmazonSQSClient

     * Provide the possibility to override this method for an mock implementation
     * @return AmazonSQSClient
     */
    AmazonSQSClient createClient() {
        AWSCredentials credentials = new BasicAWSCredentials(configuration.getAccessKey(), configuration.getSecretKey());
        AmazonSQSClient client = new AmazonSQSClient(credentials);
        if (configuration.getAmazonSQSEndpoint() != null) {
            client.setEndpoint(configuration.getAmazonSQSEndpoint());
        }
        return client;
    }
View Full Code Here

Examples of com.amazonaws.services.sqs.AmazonSQSClient

    private String topicArn;

    private static final Log log = LogFactory.getLog(JobStatusMonitor.class);

    public JobStatusMonitor(AWSCredentialsProvider credentialsProvider, ClientConfiguration clientConfiguration) {
        sqs = new AmazonSQSClient(credentialsProvider, clientConfiguration);
        sns = new AmazonSNSClient(credentialsProvider, clientConfiguration);
        setupQueueAndTopic();
    }
View Full Code Here

Examples of com.amazonaws.services.sqs.AmazonSQSClient

    public SQS(AmazonSQS sqsClient) {
        this.sqsClient = sqsClient;
    }

    public SQS() {
        AmazonSQSClient sqsClient = new AmazonSQSClient(new BasicAWSCredentials(AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY),
                new ClientConfiguration().withProtocol(Util.determineProtocol(SQS_SERVER)));
        sqsClient.setEndpoint(SQS_SERVER);

        this.sqsClient = sqsClient;
    }
View Full Code Here

Examples of com.amazonaws.services.sqs.AmazonSQSClient

        this.sqsClient = sqsClient;
    }

    public SQS(String server, String accessKey, String secretKey) {
        AmazonSQSClient sqsClient = new AmazonSQSClient(new BasicAWSCredentials(accessKey, secretKey),
                new ClientConfiguration().withProtocol(Util.determineProtocol(server)));
        sqsClient.setEndpoint(server);

        this.sqsClient = sqsClient;
    }
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.