Package com.amazonaws.services.sns

Examples of com.amazonaws.services.sns.AmazonSNSClient


     *
     * @return AmazonSNSClient
     */
    AmazonSNSClient createSNSClient() {
        AWSCredentials credentials = new BasicAWSCredentials(configuration.getAccessKey(), configuration.getSecretKey());
        AmazonSNSClient client = new AmazonSNSClient(credentials);
        if (configuration.getAmazonSNSEndpoint() != null) {
            client.setEndpoint(configuration.getAmazonSNSEndpoint());
        }
        return client;
    }
View Full Code Here


     *
     * @return AmazonSNSClient
     */
    AmazonSNSClient createSNSClient() {
        AWSCredentials credentials = new BasicAWSCredentials(configuration.getAccessKey(), configuration.getSecretKey());
        AmazonSNSClient client = new AmazonSNSClient(credentials);
        if (configuration.getAmazonSNSEndpoint() != null) {
            client.setEndpoint(configuration.getAmazonSNSEndpoint());
        }
        return client;
    }
View Full Code Here

     *
     * @return AmazonSNSClient
     */
    AmazonSNS createSNSClient() {
        AWSCredentials credentials = new BasicAWSCredentials(configuration.getAccessKey(), configuration.getSecretKey());
        AmazonSNS client = new AmazonSNSClient(credentials);
        if (configuration.getAmazonSNSEndpoint() != null) {
            client.setEndpoint(configuration.getAmazonSNSEndpoint());
        }
        return client;
    }
View Full Code Here

    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

 
    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

     *
     * @return AmazonSNSClient
     */
    AmazonSNSClient createSNSClient() {
        AWSCredentials credentials = new BasicAWSCredentials(configuration.getAccessKey(), configuration.getSecretKey());
        AmazonSNSClient client = new AmazonSNSClient(credentials);
        if (configuration.getAmazonSNSEndpoint() != null) {
            client.setEndpoint(configuration.getAmazonSNSEndpoint());
        }
        return client;
    }
View Full Code Here

     *
     * @return AmazonSNSClient
     */
    AmazonSNS createSNSClient() {
        AWSCredentials credentials = new BasicAWSCredentials(configuration.getAccessKey(), configuration.getSecretKey());
        AmazonSNS client = new AmazonSNSClient(credentials);
        return client;
    }
View Full Code Here

      messageMarshaller = new JsonMessageMarshaller();
    }

    if (snsTestProxy == null) {
      if (awsClientConfiguration == null) {
        client = new AmazonSNSClient(awsCredentialsProvider);
      } else {
        client = new AmazonSNSClient(awsCredentialsProvider,
            awsClientConfiguration);
      }
      if (regionId != null) {
        client.setEndpoint(String.format("sns.%s.amazonaws.com",
            regionId));
View Full Code Here

    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

    @Autowired
    private Reactor reactor;

    public void createTopicAndSubscribe(AwsCredential awsCredential, Regions region) {
        MDCBuilder.buildMdcContext(awsCredential);
        AmazonSNSClient amazonSNSClient = awsStackUtil.createSnsClient(region, awsCredential);
        LOGGER.info("Amazon SNS client successfully created.");

        CreateTopicResult createTopicResult = amazonSNSClient.createTopic(CB_TOPIC_NAME);
        LOGGER.info("Amazon SNS topic successfully created. [topic ARN: '{}']", createTopicResult.getTopicArn());

        SnsTopic snsTopic = new SnsTopic();
        snsTopic.setName(CB_TOPIC_NAME);
        snsTopic.setRegion(region);
View Full Code Here

TOP

Related Classes of com.amazonaws.services.sns.AmazonSNSClient

Copyright © 2018 www.massapicom. 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.