Merge pull request #52 from jcscoobyrs/master

Issue 550: Added ProviderMetadata for AT&T Synaptic Storage, OpenHosting, and Ninefold
This commit is contained in:
Adrian Cole 2011-06-02 23:57:18 -07:00
commit 5dadcc437a
14 changed files with 459 additions and 3 deletions

View File

@ -27,7 +27,7 @@ import org.jclouds.providers.BaseProviderMetadata;
import org.jclouds.providers.ProviderMetadata; import org.jclouds.providers.ProviderMetadata;
/** /**
* Implementation of @ link org.jclouds.types.ProviderMetadata} for Amazon's Simple Storage Service * Implementation of {@link org.jclouds.types.ProviderMetadata} for Amazon's Simple Storage Service
* (S3) provider. * (S3) provider.
* *
* @author Adrian Cole * @author Adrian Cole

View File

@ -23,7 +23,7 @@ import org.jclouds.providers.ProviderMetadata;
import org.testng.annotations.Test; import org.testng.annotations.Test;
/** /**
* The AWSS3ProviderTest tests the org.jclouds.providers.AWSS3Provider class. * The AWSS3ProviderTest tests the {@link org.jclouds.aws.s3.AWSS3ProviderMetadata} class.
* *
* @author Adrian Cole * @author Adrian Cole
*/ */
@ -33,4 +33,5 @@ public class AWSS3ProviderTest extends BaseProviderMetadataTest {
public AWSS3ProviderTest() { public AWSS3ProviderTest() {
super(new AWSS3ProviderMetadata(), ProviderMetadata.BLOBSTORE_TYPE); super(new AWSS3ProviderMetadata(), ProviderMetadata.BLOBSTORE_TYPE);
} }
} }

View File

@ -62,7 +62,7 @@ public class CloudOneStorageProviderMetadata extends BaseProviderMetadata {
*/ */
@Override @Override
public String getIdentityName() { public String getIdentityName() {
return "Subtenant ID"; return "Subtenant ID (UID)";
} }
/** /**

View File

@ -97,6 +97,14 @@ public class EucalyptusPartnerCloudEC2ProviderMetadata extends BaseProviderMetad
return URI.create("http://open.eucalyptus.com/wiki/IntroducingEucalyptus_v2.0"); return URI.create("http://open.eucalyptus.com/wiki/IntroducingEucalyptus_v2.0");
} }
/**
* {@inheritDoc}
*/
@Override
public Set<String> getLinkedServices() {
return ImmutableSet.of("eucalyptus-partnercloud-ec2", "eucalyptus-partnercloud-s3");
}
/** /**
* {@inheritDoc} * {@inheritDoc}
*/ */

View File

@ -97,6 +97,14 @@ public class EucalyptusPartnerCloudS3ProviderMetadata extends BaseProviderMetada
return URI.create("http://open.eucalyptus.com/wiki/IntroducingEucalyptus_v2.0"); return URI.create("http://open.eucalyptus.com/wiki/IntroducingEucalyptus_v2.0");
} }
/**
* {@inheritDoc}
*/
@Override
public Set<String> getLinkedServices() {
return ImmutableSet.of("eucalyptus-partnercloud-ec2", "eucalyptus-partnercloud-s3");
}
/** /**
* {@inheritDoc} * {@inheritDoc}
*/ */

View File

