You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jclouds.apache.org by ab...@apache.org on 2013/05/10 23:53:21 UTC
[12/18] JCLOUDS-25. Remove oprhaned sandbox-* from repo
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/23d9d901/sandbox-apis/scality-rs2/README.txt
----------------------------------------------------------------------
diff --git a/sandbox-apis/scality-rs2/README.txt b/sandbox-apis/scality-rs2/README.txt
deleted file mode 100644
index f32255f..0000000
--- a/sandbox-apis/scality-rs2/README.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-====
- Licensed to jclouds, Inc. (jclouds) under one or more
- contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. jclouds licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
-====
-
-#
-# The jclouds API for RS2, Scality RING's s3 flavour (http://www.scality.com/scalable-data-storage-technology/).
-#
-# Expects the jclouds S3 API to be present on your application's classpath.
-#
-# TODO: Implementation status.
-# TODO: Supported features.
-# TODO: Usage example.
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/23d9d901/sandbox-apis/scality-rs2/pom.xml
----------------------------------------------------------------------
diff --git a/sandbox-apis/scality-rs2/pom.xml b/sandbox-apis/scality-rs2/pom.xml
deleted file mode 100644
index b193aa0..0000000
--- a/sandbox-apis/scality-rs2/pom.xml
+++ /dev/null
@@ -1,125 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
- Licensed to jclouds, Inc. (jclouds) under one or more
- contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. jclouds licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
-
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.jclouds</groupId>
- <artifactId>jclouds-project</artifactId>
- <version>1.7.0-SNAPSHOT</version>
- <relativePath>../../project/pom.xml</relativePath>
- </parent>
- <groupId>org.jclouds.api</groupId>
- <artifactId>scality-rs2</artifactId>
- <name>jclouds Eucalyptus Walrus api</name>
- <description>Simple Storage Service (S3) implementation based on Scality RING RS2</description>
- <packaging>bundle</packaging>
-
- <properties>
- <test.initializer>org.jclouds.scality.rs2.blobstore.ScalityRS2TestInitializer</test.initializer>
- <test.scality-rs2.endpoint>FIXME_ENDPOINT</test.scality-rs2.endpoint>
- <test.scality-rs2.api-version>2006-03-01</test.scality-rs2.api-version>
- <test.scality-rs2.build-version></test.scality-rs2.build-version>
- <test.scality-rs2.identity>FIXME_IDENTITY</test.scality-rs2.identity>
- <test.scality-rs2.credential>FIXME_CREDENTIAL</test.scality-rs2.credential>
-
- <jclouds.osgi.export>org.jclouds.scality.rs2*;version="${project.version}"</jclouds.osgi.export>
- <jclouds.osgi.import>org.jclouds*;version="${project.version}",*</jclouds.osgi.import>
- </properties>
-
- <dependencies>
- <dependency>
- <groupId>org.jclouds.api</groupId>
- <artifactId>s3</artifactId>
- <version>${project.version}</version>
- <type>jar</type>
- </dependency>
- <dependency>
- <groupId>org.jclouds.api</groupId>
- <artifactId>s3</artifactId>
- <version>${project.version}</version>
- <type>test-jar</type>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.jclouds</groupId>
- <artifactId>jclouds-core</artifactId>
- <version>${project.version}</version>
- <type>test-jar</type>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.jclouds</groupId>
- <artifactId>jclouds-blobstore</artifactId>
- <version>${project.version}</version>
- <type>test-jar</type>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.jclouds.driver</groupId>
- <artifactId>jclouds-log4j</artifactId>
- <version>${project.version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>log4j</groupId>
- <artifactId>log4j</artifactId>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
- <profiles>
- <profile>
- <id>live</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <executions>
- <execution>
- <id>integration</id>
- <phase>integration-test</phase>
- <goals>
- <goal>test</goal>
- </goals>
- <configuration>
- <systemPropertyVariables>
- <test.scality-rs2.endpoint>${test.scality-rs2.endpoint}</test.scality-rs2.endpoint>
- <test.scality-rs2.api-version>${test.scality-rs2.api-version}</test.scality-rs2.api-version>
- <test.scality-rs2.build-version>${test.scality-rs2.build-version}</test.scality-rs2.build-version>
- <test.scality-rs2.identity>${test.scality-rs2.identity}</test.scality-rs2.identity>
- <test.scality-rs2.credential>${test.scality-rs2.credential}</test.scality-rs2.credential>
- <test.initializer>${test.initializer}</test.initializer>
- <jclouds.blobstore.httpstream.url>${jclouds.blobstore.httpstream.url}</jclouds.blobstore.httpstream.url>
- <jclouds.blobstore.httpstream.md5>${jclouds.blobstore.httpstream.md5}</jclouds.blobstore.httpstream.md5>
- </systemPropertyVariables>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
-
-</project>
-
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/23d9d901/sandbox-apis/scality-rs2/src/main/java/org/jclouds/scality/rs2/ScalityRS2AsyncClient.java
----------------------------------------------------------------------
diff --git a/sandbox-apis/scality-rs2/src/main/java/org/jclouds/scality/rs2/ScalityRS2AsyncClient.java b/sandbox-apis/scality-rs2/src/main/java/org/jclouds/scality/rs2/ScalityRS2AsyncClient.java
deleted file mode 100644
index 75d60fe..0000000
--- a/sandbox-apis/scality-rs2/src/main/java/org/jclouds/scality/rs2/ScalityRS2AsyncClient.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/**
- * Licensed to jclouds, Inc. (jclouds) under one or more
- * contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. jclouds licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.jclouds.scality.rs2;
-
-import static org.jclouds.blobstore.attr.BlobScopes.CONTAINER;
-
-import org.jclouds.blobstore.attr.BlobScope;
-import org.jclouds.rest.annotations.RequestFilters;
-import org.jclouds.rest.annotations.SkipEncoding;
-import org.jclouds.s3.S3AsyncClient;
-import org.jclouds.s3.filters.RequestAuthorizeSignature;
-
-/**
- *
- * @author Adrian Cole
- */
-@SkipEncoding('/')
-@RequestFilters(RequestAuthorizeSignature.class)
-@BlobScope(CONTAINER)
-public interface ScalityRS2AsyncClient extends S3AsyncClient {
- public static final String VERSION = "2006-03-01";
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/23d9d901/sandbox-apis/scality-rs2/src/main/java/org/jclouds/scality/rs2/ScalityRS2ContextBuilder.java
----------------------------------------------------------------------
diff --git a/sandbox-apis/scality-rs2/src/main/java/org/jclouds/scality/rs2/ScalityRS2ContextBuilder.java b/sandbox-apis/scality-rs2/src/main/java/org/jclouds/scality/rs2/ScalityRS2ContextBuilder.java
deleted file mode 100644
index c62c343..0000000
--- a/sandbox-apis/scality-rs2/src/main/java/org/jclouds/scality/rs2/ScalityRS2ContextBuilder.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/**
- * Licensed to jclouds, Inc. (jclouds) under one or more
- * contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. jclouds licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.jclouds.scality.rs2;
-
-import java.util.List;
-import java.util.Properties;
-
-import org.jclouds.s3.S3ContextBuilder;
-import org.jclouds.scality.rs2.blobstore.config.ScalityRS2BlobStoreContextModule;
-import org.jclouds.scality.rs2.config.ScalityRS2RestClientModule;
-
-import com.google.inject.Module;
-
-/**
- *
- *
- * @author Adrian Cole
- */
-public class ScalityRS2ContextBuilder extends S3ContextBuilder {
-
- public ScalityRS2ContextBuilder(Properties props) {
- super(props);
- }
-
- @Override
- protected void addClientModule(List<Module> modules) {
- modules.add(new ScalityRS2RestClientModule());
- }
- @Override
- protected void addContextModule(List<Module> modules) {
- modules.add(new ScalityRS2BlobStoreContextModule());
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/23d9d901/sandbox-apis/scality-rs2/src/main/java/org/jclouds/scality/rs2/ScalityRS2PropertiesBuilder.java
----------------------------------------------------------------------
diff --git a/sandbox-apis/scality-rs2/src/main/java/org/jclouds/scality/rs2/ScalityRS2PropertiesBuilder.java b/sandbox-apis/scality-rs2/src/main/java/org/jclouds/scality/rs2/ScalityRS2PropertiesBuilder.java
deleted file mode 100644
index 30f1b3e..0000000
--- a/sandbox-apis/scality-rs2/src/main/java/org/jclouds/scality/rs2/ScalityRS2PropertiesBuilder.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/**
- * Licensed to jclouds, Inc. (jclouds) under one or more
- * contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. jclouds licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.jclouds.scality.rs2;
-
-import static org.jclouds.Constants.PROPERTY_API_VERSION;
-
-import java.util.Properties;
-
-import org.jclouds.s3.S3PropertiesBuilder;
-
-/**
- * Builds properties used in ScalityRS2 Clients
- *
- * @author Adrian Cole
- */
-public class ScalityRS2PropertiesBuilder extends S3PropertiesBuilder {
- @Override
- protected Properties defaultProperties() {
- Properties properties = super.defaultProperties();
- properties.setProperty(PROPERTY_API_VERSION, ScalityRS2AsyncClient.VERSION);
- return properties;
- }
-
- public ScalityRS2PropertiesBuilder(Properties properties) {
- super(properties);
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/23d9d901/sandbox-apis/scality-rs2/src/main/java/org/jclouds/scality/rs2/blobstore/config/ScalityRS2BlobStoreContextModule.java
----------------------------------------------------------------------
diff --git a/sandbox-apis/scality-rs2/src/main/java/org/jclouds/scality/rs2/blobstore/config/ScalityRS2BlobStoreContextModule.java b/sandbox-apis/scality-rs2/src/main/java/org/jclouds/scality/rs2/blobstore/config/ScalityRS2BlobStoreContextModule.java
deleted file mode 100644
index 2c57627..0000000
--- a/sandbox-apis/scality-rs2/src/main/java/org/jclouds/scality/rs2/blobstore/config/ScalityRS2BlobStoreContextModule.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/**
- * Licensed to jclouds, Inc. (jclouds) under one or more
- * contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. jclouds licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.jclouds.scality.rs2.blobstore.config;
-
-import org.jclouds.s3.blobstore.config.S3BlobStoreContextModule;
-
-/**
- *
- * @author Adrian Cole
- */
-public class ScalityRS2BlobStoreContextModule extends S3BlobStoreContextModule {
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/23d9d901/sandbox-apis/scality-rs2/src/main/java/org/jclouds/scality/rs2/config/ScalityRS2RestClientModule.java
----------------------------------------------------------------------
diff --git a/sandbox-apis/scality-rs2/src/main/java/org/jclouds/scality/rs2/config/ScalityRS2RestClientModule.java b/sandbox-apis/scality-rs2/src/main/java/org/jclouds/scality/rs2/config/ScalityRS2RestClientModule.java
deleted file mode 100644
index 9ba0907..0000000
--- a/sandbox-apis/scality-rs2/src/main/java/org/jclouds/scality/rs2/config/ScalityRS2RestClientModule.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/**
- * Licensed to jclouds, Inc. (jclouds) under one or more
- * contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. jclouds licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.jclouds.scality.rs2.config;
-
-import javax.inject.Singleton;
-
-import org.jclouds.http.RequiresHttp;
-import org.jclouds.rest.ConfiguresRestClient;
-import org.jclouds.s3.S3AsyncClient;
-import org.jclouds.s3.S3Client;
-import org.jclouds.s3.config.S3RestClientModule;
-import org.jclouds.scality.rs2.ScalityRS2AsyncClient;
-
-import com.google.inject.Provides;
-
-/**
- *
- * @author Adrian Cole
- */
-@ConfiguresRestClient
-@RequiresHttp
-public class ScalityRS2RestClientModule extends S3RestClientModule<S3Client, ScalityRS2AsyncClient> {
-
- public ScalityRS2RestClientModule() {
- super(S3Client.class, ScalityRS2AsyncClient.class);
- }
-
- @Provides
- @Singleton
- S3AsyncClient provideS3AsyncClient(ScalityRS2AsyncClient in) {
- return in;
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/23d9d901/sandbox-apis/scality-rs2/src/test/java/org/jclouds/scality/rs2/ScalityRS2AsyncClientTestDisabled.java
----------------------------------------------------------------------
diff --git a/sandbox-apis/scality-rs2/src/test/java/org/jclouds/scality/rs2/ScalityRS2AsyncClientTestDisabled.java b/sandbox-apis/scality-rs2/src/test/java/org/jclouds/scality/rs2/ScalityRS2AsyncClientTestDisabled.java
deleted file mode 100644
index 5ecf14f..0000000
--- a/sandbox-apis/scality-rs2/src/test/java/org/jclouds/scality/rs2/ScalityRS2AsyncClientTestDisabled.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/**
- * Licensed to jclouds, Inc. (jclouds) under one or more
- * contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. jclouds licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.jclouds.scality.rs2;
-
-import org.jclouds.rest.internal.RestAnnotationProcessor;
-import org.jclouds.s3.S3AsyncClient;
-import org.jclouds.s3.S3AsyncClientTest;
-import org.testng.annotations.Test;
-
-import com.google.inject.TypeLiteral;
-
-/**
- * @author Adrian Cole
- */
-// NOTE:without testName, this will not call @Before* and fail w/NPE during surefire
-@Test(enabled = false, groups = "unit", testName = "ScalityRS2AsyncClientTest")
-public class ScalityRS2AsyncClientTestDisabled extends S3AsyncClientTest<S3AsyncClient> {
-
- @Override
- protected TypeLiteral<RestAnnotationProcessor<S3AsyncClient>> createTypeLiteral() {
- return new TypeLiteral<RestAnnotationProcessor<S3AsyncClient>>() {
- };
- }
-
- public ScalityRS2AsyncClientTestDisabled() {
- this.provider = "scality-rs2";
- this.url = "scality-test.com";
- }
-
- // TODO parameterize this test so that it can pass
-}
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/23d9d901/sandbox-apis/scality-rs2/src/test/java/org/jclouds/scality/rs2/ScalityRS2ClientLiveTest.java
----------------------------------------------------------------------
diff --git a/sandbox-apis/scality-rs2/src/test/java/org/jclouds/scality/rs2/ScalityRS2ClientLiveTest.java b/sandbox-apis/scality-rs2/src/test/java/org/jclouds/scality/rs2/ScalityRS2ClientLiveTest.java
deleted file mode 100644
index 7e4da9f..0000000
--- a/sandbox-apis/scality-rs2/src/test/java/org/jclouds/scality/rs2/ScalityRS2ClientLiveTest.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/**
- * Licensed to jclouds, Inc. (jclouds) under one or more
- * contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. jclouds licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.jclouds.scality.rs2;
-
-import static org.testng.Assert.assertEquals;
-
-import org.jclouds.s3.S3ClientLiveTest;
-import org.jclouds.s3.domain.S3Object;
-import org.testng.annotations.Test;
-
-/**
- * Tests behavior of {@code S3Client}
- *
- * @author Adrian Cole
- */
-@Test(groups = "live", sequential = true, testName = "ScalityRS2ClientLiveTest")
-public class ScalityRS2ClientLiveTest extends S3ClientLiveTest {
- // no support for content encoding
- @Override
- protected void assertContentEncoding(S3Object newObject, String string) {
- assert (newObject.getPayload().getContentMetadata().getContentEncoding().indexOf(string) != -1);
- assert (newObject.getMetadata().getContentMetadata().getContentEncoding().indexOf(string) != -1);
- }
-
- // no support for cache control
- @Override
- protected void assertCacheControl(S3Object newObject, String string) {
- assertEquals(newObject.getMetadata().getCacheControl(), null);
- }
-}
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/23d9d901/sandbox-apis/scality-rs2/src/test/java/org/jclouds/scality/rs2/blobstore/ScalityRS2BlobIntegrationLiveTest.java
----------------------------------------------------------------------
diff --git a/sandbox-apis/scality-rs2/src/test/java/org/jclouds/scality/rs2/blobstore/ScalityRS2BlobIntegrationLiveTest.java b/sandbox-apis/scality-rs2/src/test/java/org/jclouds/scality/rs2/blobstore/ScalityRS2BlobIntegrationLiveTest.java
deleted file mode 100644
index de5cee9..0000000
--- a/sandbox-apis/scality-rs2/src/test/java/org/jclouds/scality/rs2/blobstore/ScalityRS2BlobIntegrationLiveTest.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * Licensed to jclouds, Inc. (jclouds) under one or more
- * contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. jclouds licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.jclouds.scality.rs2.blobstore;
-
-import static org.testng.Assert.assertEquals;
-
-import java.io.IOException;
-
-import org.jclouds.blobstore.domain.Blob;
-import org.jclouds.blobstore.domain.BlobMetadata;
-import org.jclouds.s3.blobstore.integration.S3BlobIntegrationLiveTest;
-import org.testng.annotations.Test;
-
-/**
- * @author Adrian Cole
- */
-@Test(groups = "live", testName = "ScalityRS2BlobIntegrationLiveTest")
-public class ScalityRS2BlobIntegrationLiveTest extends S3BlobIntegrationLiveTest {
- // no support for content language
- @Override
- protected void checkContentLanguage(Blob blob, String contentLanguage) {
- assert blob.getPayload().getContentMetadata().getContentLanguage() == null;
- assert blob.getMetadata().getContentMetadata().getContentLanguage() == null;
- }
-
- // double range not supported
- @Test(groups = { "integration", "live" })
- @Override
- public void testGetTwoRanges() throws InterruptedException, IOException {
-
- }
-
- // no md5
- @Override
- protected void checkMD5(BlobMetadata metadata) throws IOException {
- assertEquals(metadata.getContentMetadata().getContentMD5(), null);
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/23d9d901/sandbox-apis/scality-rs2/src/test/java/org/jclouds/scality/rs2/blobstore/ScalityRS2BlobLiveTest.java
----------------------------------------------------------------------
diff --git a/sandbox-apis/scality-rs2/src/test/java/org/jclouds/scality/rs2/blobstore/ScalityRS2BlobLiveTest.java b/sandbox-apis/scality-rs2/src/test/java/org/jclouds/scality/rs2/blobstore/ScalityRS2BlobLiveTest.java
deleted file mode 100644
index 8e4eccd..0000000
--- a/sandbox-apis/scality-rs2/src/test/java/org/jclouds/scality/rs2/blobstore/ScalityRS2BlobLiveTest.java
+++ /dev/null
@@ -1,37 +0,0 @@
-/**
- * Licensed to jclouds, Inc. (jclouds) under one or more
- * contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. jclouds licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.jclouds.scality.rs2.blobstore;
-
-import static org.testng.Assert.assertEquals;
-
-import org.jclouds.s3.blobstore.integration.S3BlobLiveTest;
-import org.testng.annotations.Test;
-
-/**
- * @author Adrian Cole
- */
-@Test(groups = "live", testName = "ScalityRS2BlobLiveTest")
-public class ScalityRS2BlobLiveTest extends S3BlobLiveTest {
-
- // no md5
- @Override
- protected void checkMD5(String container, String name, byte[] md5) {
- assertEquals(context.getBlobStore().blobMetadata(container, name).getContentMetadata().getContentMD5(), null);
- }
-}
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/23d9d901/sandbox-apis/scality-rs2/src/test/java/org/jclouds/scality/rs2/blobstore/ScalityRS2BlobMapIntegrationLiveTest.java
----------------------------------------------------------------------
diff --git a/sandbox-apis/scality-rs2/src/test/java/org/jclouds/scality/rs2/blobstore/ScalityRS2BlobMapIntegrationLiveTest.java b/sandbox-apis/scality-rs2/src/test/java/org/jclouds/scality/rs2/blobstore/ScalityRS2BlobMapIntegrationLiveTest.java
deleted file mode 100644
index 390ccdf..0000000
--- a/sandbox-apis/scality-rs2/src/test/java/org/jclouds/scality/rs2/blobstore/ScalityRS2BlobMapIntegrationLiveTest.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/**
- * Licensed to jclouds, Inc. (jclouds) under one or more
- * contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. jclouds licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.jclouds.scality.rs2.blobstore;
-
-import org.jclouds.s3.blobstore.integration.S3BlobMapIntegrationLiveTest;
-import org.testng.annotations.Test;
-
-/**
- * @author Adrian Cole
- */
-@Test(groups = "live", testName = "ScalityRS2BlobMapIntegrationLiveTest")
-public class ScalityRS2BlobMapIntegrationLiveTest extends S3BlobMapIntegrationLiveTest {
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/23d9d901/sandbox-apis/scality-rs2/src/test/java/org/jclouds/scality/rs2/blobstore/ScalityRS2BlobSignerLiveTest.java
----------------------------------------------------------------------
diff --git a/sandbox-apis/scality-rs2/src/test/java/org/jclouds/scality/rs2/blobstore/ScalityRS2BlobSignerLiveTest.java b/sandbox-apis/scality-rs2/src/test/java/org/jclouds/scality/rs2/blobstore/ScalityRS2BlobSignerLiveTest.java
deleted file mode 100644
index fa94a83..0000000
--- a/sandbox-apis/scality-rs2/src/test/java/org/jclouds/scality/rs2/blobstore/ScalityRS2BlobSignerLiveTest.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/**
- * Licensed to jclouds, Inc. (jclouds) under one or more
- * contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. jclouds licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.jclouds.scality.rs2.blobstore;
-
-import org.jclouds.s3.blobstore.integration.S3BlobSignerLiveTest;
-import org.testng.annotations.Test;
-
-/**
- *
- * @author Adrian Cole
- */
-@Test(groups = "live", testName = "ScalityRS2BlobSignerLiveTest")
-public class ScalityRS2BlobSignerLiveTest extends S3BlobSignerLiveTest {
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/23d9d901/sandbox-apis/scality-rs2/src/test/java/org/jclouds/scality/rs2/blobstore/ScalityRS2ContainerIntegrationLiveTest.java
----------------------------------------------------------------------
diff --git a/sandbox-apis/scality-rs2/src/test/java/org/jclouds/scality/rs2/blobstore/ScalityRS2ContainerIntegrationLiveTest.java b/sandbox-apis/scality-rs2/src/test/java/org/jclouds/scality/rs2/blobstore/ScalityRS2ContainerIntegrationLiveTest.java
deleted file mode 100644
index b776c2a..0000000
--- a/sandbox-apis/scality-rs2/src/test/java/org/jclouds/scality/rs2/blobstore/ScalityRS2ContainerIntegrationLiveTest.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/**
- * Licensed to jclouds, Inc. (jclouds) under one or more
- * contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. jclouds licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.jclouds.scality.rs2.blobstore;
-
-import static org.testng.Assert.assertEquals;
-
-import java.io.IOException;
-
-import org.jclouds.blobstore.domain.BlobMetadata;
-import org.jclouds.s3.blobstore.integration.S3ContainerIntegrationLiveTest;
-import org.testng.annotations.Test;
-
-/**
- * @author Adrian Cole
- */
-@Test(groups = "live", testName = "ScalityRS2ContainerIntegrationLiveTest")
-public class ScalityRS2ContainerIntegrationLiveTest extends S3ContainerIntegrationLiveTest {
- // doesn't support MD5
- @Override
- protected void checkMD5(BlobMetadata metadata) throws IOException {
- assertEquals(metadata.getContentMetadata().getContentMD5(), null);
- }
-}
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/23d9d901/sandbox-apis/scality-rs2/src/test/java/org/jclouds/scality/rs2/blobstore/ScalityRS2ContainerLiveTest.java
----------------------------------------------------------------------
diff --git a/sandbox-apis/scality-rs2/src/test/java/org/jclouds/scality/rs2/blobstore/ScalityRS2ContainerLiveTest.java b/sandbox-apis/scality-rs2/src/test/java/org/jclouds/scality/rs2/blobstore/ScalityRS2ContainerLiveTest.java
deleted file mode 100644
index 2e270e7..0000000
--- a/sandbox-apis/scality-rs2/src/test/java/org/jclouds/scality/rs2/blobstore/ScalityRS2ContainerLiveTest.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/**
- * Licensed to jclouds, Inc. (jclouds) under one or more
- * contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. jclouds licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.jclouds.scality.rs2.blobstore;
-
-import org.jclouds.s3.blobstore.integration.S3ContainerLiveTest;
-import org.testng.annotations.Test;
-
-/**
- * @author Adrian Cole
- */
-@Test(groups = "live", testName = "ScalityRS2ContainerLiveTest")
-public class ScalityRS2ContainerLiveTest extends S3ContainerLiveTest {
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/23d9d901/sandbox-apis/scality-rs2/src/test/java/org/jclouds/scality/rs2/blobstore/ScalityRS2InputStreamMapIntegrationLiveTest.java
----------------------------------------------------------------------
diff --git a/sandbox-apis/scality-rs2/src/test/java/org/jclouds/scality/rs2/blobstore/ScalityRS2InputStreamMapIntegrationLiveTest.java b/sandbox-apis/scality-rs2/src/test/java/org/jclouds/scality/rs2/blobstore/ScalityRS2InputStreamMapIntegrationLiveTest.java
deleted file mode 100644
index f7b211b..0000000
--- a/sandbox-apis/scality-rs2/src/test/java/org/jclouds/scality/rs2/blobstore/ScalityRS2InputStreamMapIntegrationLiveTest.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/**
- * Licensed to jclouds, Inc. (jclouds) under one or more
- * contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. jclouds licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.jclouds.scality.rs2.blobstore;
-
-import org.jclouds.s3.blobstore.integration.S3InputStreamMapIntegrationLiveTest;
-import org.testng.annotations.Test;
-
-/**
- * @author Adrian Cole
- */
-@Test(groups = "live", testName = "ScalityRS2InputStreamMapIntegrationLiveTest")
-public class ScalityRS2InputStreamMapIntegrationLiveTest extends S3InputStreamMapIntegrationLiveTest {
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/23d9d901/sandbox-apis/scality-rs2/src/test/java/org/jclouds/scality/rs2/blobstore/ScalityRS2ServiceIntegrationLiveTest.java
----------------------------------------------------------------------
diff --git a/sandbox-apis/scality-rs2/src/test/java/org/jclouds/scality/rs2/blobstore/ScalityRS2ServiceIntegrationLiveTest.java b/sandbox-apis/scality-rs2/src/test/java/org/jclouds/scality/rs2/blobstore/ScalityRS2ServiceIntegrationLiveTest.java
deleted file mode 100644
index 31422ce..0000000
--- a/sandbox-apis/scality-rs2/src/test/java/org/jclouds/scality/rs2/blobstore/ScalityRS2ServiceIntegrationLiveTest.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/**
- * Licensed to jclouds, Inc. (jclouds) under one or more
- * contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. jclouds licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.jclouds.scality.rs2.blobstore;
-
-import org.jclouds.s3.blobstore.integration.S3ServiceIntegrationLiveTest;
-import org.testng.annotations.Test;
-
-/**
- * @author Adrian Cole
- */
-@Test(groups = "live", testName = "ScalityRS2ServiceIntegrationLiveTest")
-public class ScalityRS2ServiceIntegrationLiveTest extends S3ServiceIntegrationLiveTest {
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/23d9d901/sandbox-apis/scality-rs2/src/test/java/org/jclouds/scality/rs2/blobstore/ScalityRS2TestInitializer.java
----------------------------------------------------------------------
diff --git a/sandbox-apis/scality-rs2/src/test/java/org/jclouds/scality/rs2/blobstore/ScalityRS2TestInitializer.java b/sandbox-apis/scality-rs2/src/test/java/org/jclouds/scality/rs2/blobstore/ScalityRS2TestInitializer.java
deleted file mode 100644
index 90008b7..0000000
--- a/sandbox-apis/scality-rs2/src/test/java/org/jclouds/scality/rs2/blobstore/ScalityRS2TestInitializer.java
+++ /dev/null
@@ -1,35 +0,0 @@
-/**
- * Licensed to jclouds, Inc. (jclouds) under one or more
- * contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. jclouds licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.jclouds.scality.rs2.blobstore;
-
-import org.jclouds.s3.blobstore.integration.S3TestInitializer;
-
-
-/**
- *
- * @author Adrian Cole
- */
-public class ScalityRS2TestInitializer extends S3TestInitializer {
-
- public ScalityRS2TestInitializer() {
- provider = "scality-rs2";
- }
-
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/23d9d901/sandbox-apis/simpledb/pom.xml
----------------------------------------------------------------------
diff --git a/sandbox-apis/simpledb/pom.xml b/sandbox-apis/simpledb/pom.xml
deleted file mode 100644
index acfe611..0000000
--- a/sandbox-apis/simpledb/pom.xml
+++ /dev/null
@@ -1,101 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
- Licensed to jclouds, Inc. (jclouds) under one or more
- contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. jclouds licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
-
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.jclouds</groupId>
- <artifactId>jclouds-project</artifactId>
- <version>1.7.0-SNAPSHOT</version>
- <relativePath>../../project/pom.xml</relativePath>
- </parent>
- <groupId>org.jclouds.api</groupId>
- <artifactId>simpledb</artifactId>
- <name>jcloud simpledb api</name>
- <description>jclouds components to access an implementation of Simple DB</description>
- <packaging>bundle</packaging>
-
- <properties>
- <test.simpledb.endpoint>https://sdb.amazonaws.com</test.simpledb.endpoint>
- <test.simpledb.api-version>2009-04-15</test.simpledb.api-version>
- <test.simpledb.build-version></test.simpledb.build-version>
- <test.simpledb.identity>${test.aws.identity}</test.simpledb.identity>
- <test.simpledb.credential>${test.aws.credential}</test.simpledb.credential>
-
- <jclouds.osgi.export>org.jclouds.simpledb*;version="${project.version}"</jclouds.osgi.export>
- <jclouds.osgi.import>org.jclouds*;version="${project.version}",*</jclouds.osgi.import>
- </properties>
-
- <dependencies>
- <dependency>
- <groupId>org.jclouds.common</groupId>
- <artifactId>aws-common</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.jclouds</groupId>
- <artifactId>jclouds-core</artifactId>
- <version>${project.version}</version>
- <type>test-jar</type>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.jclouds.driver</groupId>
- <artifactId>jclouds-log4j</artifactId>
- <version>${project.version}</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
- <profiles>
- <profile>
- <id>live</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <executions>
- <execution>
- <id>integration</id>
- <phase>integration-test</phase>
- <goals>
- <goal>test</goal>
- </goals>
- <configuration>
- <systemPropertyVariables>
- <test.simpledb.endpoint>${test.simpledb.endpoint}</test.simpledb.endpoint>
- <test.simpledb.api-version>${test.simpledb.api-version}</test.simpledb.api-version>
- <test.simpledb.build-version>${test.simpledb.build-version}</test.simpledb.build-version>
- <test.simpledb.identity>${test.simpledb.identity}</test.simpledb.identity>
- <test.simpledb.credential>${test.simpledb.credential}</test.simpledb.credential>
- </systemPropertyVariables>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
-
-</project>
-
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/23d9d901/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/SimpleDBAsyncClient.java
----------------------------------------------------------------------
diff --git a/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/SimpleDBAsyncClient.java b/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/SimpleDBAsyncClient.java
deleted file mode 100644
index 9a394fb..0000000
--- a/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/SimpleDBAsyncClient.java
+++ /dev/null
@@ -1,113 +0,0 @@
-/**
- * Licensed to jclouds, Inc. (jclouds) under one or more
- * contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. jclouds licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.jclouds.simpledb;
-
-import static org.jclouds.simpledb.reference.SimpleDBParameters.ACTION;
-import static org.jclouds.simpledb.reference.SimpleDBParameters.VERSION;
-
-import java.util.Map;
-
-import javax.annotation.Nullable;
-import javax.ws.rs.FormParam;
-import javax.ws.rs.POST;
-import javax.ws.rs.Path;
-
-import org.jclouds.aws.filters.FormSigner;
-import org.jclouds.location.functions.RegionToEndpointOrProviderIfNull;
-import org.jclouds.rest.annotations.BinderParam;
-import org.jclouds.rest.annotations.EndpointParam;
-import org.jclouds.rest.annotations.FormParams;
-import org.jclouds.rest.annotations.RequestFilters;
-import org.jclouds.rest.annotations.VirtualHost;
-import org.jclouds.rest.annotations.XMLResponseParser;
-import org.jclouds.simpledb.binders.BindAttributesToIndexedFormParams;
-import org.jclouds.simpledb.domain.Item;
-import org.jclouds.simpledb.domain.ListDomainsResponse;
-import org.jclouds.simpledb.options.ListDomainsOptions;
-import org.jclouds.simpledb.xml.ItemsHandler;
-import org.jclouds.simpledb.xml.ListDomainsResponseHandler;
-
-import com.google.common.util.concurrent.ListenableFuture;
-
-/**
- * Provides access to SimpleDB via their REST API.
- * <p/>
- *
- * @author Adrian Cole
- * @author Luís A. Bastião Silva <ba...@ua.pt>
- */
-@RequestFilters(FormSigner.class)
-@FormParams(keys = VERSION, values = SimpleDBAsyncClient.VERSION)
-@VirtualHost
-public interface SimpleDBAsyncClient {
- public static final String VERSION = "2009-04-15";
-
- /**
- * @see SimpleDBClient#listDomainsInRegion
- */
- @POST
- @Path("/")
- @FormParams(keys = ACTION, values = "ListDomains")
- @XMLResponseParser(ListDomainsResponseHandler.class)
- ListenableFuture<? extends ListDomainsResponse> listDomainsInRegion(
- @EndpointParam(parser = RegionToEndpointOrProviderIfNull.class) @Nullable String region, ListDomainsOptions... options);
-
- /**
- * @see SimpleDBClient#createDomainInRegion
- */
- @POST
- @Path("/")
- @FormParams(keys = ACTION, values = "CreateDomain")
- ListenableFuture<Void> createDomainInRegion(@EndpointParam(parser = RegionToEndpointOrProviderIfNull.class) @Nullable String region,
- @FormParam("DomainName") String domainName);
-
- /**
- * @see SimpleDBClient#deleteDomain
- */
- @POST
- @Path("/")
- @FormParams(keys = ACTION, values = "DeleteDomain")
- ListenableFuture<Void> deleteDomainInRegion(@EndpointParam(parser = RegionToEndpointOrProviderIfNull.class) @Nullable String region,
- @FormParam("DomainName") String domainName);
-
-
- /**
- * @see SimpleDBClient#putAttributes
- */
- @POST
- @Path("/")
- @FormParams(keys = ACTION, values = "PutAttributes")
- ListenableFuture<Void> putAttributes(@EndpointParam(parser = RegionToEndpointOrProviderIfNull.class) @Nullable String region,
- @FormParam("DomainName") String domainName,
- @FormParam("ItemName") String itemName,
- @BinderParam(BindAttributesToIndexedFormParams.class) Item attributes);
-
- /**
- * @see SimpleDBClient#putAttributes
- */
- @POST
- @Path("/")
- @FormParams(keys = ACTION, values = "Select")
- @XMLResponseParser(ItemsHandler.class)
- ListenableFuture<? extends Map<String, Item>> select(@EndpointParam(parser = RegionToEndpointOrProviderIfNull.class) @Nullable String region,
- @FormParam("SelectExpression") String selectExpression);
-
-
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/23d9d901/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/SimpleDBClient.java
----------------------------------------------------------------------
diff --git a/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/SimpleDBClient.java b/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/SimpleDBClient.java
deleted file mode 100644
index 7c4601c..0000000
--- a/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/SimpleDBClient.java
+++ /dev/null
@@ -1,110 +0,0 @@
-/**
- * Licensed to jclouds, Inc. (jclouds) under one or more
- * contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. jclouds licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.jclouds.simpledb;
-
-import java.util.Map;
-import java.util.concurrent.TimeUnit;
-
-import javax.annotation.Nullable;
-
-import org.jclouds.concurrent.Timeout;
-import org.jclouds.simpledb.domain.Item;
-import org.jclouds.simpledb.domain.ListDomainsResponse;
-import org.jclouds.simpledb.options.ListDomainsOptions;
-
-/**
- * Provides access to SimpleDB via their REST API.
- * <p/>
- *
- * @author Adrian Cole
- * @author Luís A. Bastião Silva <ba...@ua.pt>
- */
-@Timeout(duration = 30, timeUnit = TimeUnit.SECONDS)
-public interface SimpleDBClient {
-
- /**
- * The ListDomains operation lists all domains associated with the Access Key ID. It returns
- * domain names up to the limit set by MaxNumberOfDomains. A NextToken is returned if there are
- * more than MaxNumberOfDomains domains. Calling ListDomains successive times with the NextToken
- * returns up to MaxNumberOfDomains more domain names each time.
- *
- *
- * @param region
- * Domains are Region-specific.
- * @param options
- * specify result count or other options
- *
- * @see <a href=
- * "http://docs.amazonwebservices.com/AmazonSimpleDB/2009-04-15/DeveloperGuide/SDB_API_ListDomains.html"
- * />
- */
- ListDomainsResponse listDomainsInRegion(@Nullable String region, ListDomainsOptions... options);
-
- /**
- * The CreateDomain operation creates a new domain.
- *
- * <p/>
- * The domain name must be unique among the domains associated with the Access Key ID provided in
- * the request. The CreateDomain operation might take 10 or more seconds to complete.
- *
- *
- * <h3>Note</h3>
- * CreateDomain is an idempotent operation; running it multiple times using the same domain name
- * will not result in an error response.
- * <p/>
- * You can create up to 100 domains per account.
- * <p/>
- * If you require additional domains, go to
- * http://amazon.com/contact-us/simpledb-limit-request/.
- *
- * @param region
- * Domains are Region-specific.
- * @param domainName
- * The name of the domain to create. The name can range between 3 and 255 characters
- * and can contain the following characters: a-z, A-Z, 0-9, '_', '-', and '.'.
- *
- * @see <a href=
- * "http://docs.amazonwebservices.com/AmazonSimpleDB/2009-04-15/DeveloperGuide/SDB_API_ListDomains.html"
- * />
- */
- void createDomainInRegion(@Nullable String region, String domainName);
-
- /**
- * The DeleteDomain operation deletes a domain. Any items (and their attributes) in the domain
- * are deleted as well. The DeleteDomain operation might take 10 or more seconds to complete. <h3>
- * Note</h3>
- *
- * Running DeleteDomain on a domain that does not exist or running the function multiple times
- * using the same domain name will not result in an error response.
- *
- *
- * @param region
- * Domains are Region-specific.
- * @param domainName
- * The name of the domain to delete.
- *
- *
- * @see <a href=
- * "http://docs.amazonwebservices.com/AmazonSimpleDB/2009-04-15/DeveloperGuide/SDB_API_ListDomains.html"
- * />
- */
- void deleteDomainInRegion(String region, String domainName);
- void putAttributes(String region, String domain, String itemName, Item attributes);
- Map<String, Item> select(String region, String selectionExpression);
-}
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/23d9d901/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/SimpleDBContextBuilder.java
----------------------------------------------------------------------
diff --git a/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/SimpleDBContextBuilder.java b/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/SimpleDBContextBuilder.java
deleted file mode 100644
index 2e68b82..0000000
--- a/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/SimpleDBContextBuilder.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- * Licensed to jclouds, Inc. (jclouds) under one or more
- * contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. jclouds licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.jclouds.simpledb;
-
-import java.util.List;
-import java.util.Properties;
-
-import org.jclouds.http.config.JavaUrlHttpCommandExecutorServiceModule;
-import org.jclouds.logging.jdk.config.JDKLoggingModule;
-import org.jclouds.rest.RestContextBuilder;
-import org.jclouds.simpledb.config.SimpleDBRestClientModule;
-
-import com.google.inject.Injector;
-import com.google.inject.Module;
-
-/**
- * Creates {@link SimpleDBContext} or {@link Injector} instances based on the most commonly requested
- * arguments.
- * <p/>
- * Note that Threadsafe objects will be bound as singletons to the Injector or Context provided.
- * <p/>
- * <p/>
- * If no <code>Module</code>s are specified, the default {@link JDKLoggingModule logging} and
- * {@link JavaUrlHttpCommandExecutorServiceModule http transports} will be installed.
- *
- * @author Adrian Cole
- * @author Luís A. Bastião Silva <ba...@ua.pt>
- * @see SimpleDBContext
- */
-public class SimpleDBContextBuilder extends RestContextBuilder<SimpleDBClient, SimpleDBAsyncClient> {
-
- public SimpleDBContextBuilder(Properties props) {
- super(SimpleDBClient.class, SimpleDBAsyncClient.class, props);
- }
-
- @Override
- protected void addClientModule(List<Module> modules) {
- modules.add(new SimpleDBRestClientModule());
- }
-}
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/23d9d901/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/SimpleDBPropertiesBuilder.java
----------------------------------------------------------------------
diff --git a/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/SimpleDBPropertiesBuilder.java b/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/SimpleDBPropertiesBuilder.java
deleted file mode 100644
index 3760f87..0000000
--- a/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/SimpleDBPropertiesBuilder.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * Licensed to jclouds, Inc. (jclouds) under one or more
- * contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. jclouds licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.jclouds.simpledb;
-
-import static org.jclouds.Constants.PROPERTY_API_VERSION;
-import static org.jclouds.Constants.PROPERTY_ENDPOINT;
-import static org.jclouds.aws.reference.AWSConstants.PROPERTY_AUTH_TAG;
-import static org.jclouds.aws.reference.AWSConstants.PROPERTY_HEADER_TAG;
-
-import java.util.Properties;
-
-import org.jclouds.PropertiesBuilder;
-
-/**
- * Builds properties used in SimpleDB Clients
- *
- * @author Adrian Cole
- */
-public class SimpleDBPropertiesBuilder extends PropertiesBuilder {
-
- @Override
- protected Properties defaultProperties() {
- Properties properties = super.defaultProperties();
- properties.setProperty(PROPERTY_AUTH_TAG, "AWS");
- properties.setProperty(PROPERTY_HEADER_TAG, "amz");
- properties.setProperty(PROPERTY_API_VERSION, SimpleDBAsyncClient.VERSION);
- properties.setProperty(PROPERTY_ENDPOINT, "https://sdb.amazonaws.com");
- return properties;
- }
-
- public SimpleDBPropertiesBuilder() {
- super();
- }
-
- public SimpleDBPropertiesBuilder(Properties properties) {
- super(properties);
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/23d9d901/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/binders/BindAttributesToIndexedFormParams.java
----------------------------------------------------------------------
diff --git a/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/binders/BindAttributesToIndexedFormParams.java b/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/binders/BindAttributesToIndexedFormParams.java
deleted file mode 100644
index 89107f3..0000000
--- a/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/binders/BindAttributesToIndexedFormParams.java
+++ /dev/null
@@ -1,76 +0,0 @@
-/**
- * Licensed to jclouds, Inc. (jclouds) under one or more
- * contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. jclouds licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.jclouds.simpledb.binders;
-
-import static com.google.common.base.Preconditions.checkArgument;
-import static com.google.common.base.Preconditions.checkNotNull;
-import static java.lang.String.format;
-
-import java.util.Collection;
-import java.util.Iterator;
-
-import org.jclouds.simpledb.domain.AttributePair;
-import org.jclouds.simpledb.domain.Item;
-import org.jclouds.http.HttpRequest;
-import org.jclouds.http.utils.ModifyRequest;
-import org.jclouds.rest.Binder;
-
-import com.google.common.collect.ImmutableMultimap;
-import com.google.common.collect.ImmutableMultimap.Builder;
-
-/**
- *
- * @author Luís A. Bastião Silva <ba...@ua.pt>
- */
-public class BindAttributesToIndexedFormParams implements Binder {
-
- private final String attributeName = "Attribute.%d.Name";
- private final String attributeValue = "Attribute.%d.Value";
- private final String attributeReplace = "Attribute.%d.Replace";
-
- @Override
- public <R extends HttpRequest> R bindToRequest(R request, Object input) {
- checkArgument(checkNotNull(input, "input") instanceof Item, "this binder is only valid for AttributeMap");
- Item attributeMap = (Item) input;
-
- Builder<String, String> builder = ImmutableMultimap.builder();
- int amazonOneBasedIndex = 1; // according to docs, counters must start with 1
- for (Map.Entry<String, Collection<AttributePair>> entry : attributeMap.getAttributes().entrySet());
- String itemName = entry.getKey();
-
- for (AttributePair attr : = entry.getValue()) {
- // not null by contract
-
- String value = attr.getValue();
-
- if (value != null) {
- builder.put(format(attributeName, amazonOneBasedIndex), attr.getKey());
- builder.put(format(attributeValue, amazonOneBasedIndex), value);
- builder.put(format(attributeReplace, amazonOneBasedIndex), String.valueOf(attr.isReplace()));
-
- }
- amazonOneBasedIndex++;
- }
-
- }
- ImmutableMultimap<String, String> forms = builder.build();
- return forms.size() == 0 ? request : ModifyRequest.putFormParams(request, forms);
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/23d9d901/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/config/SimpleDBRestClientModule.java
----------------------------------------------------------------------
diff --git a/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/config/SimpleDBRestClientModule.java b/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/config/SimpleDBRestClientModule.java
deleted file mode 100644
index ae52954..0000000
--- a/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/config/SimpleDBRestClientModule.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/**
- * Licensed to jclouds, Inc. (jclouds) under one or more
- * contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. jclouds licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.jclouds.simpledb.config;
-
-import org.jclouds.aws.config.FormSigningRestClientModule;
-import org.jclouds.http.RequiresHttp;
-import org.jclouds.rest.ConfiguresRestClient;
-import org.jclouds.simpledb.SimpleDBAsyncClient;
-import org.jclouds.simpledb.SimpleDBClient;
-
-/**
- * Configures the SimpleDB connection.
- *
- * @author Adrian Cole
- * @author Luís A. Bastião Silva <ba...@ua.pt>
- */
-@RequiresHttp
-@ConfiguresRestClient
-public class SimpleDBRestClientModule extends FormSigningRestClientModule<SimpleDBClient, SimpleDBAsyncClient> {
-
- public SimpleDBRestClientModule() {
- super(SimpleDBClient.class, SimpleDBAsyncClient.class);
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/23d9d901/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/domain/AttributePair.java
----------------------------------------------------------------------
diff --git a/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/domain/AttributePair.java b/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/domain/AttributePair.java
deleted file mode 100644
index c149489..0000000
--- a/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/domain/AttributePair.java
+++ /dev/null
@@ -1,78 +0,0 @@
-/**
- * Licensed to jclouds, Inc. (jclouds) under one or more
- * contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. jclouds licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.jclouds.simpledb.domain;
-
-
-
-/**
- * AttributePair is a class to support the attributes to put in the SimpleDB
- * <p/>
- *
- * @author Luís A. Bastião Silva <ba...@ua.pt>
- */
-public class AttributePair
-{
-
- private String key;
- private String value;
- private boolean replace;
-
-
- /**
- *
- * Default constructor to represent an attribute in a domain in SimpleDB
- *
- * <p/>
- *
- * @param key Name of Attribute
- * @param value Value of Attribute
- * @param replace Replace value if it already exists in domain
- */
- public AttributePair(String key, String value, boolean replace)
- {
- this.key = key;
-
- this.value = value ;
- this.replace = replace;
- }
-
-
- public String getKey() {
- return key;
- }
-
-
- public String getValue() {
- return value;
- }
-
- public void setValue(String value)
- {
- this.value = value;
- }
-
-
- public boolean isReplace() {
- return replace;
- }
-
-
-
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/23d9d901/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/domain/DomainMetadata.java
----------------------------------------------------------------------
diff --git a/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/domain/DomainMetadata.java b/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/domain/DomainMetadata.java
deleted file mode 100644
index e774440..0000000
--- a/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/domain/DomainMetadata.java
+++ /dev/null
@@ -1,190 +0,0 @@
-/**
- * Licensed to jclouds, Inc. (jclouds) under one or more
- * contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. jclouds licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.jclouds.simpledb.domain;
-
-import java.util.Date;
-
-/**
- *
- * @see <a href=
- * "http://docs.amazonwebservices.com/AmazonSimpleDB/2009-04-15/DeveloperGuide/index.html?SDB_API_CreateDomain.html"
- * />
- * @author Adrian Cole
- * @author Luís A. Bastião Silva <ba...@ua.pt>
- */
-public class DomainMetadata {
- private final String region;
- private final String name;
- private final Date timestamp;
- private final long itemCount;
- private final long attributeValueCount;
- private final long attributeNameCount;
- private final long itemNamesSizeBytes;
- private final long attributeValuesSizeBytes;
- private final long attributeNamesSizeBytes;
-
- public DomainMetadata(String region, String name, Date timestamp, long itemCount, long attributeValueCount,
- long attributeNameCount, long itemNamesSizeBytes, long attributeValuesSizeBytes, long attributeNamesSizeBytes) {
- this.region = region;
- this.name = name;
- this.timestamp = timestamp;
- this.itemCount = itemCount;
- this.attributeValueCount = attributeValueCount;
- this.attributeNameCount = attributeNameCount;
- this.itemNamesSizeBytes = itemNamesSizeBytes;
- this.attributeValuesSizeBytes = attributeValuesSizeBytes;
- this.attributeNamesSizeBytes = attributeNamesSizeBytes;
- }
-
- /**
- *
- * @return region the domain belongs to
- */
- public String getRegion() {
- return region;
- }
-
- /**
- *
- * @return name of the domain
- */
- public String getName() {
- return name;
- }
-
- /**
- *
- * @return The number of all items in the domain.
- */
- public Date getTimestamp() {
- return timestamp;
- }
-
- /**
- *
- * @return
- */
- public long getItemCount() {
- return itemCount;
- }
-
- /**
- *
- * @return The number of all attribute name/value pairs in the domain.
- */
- public long getAttributeValueCount() {
- return attributeValueCount;
- }
-
- /**
- *
- * @return The number of unique attribute names in the domain.
- */
- public long getAttributeNameCount() {
- return attributeNameCount;
- }
-
- /**
- *
- * @return The total size of all item names in the domain, in bytes.
- */
- public long getItemNamesSizeBytes() {
- return itemNamesSizeBytes;
- }
-
- /**
- *
- * @return The total size of all attribute values, in bytes.
- */
- public long getAttributeValuesSizeBytes() {
- return attributeValuesSizeBytes;
- }
-
- /**
- *
- * @return The total size of all unique attribute names, in bytes.
- */
- public long getAttributeNamesSizeBytes() {
- return attributeNamesSizeBytes;
- }
-
- @Override
- public int hashCode() {
- final int prime = 31;
- int result = 1;
- result = prime * result + (int) (attributeNameCount ^ (attributeNameCount >>> 32));
- result = prime * result + (int) (attributeNamesSizeBytes ^ (attributeNamesSizeBytes >>> 32));
- result = prime * result + (int) (attributeValueCount ^ (attributeValueCount >>> 32));
- result = prime * result + (int) (attributeValuesSizeBytes ^ (attributeValuesSizeBytes >>> 32));
- result = prime * result + (int) (itemCount ^ (itemCount >>> 32));
- result = prime * result + (int) (itemNamesSizeBytes ^ (itemNamesSizeBytes >>> 32));
- result = prime * result + ((name == null) ? 0 : name.hashCode());
- result = prime * result + ((region == null) ? 0 : region.hashCode());
- result = prime * result + ((timestamp == null) ? 0 : timestamp.hashCode());
- return result;
- }
-
- @Override
- public boolean equals(Object obj) {
- if (this == obj)
- return true;
- if (obj == null)
- return false;
- if (getClass() != obj.getClass())
- return false;
- DomainMetadata other = (DomainMetadata) obj;
- if (attributeNameCount != other.attributeNameCount)
- return false;
- if (attributeNamesSizeBytes != other.attributeNamesSizeBytes)
- return false;
- if (attributeValueCount != other.attributeValueCount)
- return false;
- if (attributeValuesSizeBytes != other.attributeValuesSizeBytes)
- return false;
- if (itemCount != other.itemCount)
- return false;
- if (itemNamesSizeBytes != other.itemNamesSizeBytes)
- return false;
- if (name == null) {
- if (other.name != null)
- return false;
- } else if (!name.equals(other.name))
- return false;
- if (region == null) {
- if (other.region != null)
- return false;
- } else if (!region.equals(other.region))
- return false;
- if (timestamp == null) {
- if (other.timestamp != null)
- return false;
- } else if (!timestamp.equals(other.timestamp))
- return false;
- return true;
- }
-
- @Override
- public String toString() {
- return "[region=" + region + ", name=" + name + ", timestamp=" + timestamp + ", itemCount=" + itemCount
- + ", attributeValueCount=" + attributeValueCount + ", attributeNameCount=" + attributeNameCount
- + ", itemNamesSizeBytes=" + itemNamesSizeBytes + ", attributeValuesSizeBytes=" + attributeValuesSizeBytes
- + ", attributeNamesSizeBytes=" + attributeNamesSizeBytes + "]";
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/23d9d901/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/domain/Item.java
----------------------------------------------------------------------
diff --git a/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/domain/Item.java b/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/domain/Item.java
deleted file mode 100644
index ccb23b4..0000000
--- a/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/domain/Item.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/**
- * Licensed to jclouds, Inc. (jclouds) under one or more
- * contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. jclouds licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.jclouds.simpledb.domain;
-
-import javax.annotation.Nullable;
-
-import com.google.common.collect.ImmutableMultimap;
-import com.google.common.collect.LinkedHashMultimap;
-import com.google.common.collect.Multimap;
-
-/**
- * Defines the mapping of Items
- *
- * @author Luís A. Bastião Silva <ba...@ua.pt>
- */
-public class Item {
-
- private final Multimap<String, AttributePair> attributes = LinkedHashMultimap
- .create();
-
- public Item() {
- }
-
- /**
- * Creates a map of Attribute Pair
- *
- */
- public Item(Multimap<String, AttributePair> attributes)
- {
-
- this.attributes.putAll(attributes);
-
- }
-
- public Item addAttributePair(@Nullable String itemName,
- AttributePair attrPair)
- {
- this.attributes.put(itemName, attrPair);
- return this;
- }
-
- public Multimap<String, AttributePair> getAttributes()
- {
- return ImmutableMultimap.<String, AttributePair> builder().putAll(
- attributes).build();
- }
-}
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/23d9d901/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/domain/ListDomainsResponse.java
----------------------------------------------------------------------
diff --git a/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/domain/ListDomainsResponse.java b/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/domain/ListDomainsResponse.java
deleted file mode 100644
index 3639e42..0000000
--- a/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/domain/ListDomainsResponse.java
+++ /dev/null
@@ -1,37 +0,0 @@
-/**
- * Licensed to jclouds, Inc. (jclouds) under one or more
- * contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. jclouds licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.jclouds.simpledb.domain;
-
-import java.util.Set;
-
-/**
- *
- * @author Adrian Cole
- * @author Luís A. Bastião Silva <ba...@ua.pt>
- * @see <a href="http://docs.amazonwebservices.com/AmazonS3/2006-03-01/index.html" />
- */
-public interface ListDomainsResponse extends Set<String> {
-
- /**
- * An opaque token indicating that there are more than MaxNumberOfDomains domains still
- * available.
- */
- String getNextToken();
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/23d9d901/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/options/ListDomainsOptions.java
----------------------------------------------------------------------
diff --git a/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/options/ListDomainsOptions.java b/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/options/ListDomainsOptions.java
deleted file mode 100644
index 7d02ac5..0000000
--- a/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/options/ListDomainsOptions.java
+++ /dev/null
@@ -1,101 +0,0 @@
-/**
- * Licensed to jclouds, Inc. (jclouds) under one or more
- * contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. jclouds licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.jclouds.simpledb.options;
-
-import static com.google.common.base.Preconditions.checkArgument;
-import static com.google.common.base.Preconditions.checkNotNull;
-
-import org.jclouds.http.options.BaseHttpRequestOptions;
-
-/**
- * Contains options supported in the Form API for the ListDomains operation. <h2>
- * Usage</h2> The recommended way to instantiate a ListDomainsOptions object is to statically import
- * ListDomainsOptions.Builder.* and invoke a static creation method followed by an instance mutator
- * (if needed):
- * <p/>
- * <code>
- * import static org.jclouds.simpledb.options.ListDomainsOptions.Builder.*
- * <p/>
- * SimpleDBClient connection = // get connection
- * Set<String> domains = connection.listDomainsInRegion(maxNumberOfDomains(1));
- * <code>
- *
- * @author Adrian Cole
- * @author Luís A. Bastião Silva <ba...@ua.pt>
- * @see <a href=
- * "http://docs.amazonwebservices.com/AmazonSimpleDB/2009-04-15/DeveloperGuide/SDB_API_ListDomains.html"
- * />
- */
-public class ListDomainsOptions extends BaseHttpRequestOptions {
-
- /**
- * The maximum number of domain names you want returned.
- *
- * @param maxNumberOfDomains
- * Maximum 100
- */
- public ListDomainsOptions maxNumberOfDomains(int maxNumberOfDomains) {
- checkArgument(maxNumberOfDomains > 0 && maxNumberOfDomains <= 100, "must be between 1-100");
- formParameters.put("MaxNumberOfDomains", maxNumberOfDomains + "");
- return this;
- }
-
- public String getMaxNumberOfDomains() {
- return getFirstFormOrNull("MaxNumberOfDomains");
- }
-
- /**
- *
- * @param nextToken
- * tells Amazon SimpleDB where to start the next list of domain names.
- */
- public ListDomainsOptions nextToken(String nextToken) {
- checkNotNull(nextToken, "nextToken");
- formParameters.put("NextToken", nextToken);
- return this;
- }
-
- /**
- *
- * @return String that tells Amazon SimpleDB where to start the next list of domain names.
- */
- public String getNextToken() {
- return getFirstFormOrNull("NextToken");
- }
-
- public static class Builder {
-
- /**
- * @see ListDomainsOptions#nextToken
- */
- public static ListDomainsOptions nextToken(String nextToken) {
- ListDomainsOptions options = new ListDomainsOptions();
- return options.nextToken(nextToken);
- }
-
- /**
- * @see ListDomainsOptions#maxNumberOfDomains
- */
- public static ListDomainsOptions maxNumberOfDomains(int maxNumberOfDomains) {
- ListDomainsOptions options = new ListDomainsOptions();
- return options.maxNumberOfDomains(maxNumberOfDomains);
- }
-
- }
-}
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/23d9d901/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/package-info.java
----------------------------------------------------------------------
diff --git a/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/package-info.java b/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/package-info.java
deleted file mode 100644
index e08a24b..0000000
--- a/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/package-info.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/**
- * Licensed to jclouds, Inc. (jclouds) under one or more
- * contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. jclouds licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-/**
- *
- * @see <a href="http://docs.amazonwebservices.com/AmazonSimpleDB/2009-04-15/DeveloperGuide/index.html"/>
- * @author Adrian Cole
- * @author Luís A. Bastião Silva <ba...@ua.pt>
- */
-package org.jclouds.simpledb;
http://git-wip-us.apache.org/repos/asf/incubator-jclouds/blob/23d9d901/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/reference/SimpleDBParameters.java
----------------------------------------------------------------------
diff --git a/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/reference/SimpleDBParameters.java b/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/reference/SimpleDBParameters.java
deleted file mode 100644
index d66f5d0..0000000
--- a/sandbox-apis/simpledb/src/main/java/org/jclouds/simpledb/reference/SimpleDBParameters.java
+++ /dev/null
@@ -1,74 +0,0 @@
-/**
- * Licensed to jclouds, Inc. (jclouds) under one or more
- * contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. jclouds licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.jclouds.simpledb.reference;
-
-/**
- * Configuration properties and constants used in SimpleDB connections.
- *
- * @see <a href="http://docs.amazonwebservices.com/AWSSimpleDomainService/2009-02-01/APIReference/Query_QueryParams.html"
- * />
- * @author Adrian Cole
- * @author Luís A. Bastião Silva <ba...@ua.pt>
- */
-public interface SimpleDBParameters {
-
- /**
- * The action to perform. For example: CreateDomain.
- */
- public static final String ACTION = "Action";
-
- /**
- * The API version to use, as specified in the WSDL. For example: 2009-02-01.
- */
- public static final String VERSION = "Version";
-
- /**
- * Your Access Key ID. For example: 0AS7253JW73RRM652K02. For more information, see Your AWS
- * Identifiers in the Amazon SimpleDB Developer Guide.
- */
- public static final String AWS_ACCESS_KEY_ID = "AWSAccessKeyId";
-
- /**
- * The date and time the request is signed, in the format YYYY-MM-DDThh:mm:ssZ, as specified in
- * the ISO 8601 standard. Query requests must include either Timestamp or Expires, but not both.
- *
- */
- public static final String TIMESTAMP = "Timestamp";
-
- /**
- * The date and time at which the signature included in the request expires, in the format
- * YYYY-MM-DDThh:mm:ssZ, as specified in the ISO 8601 standard. Query requests must include
- * either Timestamp or Expires, but not both.
- */
- public static final String EXPIRES = "Expires";
- /**
- * A request signature (for information, see Request Authentication in the Amazon SimpleDB Developer
- * Guide). For example: Qnpl4Qk/7tINHzfXCiT7VbBatDA=.
- */
- public static final String SIGNATURE = "Signature";
- /**
- *Required when you use signature version 2 with Query requests. For more information, see Query
- * Request Authentication in the Amazon SimpleDB Developer Guide.
- */
- public static final String SIGNATURE_METHOD = "SignatureMethod";
- /**
- * For more information, see Query Request Authentication in the Amazon SimpleDB Developer Guide.
- */
- public static final String SIGNATURE_VERSION = "SignatureVersion";
-}