Examples of QueueConfiguration


Examples of com.amazonaws.services.s3.model.QueueConfiguration

                            destinationArn, events.toArray(new String[events
                                    .size()]));
                    configuration.withObjectPrefixes(prefixes
                            .toArray(new String[prefixes.size()]));
                } else if (name.equals("QueueConfiguration")) {
                    configuration = new QueueConfiguration(destinationArn,
                            events.toArray(new String[events.size()]));
                    configuration.withObjectPrefixes(prefixes
                            .toArray(new String[prefixes.size()]));
        } else if (name.equals("CloudFunctionConfiguration")) {
          configuration = new CloudFunctionConfiguration(
View Full Code Here

Examples of com.cloudhopper.mq.queue.QueueConfiguration

  if (argv.length<3) {
      System.err.println("QueueDumper <name> <dir> <url> <optional:queue_name> <optional:out_file>");
      System.exit(1);
  }

  QueueConfiguration config = new QueueConfiguration();
  config.setName(argv[0]);
  config.setDirectory(argv[1]);
  config.setDataStoreUrl(argv[2]);
  config.setJmxEnabled(false);

  OutputStream out = System.out;
  String queueName = null;
  String fileName = null;
  if (argv.length > 3) queueName = argv[3];
View Full Code Here

Examples of com.cloudhopper.mq.queue.QueueConfiguration

  if (argv.length<3) {
      System.err.println("QueueViewer <name> <dir> <url> <optional:queue_name> <optional:out_file>");
      System.exit(1);
  }

  QueueConfiguration config = new QueueConfiguration();
  config.setName(argv[0]);
  config.setDirectory(argv[1]);
  config.setDataStoreUrl(argv[2]);
  config.setJmxEnabled(false);

  PrintStream out = System.out;
  String queueName = null;
  String fileName = null;
  if (argv.length > 3) queueName = argv[3];
View Full Code Here

Examples of org.apache.qpid.server.configuration.QueueConfiguration

        Map<String,String> arguments = new HashMap<String, String>();
        arguments.put(QueueArgumentsConverter.QPID_GROUP_HEADER_KEY,"mykey");
        arguments.put(QueueArgumentsConverter.QPID_SHARED_MSG_GROUP,"1");

        QueueConfiguration qConf = mock(QueueConfiguration.class);
        when(qConf.getArguments()).thenReturn(arguments);
        when(qConf.getName()).thenReturn("test");

        AMQQueue queue = _queueFactory.createAMQQueueImpl(qConf);
        assertEquals("mykey", queue.getAttribute(Queue.MESSAGE_GROUP_KEY));
        assertEquals(Boolean.TRUE, queue.getAttribute(Queue.MESSAGE_GROUP_SHARED_GROUPS));
    }
View Full Code Here

Examples of org.apache.qpid.server.configuration.QueueConfiguration

        {
            String description = "Permission denied: queue-name '" + queueName + "'";
            throw new AMQSecurityException(description);
        }

        QueueConfiguration queueConfiguration = virtualHost.getConfiguration().getQueueConfiguration(queueName);
        boolean isDLQEnabled = isDLQEnabled(autoDelete, arguments, queueConfiguration);
        if (isDLQEnabled)
        {
            validateDLNames(queueName);
        }
View Full Code Here

Examples of org.apache.qpid.server.configuration.QueueConfiguration

        {
            throw new IllegalArgumentException("Queue name must not be null");
        }


        QueueConfiguration queueConfiguration = _virtualHost.getConfiguration().getQueueConfiguration(queueName);

        boolean createDLQ = createDLQ(autoDelete, arguments, queueConfiguration);
        if (createDLQ)
        {
            validateDLNames(queueName);
View Full Code Here

Examples of org.apache.qpid.server.configuration.QueueConfiguration

        {
            String description = "Permission denied: queue-name '" + queueName + "'";
            throw new AMQSecurityException(description);
        }

        QueueConfiguration queueConfiguration = virtualHost.getConfiguration().getQueueConfiguration(queueName);
        boolean isDLQEnabled = isDLQEnabled(autoDelete, arguments, queueConfiguration);
        if (isDLQEnabled)
        {
            validateDLNames(queueName);
        }
View Full Code Here

Examples of org.apache.qpid.server.configuration.QueueConfiguration

        Map<String,String> arguments = new HashMap<String, String>();

        arguments.put(QueueArgumentsConverter.QPID_GROUP_HEADER_KEY,"mykey");
        arguments.put(QueueArgumentsConverter.QPID_SHARED_MSG_GROUP,"1");

        QueueConfiguration qConf = mock(QueueConfiguration.class);
        when(qConf.getArguments()).thenReturn(arguments);
        when(qConf.getName()).thenReturn("test");

        AMQQueue queue = _queueFactory.createAMQQueueImpl(qConf);
        assertEquals("mykey", queue.getAttribute(Queue.MESSAGE_GROUP_KEY));
        assertEquals(Boolean.TRUE, queue.getAttribute(Queue.MESSAGE_GROUP_SHARED_GROUPS));
    }
View Full Code Here

Examples of org.apache.qpid.server.configuration.QueueConfiguration

        {
            String description = "Permission denied: queue-name '" + queueName + "'";
            throw new AMQSecurityException(description);
        }

        QueueConfiguration queueConfiguration = virtualHost.getConfiguration().getQueueConfiguration(queueName);
        boolean isDLQEnabled = isDLQEnabled(autoDelete, arguments, queueConfiguration);
        if (isDLQEnabled)
        {
            validateDLNames(queueName);
        }
View Full Code Here

Examples of org.apache.qpid.server.configuration.QueueConfiguration

    {


        String queueName = MapValueConverter.getStringAttribute(Queue.NAME,attributes);

        QueueConfiguration config = _virtualHost.getConfiguration().getQueueConfiguration(queueName);

        if (!attributes.containsKey(Queue.ALERT_THRESHOLD_MESSAGE_AGE) && config.getMaximumMessageAge() != 0)
        {
            attributes.put(Queue.ALERT_THRESHOLD_MESSAGE_AGE, config.getMaximumMessageAge());
        }
        if (!attributes.containsKey(Queue.ALERT_THRESHOLD_QUEUE_DEPTH_BYTES) && config.getMaximumQueueDepth() != 0)
        {
            attributes.put(Queue.ALERT_THRESHOLD_QUEUE_DEPTH_BYTES, config.getMaximumQueueDepth());
        }
        if (!attributes.containsKey(Queue.ALERT_THRESHOLD_MESSAGE_SIZE) && config.getMaximumMessageSize() != 0)
        {
            attributes.put(Queue.ALERT_THRESHOLD_MESSAGE_SIZE, config.getMaximumMessageSize());
        }
        if (!attributes.containsKey(Queue.ALERT_THRESHOLD_QUEUE_DEPTH_MESSAGES) && config.getMaximumMessageCount() != 0)
        {
            attributes.put(Queue.ALERT_THRESHOLD_QUEUE_DEPTH_MESSAGES, config.getMaximumMessageCount());
        }
        if (!attributes.containsKey(Queue.ALERT_REPEAT_GAP) && config.getMinimumAlertRepeatGap() != 0)
        {
            attributes.put(Queue.ALERT_REPEAT_GAP, config.getMinimumAlertRepeatGap());
        }
        if (config.getMaxDeliveryCount() != 0 && !attributes.containsKey(Queue.MAXIMUM_DELIVERY_ATTEMPTS))
        {
            attributes.put(Queue.MAXIMUM_DELIVERY_ATTEMPTS, config.getMaxDeliveryCount());
        }
        if (!attributes.containsKey(Queue.QUEUE_FLOW_CONTROL_SIZE_BYTES) && config.getCapacity() != 0)
        {
            attributes.put(Queue.QUEUE_FLOW_CONTROL_SIZE_BYTES, config.getCapacity());
        }
        if (!attributes.containsKey(Queue.QUEUE_FLOW_RESUME_SIZE_BYTES) && config.getFlowResumeCapacity() != 0)
        {
            attributes.put(Queue.QUEUE_FLOW_RESUME_SIZE_BYTES, config.getFlowResumeCapacity());
        }


        boolean createDLQ = createDLQ(attributes, config);
        if (createDLQ)
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.