Package com.amazonaws.services.sns.model

Examples of com.amazonaws.services.sns.model.CreateTopicRequest


    @Override
    public void doStart() throws Exception {
        super.doStart();
       
        // creates a new topic, or returns the URL of an existing one
        CreateTopicRequest request = new CreateTopicRequest(configuration.getTopicName());
       
        LOG.trace("Creating topic [{}] with request [{}]...", configuration.getTopicName(), request);
       
        CreateTopicResult result = getSNSClient().createTopic(request);
        configuration.setTopicArn(result.getTopicArn());
View Full Code Here


    @Override
    public void doStart() throws Exception {
        super.doStart();
       
        // creates a new topic, or returns the URL of an existing one
        CreateTopicRequest request = new CreateTopicRequest(configuration.getTopicName());
       
        LOG.trace("Creating topic [{}] with request [{}]...", configuration.getTopicName(), request);
       
        CreateTopicResult result = getSNSClient().createTopic(request);
        configuration.setTopicArn(result.getTopicArn());
View Full Code Here

    @Override
    public void doStart() throws Exception {
        super.doStart();
       
        // creates a new topic, or returns the URL of an existing one
        CreateTopicRequest request = new CreateTopicRequest(configuration.getTopicName());
       
        LOG.trace("Creating topic [{}] with request [{}]...", configuration.getTopicName(), request);
       
        CreateTopicResult result = getSNSClient().createTopic(request);
        configuration.setTopicArn(result.getTopicArn());
View Full Code Here

    private void setupQueueAndTopic() {
      String queueName = "glacier-archive-transfer-" + System.currentTimeMillis();
      String topicName = "glacier-archive-transfer-" + System.currentTimeMillis();

        queueUrl = sqs.createQueue(new CreateQueueRequest(queueName)).getQueueUrl();
        topicArn = sns.createTopic(new CreateTopicRequest(topicName)).getTopicArn();
        String queueARN = sqs.getQueueAttributes(new GetQueueAttributesRequest(queueUrl).withAttributeNames("QueueArn")).getAttributes().get("QueueArn");

        Policy sqsPolicy =
            new Policy().withStatements(
                    new Statement(Effect.Allow)
View Full Code Here

    private void setupQueueAndTopic() {
      String queueName = "glacier-archive-transfer-" + System.currentTimeMillis();
      String topicName = "glacier-archive-transfer-" + System.currentTimeMillis();
     
        queueUrl = sqs.createQueue(new CreateQueueRequest(queueName)).getQueueUrl();
        topicArn = sns.createTopic(new CreateTopicRequest(topicName)).getTopicArn();
        String queueARN = sqs.getQueueAttributes(new GetQueueAttributesRequest(queueUrl).withAttributeNames("QueueArn")).getAttributes().get("QueueArn");
       
        Policy sqsPolicy =
            new Policy().withStatements(
                    new Statement(Effect.Allow)
View Full Code Here

    @Override
    public void doStart() throws Exception {
        super.doStart();
       
        // creates a new topic, or returns the URL of an existing one
        CreateTopicRequest request = new CreateTopicRequest(configuration.getTopicName());
       
        LOG.trace("Creating topic [{}] with request [{}]...", configuration.getTopicName(), request);
       
        CreateTopicResult result = getSNSClient().createTopic(request);
        configuration.setTopicArn(result.getTopicArn());
View Full Code Here

    public void doStart() throws Exception {
        super.doStart();
        snsClient = configuration.getAmazonSNSClient() != null
            ? configuration.getAmazonSNSClient() : createSNSClient();
        // creates a new topic, or returns the URL of an existing one
        CreateTopicRequest request = new CreateTopicRequest(configuration.getTopicName());
       
        LOG.trace("Creating topic [{}] with request [{}]...", configuration.getTopicName(), request);
       
        CreateTopicResult result = snsClient.createTopic(request);
        configuration.setTopicArn(result.getTopicArn());
View Full Code Here

        topicArn = topic.getTopicArn();
        break;
      }
    }
    if (topicArn == null) {
      CreateTopicRequest request = new CreateTopicRequest(topicName);
      CreateTopicResult result = client.createTopic(request);
      topicArn = result.getTopicArn();
      log.debug("Topic created, arn: " + topicArn);
    } else {
      log.debug("Topic already created: " + topicArn);
View Full Code Here

    private void setupQueueAndTopic() {
      String queueName = "glacier-archive-transfer-" + System.currentTimeMillis();
      String topicName = "glacier-archive-transfer-" + System.currentTimeMillis();

        queueUrl = sqs.createQueue(new CreateQueueRequest(queueName)).getQueueUrl();
        topicArn = sns.createTopic(new CreateTopicRequest(topicName)).getTopicArn();
        String queueARN = sqs.getQueueAttributes(new GetQueueAttributesRequest(queueUrl).withAttributeNames("QueueArn")).getAttributes().get("QueueArn");

        Policy sqsPolicy =
            new Policy().withStatements(
                    new Statement(Effect.Allow)
View Full Code Here

        topicArn = topic.getTopicArn();
        break;
      }
    }
    if (topicArn == null) {
      CreateTopicRequest request = new CreateTopicRequest(topicName);
      CreateTopicResult result = client.createTopic(request);
      topicArn = result.getTopicArn();
      log.debug("Topic created, arn: " + topicArn);
    } else {
      log.debug("Topic already created: " + topicArn);
View Full Code Here

TOP

Related Classes of com.amazonaws.services.sns.model.CreateTopicRequest

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.