Java 类com.amazonaws.services.simpledb.model.DeleteDomainRequest 实例源码

项目:Camel    文件:DeleteDomainCommand.java   
public void execute() {
    DeleteDomainRequest request = new DeleteDomainRequest()
        .withDomainName(determineDomainName());
    log.trace("Sending request [{}] for exchange [{}]...", request, exchange);

    this.sdbClient.deleteDomain(request);

    log.trace("Request sent");
}
项目:agathon    文件:SdbCassandraRingDao.java   
@Override
public void delete(CassandraRing ring) {
  String domain = domain(ring);
  if (ringsProvider.get().contains(domain)) {
    client.deleteDomain(new DeleteDomainRequest().withDomainName(domain));
  }
}
项目:jcabi-simpledb    文件:AwsDomain.java   
/**
 * {@inheritDoc}
 */
@Override
public void drop() {
    this.credentials.aws().deleteDomain(
        new DeleteDomainRequest().withDomainName(this.table)
    );
}
项目:spring-data-simpledb    文件:DomainManager.java   
/**
 * Running the delete-domain command over & over again on the same domain, or if the domain does NOT exist will NOT
 * result in a Amazon Exception
 * 
 * @param domainName
 */
protected void dropDomain(final String domainName, final AmazonSimpleDB sdb) {
    try {
        LOGGER.debug("Dropping domain: {}", domainName);
        DeleteDomainRequest request = new DeleteDomainRequest(domainName);
        sdb.deleteDomain(request);
        LOGGER.debug("Dropped domain: {}", domainName);
    } catch(AmazonClientException amazonException) {
        throw SimpleDbExceptionTranslator.getTranslatorInstance().translateAmazonClientException(amazonException);
    }
}
项目:Camel    文件:AmazonSDBClientMock.java   
@Override
public DeleteDomainResult deleteDomain(DeleteDomainRequest deleteDomainRequest) throws AmazonServiceException, AmazonClientException {
    this.deleteDomainRequest = deleteDomainRequest;
    return new DeleteDomainResult();
}
项目:Tank    文件:AmazonSimpleDatabase.java   
public void deleteTable(String tableName) {
    if (hasTable(tableName)) {
        logger.info("Deleting table: " + tableName);
        db.deleteDomain(new DeleteDomainRequest(tableName));
    }
}
项目:QuotesSocial    文件:SimpleDB.java   
public static void deleteDomain(String domainName) {
    getInstance().deleteDomain(new DeleteDomainRequest(domainName));
}