diff --git a/stack/core/src/main/java/org/apache/usergrid/corepersistence/EntityManagerFig.java b/stack/core/src/main/java/org/apache/usergrid/corepersistence/EntityManagerFig.java index 46c7a1db0a..3c8a53f3fc 100644 --- a/stack/core/src/main/java/org/apache/usergrid/corepersistence/EntityManagerFig.java +++ b/stack/core/src/main/java/org/apache/usergrid/corepersistence/EntityManagerFig.java @@ -46,7 +46,7 @@ public interface EntityManagerFig extends GuicyFig { * Comma-separated list of one or more Amazon regions to use if multiregion * is set to true. */ - @Key( "usergrid.queue.regionList" ) + @Key( "usergrid.cluster.region.list" ) @Default("us-east-1") String getRegionList(); diff --git a/stack/corepersistence/queue/src/main/java/org/apache/usergrid/persistence/queue/LegacyQueueFig.java b/stack/corepersistence/queue/src/main/java/org/apache/usergrid/persistence/queue/LegacyQueueFig.java index f19bedee54..c399636784 100644 --- a/stack/corepersistence/queue/src/main/java/org/apache/usergrid/persistence/queue/LegacyQueueFig.java +++ b/stack/corepersistence/queue/src/main/java/org/apache/usergrid/persistence/queue/LegacyQueueFig.java @@ -14,14 +14,14 @@ public interface LegacyQueueFig extends GuicyFig { * http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html* */ - String USERGRID_CLUSTER_REGION_LIST = "usergrid.cluster.region.list"; - String USERGRID_CLUSTER_REGION_LOCAL = "usergrid.cluster.region.local"; + String USERGRID_QUEUE_REGION_LIST = "usergrid.queue.regionList"; + String USERGRID_QUEUE_REGION_LOCAL = "usergrid.queue.region"; /** * Primary region to use for Amazon queues. */ - @Key( USERGRID_CLUSTER_REGION_LOCAL ) + @Key(USERGRID_QUEUE_REGION_LOCAL) @Default("us-east-1") String getPrimaryRegion(); @@ -37,7 +37,7 @@ public interface LegacyQueueFig extends GuicyFig { * Comma-separated list of one or more Amazon regions to use if multiregion * is set to true. */ - @Key( USERGRID_CLUSTER_REGION_LIST ) + @Key(USERGRID_QUEUE_REGION_LIST) @Default("us-east-1") String getRegionList(); diff --git a/stack/corepersistence/queue/src/main/java/org/apache/usergrid/persistence/queue/impl/SNSQueueManagerImpl.java b/stack/corepersistence/queue/src/main/java/org/apache/usergrid/persistence/queue/impl/SNSQueueManagerImpl.java index bc9be57607..b5d52dcefb 100644 --- a/stack/corepersistence/queue/src/main/java/org/apache/usergrid/persistence/queue/impl/SNSQueueManagerImpl.java +++ b/stack/corepersistence/queue/src/main/java/org/apache/usergrid/persistence/queue/impl/SNSQueueManagerImpl.java @@ -248,7 +248,7 @@ private String setupTopics( final String queueName ) throws Exception { region = Region.getRegion(regions); } catch (IllegalArgumentException e) { - throw new IllegalArgumentException("INVALID REGION FROM CONFIGURATION " + LegacyQueueFig.USERGRID_CLUSTER_REGION_LIST + ": " + regionName, e); + throw new IllegalArgumentException("INVALID REGION FROM CONFIGURATION " + LegacyQueueFig.USERGRID_QUEUE_REGION_LIST + ": " + regionName, e); } AmazonSQSClient sqsClient = createSQSClient( region ); @@ -825,7 +825,7 @@ private Region getRegion() { return Region.getRegion(regions); } catch (IllegalArgumentException e) { - throw new IllegalArgumentException("INVALID PRIMARY REGION FROM CONFIGURATION " + LegacyQueueFig.USERGRID_CLUSTER_REGION_LOCAL + ": " + regionName, e); + throw new IllegalArgumentException("INVALID PRIMARY REGION FROM CONFIGURATION " + LegacyQueueFig.USERGRID_QUEUE_REGION_LOCAL + ": " + regionName, e); } }