@ -0,0 +1,108 @@
/**
*
* Copyright (C) 2011 Cloud Conscious, LLC. <info@cloudconscious.com>
*
* ====================================================================
* Licensed 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.ninefold.storage;
import com.google.common.collect.ImmutableSet;
import java.net.URI;
import java.util.Set;
import org.jclouds.providers.BaseProviderMetadata;
/**
* Implementation of {@link org.jclouds.types.ProviderMetadata} for Ninefold's
* Storage provider.
*
* @author Jeremy Whitlock <jwhitlock@apache.org>
*/
public class NinefoldStorageProviderMetadata extends BaseProviderMetadata {
/**
* {@inheritDoc}
*/
@Override
public String getId() {
return "ninefold-storage";
}
/**
* {@inheritDoc}
*/
@Override
public String getType() {
return BLOBSTORE_TYPE;
}
/**
* {@inheritDoc}
*/
@Override
public String getName() {
return "Ninefold Storage";
}
/**
* {@inheritDoc}
*/
@Override
public String getIdentityName() {
return "Subtenant ID (UID)";
}
/**
* {@inheritDoc}
*/
@Override
public String getCredentialName() {
return "Shared Secret";
}
/**
* {@inheritDoc}
*/
@Override
public URI getHomepage() {
return URI.create("http://ninefold.com/cloud-storage/");
}
/**
* {@inheritDoc}
*/
@Override
public URI getConsole() {
return URI.create("https://ninefold.com/portal/");
}
/**
* {@inheritDoc}
*/
@Override
public URI getApiDocumentation() {
return URI.create("https://ninefold.com/support/display/SPT/API+Documentation");
}
/**
* {@inheritDoc}
*/
@Override
public Set<String> getIso3166Codes() {
return ImmutableSet.of("AU-NSW");
}
}

View File

@ -0,0 +1 @@
org.jclouds.ninefold.storage.NinefoldStorageProviderMetadata

View File

@ -0,0 +1,37 @@
/**
*
* Copyright (C) 2011 Cloud Conscious, LLC. <info@cloudconscious.com>
*
* ====================================================================
* Licensed 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.ninefold.storage;
import org.jclouds.providers.BaseProviderMetadataTest;
import org.jclouds.providers.ProviderMetadata;
import org.testng.annotations.Test;
/**
* The NinefoldStorageProviderTest tests the {@link NinefoldStorageProviderMetadata} class.
*
* @author Jeremy Whitlock <jwhitlock@apache.org>
*/
@Test(groups = "unit", testName = "NinefoldStorageProviderTest")
public class NinefoldStorageProviderTest extends BaseProviderMetadataTest {
public NinefoldStorageProviderTest() {
super(new NinefoldStorageProviderMetadata(), ProviderMetadata.BLOBSTORE_TYPE);
}
}

View File

@ -0,0 +1,108 @@
/**
*
* Copyright (C) 2011 Cloud Conscious, LLC. <info@cloudconscious.com>
*
* ====================================================================
* Licensed 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.openhosting;
import com.google.common.collect.ImmutableSet;
import java.net.URI;
import java.util.Set;
import org.jclouds.providers.BaseProviderMetadata;
/**
* Implementation of {@link org.jclouds.types.ProviderMetadata} for OpenHosting's
* East1 provider.
*
* @author Jeremy Whitlock <jwhitlock@apache.org>
*/
public class OpenHostingEast1ProviderMetadata extends BaseProviderMetadata {
/**
* {@inheritDoc}
*/
@Override
public String getId() {
return "openhosting-east1";
}
/**
* {@inheritDoc}
*/
@Override
public String getType() {
return COMPUTE_TYPE;
}
/**
* {@inheritDoc}
*/
@Override
public String getName() {
return "OpenHosting East1";
}
/**
* {@inheritDoc}
*/
@Override
public String getIdentityName() {
return "User UUID";
}
/**
* {@inheritDoc}
*/
@Override
public String getCredentialName() {
return "Secret API Key";
}
/**
* {@inheritDoc}
*/
@Override
public URI getHomepage() {
return URI.create("https://east1.openhosting.com/");
}
/**
* {@inheritDoc}
*/
@Override
public URI getConsole() {
return URI.create("https://east1.openhosting.com/accounts/login");
}
/**
* {@inheritDoc}
*/
@Override
public URI getApiDocumentation() {
return URI.create("http://www.openhosting.com/support/api/");
}
/**
* {@inheritDoc}
*/
@Override
public Set<String> getIso3166Codes() {
return ImmutableSet.of("US-VA");
}
}

View File

