Class MapBasedSQSConfig

    • Field Detail

      • DEFAULT_REGION

        public static final java.lang.String DEFAULT_REGION
    • Constructor Detail

      • MapBasedSQSConfig

        public MapBasedSQSConfig()
      • MapBasedSQSConfig

        public MapBasedSQSConfig​(java.util.Map<java.lang.String,​java.lang.String> sqsConfig)
    • Method Detail

      • getConfigMapFromSystemProperties

        protected static java.util.Map<java.lang.String,​java.lang.String> getConfigMapFromSystemProperties()
      • getQueuePrefix

        public java.lang.String getQueuePrefix()
        Description copied from interface: AmazonSQSConfig
        Prefix to be added to all queues. This can be used to differentiate between OpenNMS deployments in a single region.
        Specified by:
        getQueuePrefix in interface AmazonSQSConfig
        Returns:
        the prefix, or null if no prefix should be used.
      • getRegion

        public com.amazonaws.regions.Regions getRegion()
        Description copied from interface: AmazonSQSConfig
        AWS region to use.
        Specified by:
        getRegion in interface AmazonSQSConfig
        Returns:
        the region, or null if the default region should be used.
      • hasStaticCredentials

        public boolean hasStaticCredentials()
        Description copied from interface: AmazonSQSConfig
        Convenience method that returns true if both an access key and secret key have been set.
        Specified by:
        hasStaticCredentials in interface AmazonSQSConfig
        Returns:
        true if both an access key and secret key have been set, false otherwise.
      • getAccessKey

        public java.lang.String getAccessKey()
        Description copied from interface: AmazonSQSConfig
        AWS access key.
        Specified by:
        getAccessKey in interface AmazonSQSConfig
        Returns:
        the key, or null if the client should be initialized without static credentials.
      • getSecretKey

        public java.lang.String getSecretKey()
        Description copied from interface: AmazonSQSConfig
        AWS secret key.
        Specified by:
        getSecretKey in interface AmazonSQSConfig
        Returns:
        the key, or null if the client should be initialized without static credentials.
      • isUseHttp

        public boolean isUseHttp()
        Description copied from interface: AmazonSQSConfig
        Used to force the SQS client to use HTTP instead of HTTPS. This can be used for testing, making it easier to intercept the messages sent over the wire.
        Specified by:
        isUseHttp in interface AmazonSQSConfig
        Returns:
        true if HTTP should be used insetad of HTTPS, false otherwise.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object