mirror of https://github.com/apache/jclouds.git
Extracted a PROPERTY_TWEETSTORE_BLOBSTORES constant
This commit is contained in:
parent
08c8430619
commit
3f60d4f707
demos/tweetstore
gae-tweetstore-spring/src
main/java/org/jclouds/demo/tweetstore/reference
test/java/org/jclouds/demo/tweetstore/integration
gae-tweetstore/src
main/java/org/jclouds/demo/tweetstore/reference
test/java/org/jclouds/demo/tweetstore/integration
runatcloud-tweetstore/src
main/java/org/jclouds/demo/tweetstore/reference
test/java/org/jclouds/demo/tweetstore/integration
|
@ -24,10 +24,11 @@ package org.jclouds.demo.tweetstore.reference;
|
|||
* @author Adrian Cole
|
||||
*/
|
||||
public interface TweetStoreConstants {
|
||||
public static final String PROPERTY_TWEETSTORE_CONTAINER = "jclouds.tweetstore.container";
|
||||
/**
|
||||
* Note that this has to conform to restrictions of all blobstores. for example, azure doesn't
|
||||
* support periods.
|
||||
*/
|
||||
public static final String SENDER_NAME = "sendername";
|
||||
static final String PROPERTY_TWEETSTORE_BLOBSTORES = "jclouds.tweetstore.blobstores";
|
||||
static final String PROPERTY_TWEETSTORE_CONTAINER = "jclouds.tweetstore.container";
|
||||
/**
|
||||
* Note that this has to conform to restrictions of all blobstores. for
|
||||
* example, azure doesn't support periods.
|
||||
*/
|
||||
static final String SENDER_NAME = "sendername";
|
||||
}
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
package org.jclouds.demo.tweetstore.integration;
|
||||
|
||||
import static com.google.common.base.Preconditions.checkNotNull;
|
||||
import static org.jclouds.demo.tweetstore.reference.TweetStoreConstants.PROPERTY_TWEETSTORE_BLOBSTORES;
|
||||
import static org.jclouds.demo.tweetstore.reference.TweetStoreConstants.PROPERTY_TWEETSTORE_CONTAINER;
|
||||
|
||||
import java.io.IOException;
|
||||
|
@ -71,7 +72,7 @@ public class TweetStoreLiveTest {
|
|||
private String container;
|
||||
|
||||
private static final Iterable<String> blobstores =
|
||||
Splitter.on(',').split(System.getProperty("jclouds.tweetstore.blobstores",
|
||||
Splitter.on(',').split(System.getProperty(PROPERTY_TWEETSTORE_BLOBSTORES,
|
||||
"cloudfiles-us,aws-s3,azureblob"));
|
||||
private static final Properties props = new Properties();
|
||||
|
||||
|
|
|
@ -24,10 +24,11 @@ package org.jclouds.demo.tweetstore.reference;
|
|||
* @author Adrian Cole
|
||||
*/
|
||||
public interface TweetStoreConstants {
|
||||
public static final String PROPERTY_TWEETSTORE_CONTAINER = "jclouds.tweetstore.container";
|
||||
static final String PROPERTY_TWEETSTORE_BLOBSTORES = "jclouds.tweetstore.blobstores";
|
||||
static final String PROPERTY_TWEETSTORE_CONTAINER = "jclouds.tweetstore.container";
|
||||
/**
|
||||
* Note that this has to conform to restrictions of all blobstores. for example, azure doesn't
|
||||
* support periods.
|
||||
*/
|
||||
public static final String SENDER_NAME = "sendername";
|
||||
static final String SENDER_NAME = "sendername";
|
||||
}
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
package org.jclouds.demo.tweetstore.integration;
|
||||
|
||||
import static com.google.common.base.Preconditions.checkNotNull;
|
||||
import static org.jclouds.demo.tweetstore.reference.TweetStoreConstants.PROPERTY_TWEETSTORE_BLOBSTORES;
|
||||
import static org.jclouds.demo.tweetstore.reference.TweetStoreConstants.PROPERTY_TWEETSTORE_CONTAINER;
|
||||
|
||||
import java.io.IOException;
|
||||
|
@ -70,7 +71,7 @@ public class TweetStoreLiveTest {
|
|||
private Map<String, BlobStoreContext> contexts;
|
||||
private String container;
|
||||
private static final Iterable<String> blobstores =
|
||||
Splitter.on(',').split(System.getProperty("jclouds.tweetstore.blobstores",
|
||||
Splitter.on(',').split(System.getProperty(PROPERTY_TWEETSTORE_BLOBSTORES,
|
||||
"cloudfiles-us,aws-s3,azureblob"));
|
||||
private static final Properties props = new Properties();
|
||||
|
||||
|
|
|
@ -24,10 +24,11 @@ package org.jclouds.demo.tweetstore.reference;
|
|||
* @author Adrian Cole
|
||||
*/
|
||||
public interface TweetStoreConstants {
|
||||
public static final String PROPERTY_TWEETSTORE_CONTAINER = "jclouds.tweetstore.container";
|
||||
/**
|
||||
* Note that this has to conform to restrictions of all blobstores. for example, azure doesn't
|
||||
* support periods.
|
||||
*/
|
||||
public static final String SENDER_NAME = "sendername";
|
||||
static final String PROPERTY_TWEETSTORE_BLOBSTORES = "jclouds.tweetstore.blobstores";
|
||||
static final String PROPERTY_TWEETSTORE_CONTAINER = "jclouds.tweetstore.container";
|
||||
/**
|
||||
* Note that this has to conform to restrictions of all blobstores. for
|
||||
* example, azure doesn't support periods.
|
||||
*/
|
||||
static final String SENDER_NAME = "sendername";
|
||||
}
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
package org.jclouds.demo.tweetstore.integration;
|
||||
|
||||
import static com.google.common.base.Preconditions.checkNotNull;
|
||||
import static org.jclouds.demo.tweetstore.reference.TweetStoreConstants.PROPERTY_TWEETSTORE_BLOBSTORES;
|
||||
import static org.jclouds.demo.tweetstore.reference.TweetStoreConstants.PROPERTY_TWEETSTORE_CONTAINER;
|
||||
|
||||
import java.io.IOException;
|
||||
|
@ -71,7 +72,7 @@ public class TweetStoreLiveTest {
|
|||
private Map<String, BlobStoreContext> contexts;
|
||||
private String container;
|
||||
private static final Iterable<String> blobstores =
|
||||
Splitter.on(',').split(System.getProperty("jclouds.tweetstore.blobstores",
|
||||
Splitter.on(',').split(System.getProperty(PROPERTY_TWEETSTORE_BLOBSTORES,
|
||||
"cloudfiles-us,aws-s3,azureblob"));
|
||||
private static final Properties props = new Properties();
|
||||
|
||||
|
|
Loading…
Reference in New Issue