use of com.amazonaws.services.simpledb.AmazonSimpleDB in project simplejpa by appoxy.
the class EntityManagerFactoryImpl method setupDbDomain.
public synchronized void setupDbDomain(String domainName) {
try {
if (!doesDomainExist(domainName)) {
logger.info("creating domain: " + domainName);
AmazonSimpleDB db = getSimpleDb();
db.createDomain(new CreateDomainRequest().withDomainName(domainName));
domainSet.add(domainName);
}
} catch (AmazonClientException e) {
throw new PersistenceException("Could not create SimpleDB domain.", e);
}
}
use of com.amazonaws.services.simpledb.AmazonSimpleDB in project SimianArmy by Netflix.
the class TestSimpleDBRecorder method makeMockAWSClient.
private static AWSClient makeMockAWSClient() {
AmazonSimpleDB sdbMock = mock(AmazonSimpleDB.class);
AWSClient awsClient = mock(AWSClient.class);
when(awsClient.sdbClient()).thenReturn(sdbMock);
when(awsClient.region()).thenReturn("region");
return awsClient;
}
Aggregations