@ -0,0 +1 @@
org.jclouds.openhosting.OpenHostingEast1ProviderMetadata

View File

@ -0,0 +1,37 @@
/**
*
* Copyright (C) 2011 Cloud Conscious, LLC. <info@cloudconscious.com>
*
* ====================================================================
* Licensed 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.openhosting;
import org.jclouds.providers.BaseProviderMetadataTest;
import org.jclouds.providers.ProviderMetadata;
import org.testng.annotations.Test;
/**
* The OpenHostingEast1ProviderTest tests the {@link OpenHostingEast1ProviderMetadata} class.
*
* @author Jeremy Whitlock <jwhitlock@apache.org>
*/
@Test(groups = "unit", testName = "OpenHostingEast1ProviderTest")
public class OpenHostingEast1ProviderTest extends BaseProviderMetadataTest {
public OpenHostingEast1ProviderTest() {
super(new OpenHostingEast1ProviderMetadata(), ProviderMetadata.COMPUTE_TYPE);
}
}

View File

@ -0,0 +1,109 @@
/**
*
* Copyright (C) 2011 Cloud Conscious, LLC. <info@cloudconscious.com>
*
* ====================================================================
* Licensed 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.synaptic.storage;
import com.google.common.collect.ImmutableSet;
import java.net.URI;
import java.util.Set;
import org.jclouds.providers.BaseProviderMetadata;
import org.jclouds.providers.ProviderMetadata;
/**
* Implementation of {@link org.jclouds.types.ProviderMetadata} for AT&T's
* Synaptic Storage provider.
*
* @author Jeremy Whitlock <jwhitlock@apache.org>
*/
public class SynapticStorageProviderMetadata extends BaseProviderMetadata {
/**
* {@inheritDoc}
*/
@Override
public String getId() {
return "synaptic-storage";
}
/**
* {@inheritDoc}
*/
@Override
public String getType() {
return ProviderMetadata.BLOBSTORE_TYPE;
}
/**
* {@inheritDoc}
*/
@Override
public String getName() {
return "AT&T Synaptic Storage";
}
/**
* {@inheritDoc}
*/
@Override
public String getIdentityName() {
return "Subtenant ID (UID)";
}
/**
* {@inheritDoc}
*/
@Override
public String getCredentialName() {
return "Shared Secret";
}
/**
* {@inheritDoc}
*/
@Override
public URI getHomepage() {
return URI.create("https://www.synaptic.att.com/");
}
/**
* {@inheritDoc}
*/
@Override
public URI getConsole() {
return URI.create("https://www.synaptic.att.com/clouduser/login.htm");
}
/**
* {@inheritDoc}
*/
@Override
public URI getApiDocumentation() {
return URI.create("https://www.synaptic.att.com/clouduser/emc_atmos_api.htm");
}
/**
* {@inheritDoc}
*/
@Override
public Set<String> getIso3166Codes() {
return ImmutableSet.of("US-VA", "US-TX");
}
}

View File

@ -0,0 +1 @@
org.jclouds.synaptic.storage.SynapticStorageProviderMetadata

View File

@ -0,0 +1,37 @@
/**
*
* Copyright (C) 2011 Cloud Conscious, LLC. <info@cloudconscious.com>
*
* ====================================================================
* Licensed 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.synaptic.storage;
import org.jclouds.providers.BaseProviderMetadataTest;
import org.jclouds.providers.ProviderMetadata;
import org.testng.annotations.Test;
/**
* The SynapticStorageProviderTest tests the {@link org.jclouds.synaptic.storage.SynapticStorageProviderMetadata} class.
*
* @author Jeremy Whitlock <jwhitlock@apache.org>
*/
@Test(groups = "unit", testName = "SynapticStorageProviderTest")
public class SynapticStorageProviderTest extends BaseProviderMetadataTest {
public SynapticStorageProviderTest() {
super(new SynapticStorageProviderMetadata(), ProviderMetadata.BLOBSTORE_TYPE);
}
}