mirror of https://github.com/apache/jclouds.git
JCLOUDS-546: Remove Javadoc @author annotations
Annotations removed with: find -name \*.java | xargs sed -i /@author/d Empty Javadoc removed with multiple iterations of: find -name \*.java | xargs sed -i -z 's/ \*\n \*\// \*\//' find -name \*.java | xargs sed -i -z 's/ \* \n \*\// \*\//' find -name \*.java | xargs sed -i -z 's/\/\*\*\n \*\/\n//'
This commit is contained in:
parent
39f77ad3f8
commit
9cdd53b0b7
|
@ -33,8 +33,6 @@ import com.google.inject.Module;
|
|||
|
||||
/**
|
||||
* Implementation of {@link ApiMetadata} for EMC Atmos API
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public class AtmosApiMetadata extends BaseRestApiMetadata {
|
||||
|
||||
|
|
|
@ -74,7 +74,6 @@ import com.google.inject.Provides;
|
|||
*
|
||||
* @see AtmosClient
|
||||
* @see <a href="https://community.emc.com/community/labs/atmos_online" />
|
||||
* @author Adrian Cole
|
||||
*
|
||||
* @deprecated please use {@code org.jclouds.ContextBuilder#buildApi(AtmosClient.class)} as
|
||||
* {@link AtmosAsyncClient} interface will be removed in jclouds 1.7.
|
||||
|
|
|
@ -36,7 +36,6 @@ import com.google.inject.Provides;
|
|||
*
|
||||
* @see AtmosAsyncClient
|
||||
* @see <a href="https://community.emc.com/community/labs/atmos_online" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public interface AtmosClient extends Closeable {
|
||||
/**
|
||||
|
|
|
@ -26,8 +26,6 @@ import org.jclouds.http.HttpResponseException;
|
|||
*
|
||||
* @see AtmosError
|
||||
* @see ParseAtmosErrorFromXmlContent
|
||||
* @author Adrian Cole
|
||||
*
|
||||
*/
|
||||
public class AtmosResponseException extends HttpResponseException {
|
||||
|
||||
|
|
|
@ -29,9 +29,6 @@ import org.jclouds.atmos.reference.AtmosHeaders;
|
|||
import org.jclouds.http.HttpRequest;
|
||||
import org.jclouds.rest.Binder;
|
||||
|
||||
/**
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Singleton
|
||||
public class BindMetadataToHeaders implements Binder {
|
||||
private final BindUserMetadataToHeaders metaBinder;
|
||||
|
|
|
@ -33,9 +33,6 @@ import com.google.common.collect.ImmutableMap;
|
|||
import com.google.common.collect.ImmutableMap.Builder;
|
||||
import com.google.common.collect.Multimaps;
|
||||
|
||||
/**
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Singleton
|
||||
public class BindUserMetadataToHeaders implements Binder, Function<UserMetadata, Map<String, String>> {
|
||||
|
||||
|
|
|
@ -66,7 +66,6 @@ import com.google.common.util.concurrent.ListenableFuture;
|
|||
import com.google.common.util.concurrent.ListeningExecutorService;
|
||||
|
||||
/**
|
||||
* @author Adrian Cole
|
||||
* @deprecated will be removed in jclouds 1.7, as async interfaces are no longer
|
||||
* supported. Please use {@link AtmosBlobStore}
|
||||
*/
|
||||
|
|
|
@ -38,10 +38,6 @@ import com.google.common.base.Function;
|
|||
import com.google.common.collect.ImmutableList;
|
||||
import com.google.common.reflect.Invokable;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Singleton
|
||||
public class AtmosBlobRequestSigner implements BlobRequestSigner {
|
||||
private final Function<Invocation, HttpRequest> processor;
|
||||
|
|
|
@ -53,9 +53,6 @@ import com.google.common.base.Supplier;
|
|||
import com.google.common.cache.CacheLoader;
|
||||
import com.google.common.cache.LoadingCache;
|
||||
|
||||
/**
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Singleton
|
||||
public class AtmosBlobStore extends BaseBlobStore {
|
||||
private final AtmosClient sync;
|
||||
|
|
|
@ -38,8 +38,6 @@ import com.google.inject.Scopes;
|
|||
|
||||
/**
|
||||
* Configures the {@link AtmosBlobStoreContext}; requires {@link AtmosAsyncBlobStore} bound.
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public class AtmosBlobStoreContextModule extends AbstractModule {
|
||||
|
||||
|
|
|
@ -27,9 +27,6 @@ import org.jclouds.blobstore.domain.BlobMetadata;
|
|||
|
||||
import com.google.common.base.Function;
|
||||
|
||||
/**
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Singleton
|
||||
public class BlobMetadataToObject implements Function<BlobMetadata, AtmosObject> {
|
||||
private final AtmosObject.Factory factory;
|
||||
|
|
|
@ -24,9 +24,6 @@ import org.jclouds.blobstore.options.ListContainerOptions;
|
|||
|
||||
import com.google.common.base.Function;
|
||||
|
||||
/**
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Singleton
|
||||
public class BlobStoreListOptionsToListOptions implements
|
||||
Function<ListContainerOptions, org.jclouds.atmos.options.ListOptions> {
|
||||
|
|
|
@ -26,9 +26,6 @@ import org.jclouds.http.HttpUtils;
|
|||
|
||||
import com.google.common.base.Function;
|
||||
|
||||
/**
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Singleton
|
||||
public class BlobToContentMetadata implements Function<BlobMetadata, MutableContentMetadata> {
|
||||
public MutableContentMetadata apply(BlobMetadata base) {
|
||||
|
|
|
@ -26,9 +26,6 @@ import org.jclouds.blobstore.domain.Blob;
|
|||
|
||||
import com.google.common.base.Function;
|
||||
|
||||
/**
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Singleton
|
||||
public class BlobToObject implements Function<Blob, AtmosObject> {
|
||||
private final BlobMetadataToObject blobMd2Object;
|
||||
|
|
|
@ -24,9 +24,6 @@ import org.jclouds.blobstore.domain.BlobMetadata;
|
|||
|
||||
import com.google.common.base.Function;
|
||||
|
||||
/**
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Singleton
|
||||
public class BlobToSystemMetadata implements Function<BlobMetadata, SystemMetadata> {
|
||||
public SystemMetadata apply(BlobMetadata base) {
|
||||
|
|
|
@ -36,9 +36,6 @@ import com.google.common.base.Supplier;
|
|||
import com.google.common.collect.ImmutableMap;
|
||||
import com.google.common.collect.Iterables;
|
||||
|
||||
/**
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Singleton
|
||||
public class DirectoryEntryListToResourceMetadataList implements
|
||||
Function<BoundedSet<? extends DirectoryEntry>, PageSet<? extends StorageMetadata>> {
|
||||
|
|
|
@ -28,9 +28,6 @@ import org.jclouds.http.HttpUtils;
|
|||
|
||||
import com.google.common.base.Function;
|
||||
|
||||
/**
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Singleton
|
||||
public class ObjectToBlob implements Function<AtmosObject, Blob> {
|
||||
private final Factory blobFactory;
|
||||
|
|
|
@ -38,9 +38,6 @@ import com.google.common.collect.ImmutableSet;
|
|||
import com.google.common.collect.Iterables;
|
||||
import com.google.common.collect.Maps;
|
||||
|
||||
/**
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Singleton
|
||||
public class ObjectToBlobMetadata implements Function<AtmosObject, MutableBlobMetadata> {
|
||||
private final AtmosObjectName objectName;
|
||||
|
|
|
@ -25,8 +25,6 @@ import com.google.inject.Provides;
|
|||
|
||||
/**
|
||||
* Configures the domain object mappings needed for all Atmos implementations
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public class AtmosObjectModule extends AbstractModule {
|
||||
|
||||
|
|
|
@ -21,11 +21,6 @@ import org.jclouds.json.config.GsonModule.Iso8601DateAdapter;
|
|||
|
||||
import com.google.inject.AbstractModule;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public class AtmosParserModule extends AbstractModule {
|
||||
|
||||
@Override
|
||||
|
|
|
@ -44,8 +44,6 @@ import com.google.inject.Provides;
|
|||
/**
|
||||
* Configures the EMC Atmos Online Storage authentication service connection, including logging and
|
||||
* http transport.
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@ConfiguresRestClient
|
||||
public class AtmosRestClientModule extends RestClientModule<AtmosClient, AtmosAsyncClient> {
|
||||
|
|
|
@ -20,9 +20,6 @@ package org.jclouds.atmos.domain;
|
|||
* When an Atmos Storage request is in error, the client receives an error response.
|
||||
*
|
||||
* Provides access to EMC Atmos Online Storage resources via their REST API.
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*
|
||||
*/
|
||||
public class AtmosError {
|
||||
private final int code;
|
||||
|
|
|
@ -23,10 +23,6 @@ import org.jclouds.javax.annotation.Nullable;
|
|||
import com.google.common.collect.Multimap;
|
||||
import com.google.inject.ImplementedBy;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public interface AtmosObject extends PayloadEnclosing, Comparable<AtmosObject> {
|
||||
@ImplementedBy(AtmosObjectFactory.class)
|
||||
public interface Factory {
|
||||
|
|
|
@ -23,11 +23,6 @@ import org.jclouds.javax.annotation.Nullable;
|
|||
|
||||
import com.google.inject.ImplementedBy;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*
|
||||
*/
|
||||
@ImplementedBy(BoundedLinkedHashSet.class)
|
||||
public interface BoundedSet<T> extends Set<T> {
|
||||
|
||||
|
|
|
@ -18,8 +18,6 @@ package org.jclouds.atmos.domain;
|
|||
|
||||
/**
|
||||
* Metadata of a Atmos Online object
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public class DirectoryEntry implements Comparable<DirectoryEntry> {
|
||||
private final String objectid;
|
||||
|
|
|
@ -24,8 +24,6 @@ import com.google.inject.ImplementedBy;
|
|||
|
||||
/**
|
||||
* metadata of the object
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@ImplementedBy(DelegatingMutableContentMetadata.class)
|
||||
public interface MutableContentMetadata extends org.jclouds.io.MutableContentMetadata {
|
||||
|
|
|
@ -22,8 +22,6 @@ import org.jclouds.javax.annotation.Nullable;
|
|||
|
||||
/**
|
||||
* Metadata of a Atmos Online object
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public class SystemMetadata extends DirectoryEntry {
|
||||
|
||||
|
|
|
@ -26,8 +26,6 @@ import com.google.common.collect.Sets;
|
|||
|
||||
/**
|
||||
* User metadata
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public class UserMetadata {
|
||||
private final Map<String, String> metadata;
|
||||
|
|
|
@ -34,8 +34,6 @@ import com.google.common.collect.Multimap;
|
|||
|
||||
/**
|
||||
* Default Implementation of {@link AtmosObject}.
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public class AtmosObjectImpl extends PayloadEnclosingImpl implements AtmosObject, Comparable<AtmosObject> {
|
||||
@Singleton
|
||||
|
|
|
@ -25,11 +25,6 @@ import org.jclouds.javax.annotation.Nullable;
|
|||
|
||||
import com.google.common.collect.Iterables;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*
|
||||
*/
|
||||
public class BoundedLinkedHashSet<T> extends LinkedHashSet<T> implements BoundedSet<T> {
|
||||
|
||||
protected final String token;
|
||||
|
|
|
@ -23,10 +23,6 @@ import org.jclouds.atmos.domain.MutableContentMetadata;
|
|||
import org.jclouds.io.ContentMetadataBuilder;
|
||||
import org.jclouds.io.payloads.BaseMutableContentMetadata;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public class DelegatingMutableContentMetadata implements MutableContentMetadata {
|
||||
private URI uri;
|
||||
private String name;
|
||||
|
|
|
@ -31,10 +31,6 @@ import org.jclouds.rest.InvocationContext;
|
|||
import com.google.common.annotations.VisibleForTesting;
|
||||
import com.google.common.util.concurrent.ListenableFuture;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public class EndpointIfAlreadyExists implements Fallback<URI>, InvocationContext<EndpointIfAlreadyExists> {
|
||||
|
||||
private URI endpoint;
|
||||
|
|
|
@ -49,8 +49,6 @@ import com.google.common.io.ByteProcessor;
|
|||
* Signs the EMC Atmos Online Storage request.
|
||||
*
|
||||
* @see <a href="https://community.emc.com/community/labs/atmos_online" />
|
||||
* @author Adrian Cole
|
||||
*
|
||||
*/
|
||||
@Singleton
|
||||
public class ShareUrl implements Function<String, URI> {
|
||||
|
|
|
@ -57,8 +57,6 @@ import com.google.common.net.HttpHeaders;
|
|||
* Signs the EMC Atmos Online Storage request.
|
||||
*
|
||||
* @see <a href="https://community.emc.com/community/labs/atmos_online" />
|
||||
* @author Adrian Cole
|
||||
*
|
||||
*/
|
||||
@Singleton
|
||||
public class SignRequest implements HttpRequestFilter {
|
||||
|
|
|
@ -25,10 +25,6 @@ import org.jclouds.atmos.domain.AtmosObject;
|
|||
|
||||
import com.google.common.base.Function;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Singleton
|
||||
public class AtmosObjectName implements Function<Object, String> {
|
||||
@Override
|
||||
|
|
|
@ -35,8 +35,6 @@ import com.google.common.base.Function;
|
|||
|
||||
/**
|
||||
* This parses {@link BoundedSet} from HTTP headers and xml content.
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Singleton
|
||||
public class ParseDirectoryListFromContentAndHeaders implements Function<HttpResponse, BoundedSet<DirectoryEntry>> {
|
||||
|
|
|
@ -26,8 +26,6 @@ import org.jclouds.http.functions.ParseURIFromListOrLocationHeaderIf20x;
|
|||
/**
|
||||
* Parses a single URI from a list, returning null when blob length was zero.
|
||||
* Atmos returns "HTTP/1.1 201 null" when putting zero-length blobs.
|
||||
*
|
||||
* @author Andrew Gaul
|
||||
*/
|
||||
public class ParseNullableURIFromListOrLocationHeaderIf20x extends ParseURIFromListOrLocationHeaderIf20x {
|
||||
|
||||
|
|
|
@ -35,7 +35,6 @@ import com.google.common.base.Function;
|
|||
* Parses response headers and creates a new AtmosObject from them and the HTTP content.
|
||||
*
|
||||
* @see ParseMetadataFromHeaders
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public class ParseObjectFromHeadersAndHttpContent implements Function<HttpResponse, AtmosObject>,
|
||||
InvocationContext<ParseObjectFromHeadersAndHttpContent> {
|
||||
|
|
|
@ -33,9 +33,6 @@ import org.jclouds.http.HttpResponse;
|
|||
import com.google.common.base.Function;
|
||||
import com.google.common.base.Splitter;
|
||||
|
||||
/**
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Singleton
|
||||
public class ParseSystemMetadataFromHeaders implements Function<HttpResponse, SystemMetadata> {
|
||||
private final DateService dateService;
|
||||
|
|
|
@ -34,9 +34,6 @@ import com.google.common.collect.ImmutableMap;
|
|||
import com.google.common.collect.ImmutableSet;
|
||||
import com.google.common.collect.Maps;
|
||||
|
||||
/**
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Singleton
|
||||
public class ParseUserMetadataFromHeaders implements Function<HttpResponse, UserMetadata> {
|
||||
private static final Set<String> SYS_KEYS = ImmutableSet.of(
|
||||
|
|
|
@ -24,9 +24,6 @@ import org.jclouds.http.HttpResponse;
|
|||
|
||||
import com.google.common.base.Function;
|
||||
|
||||
/**
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Singleton
|
||||
public class ReturnTrueIfGroupACLIsOtherRead implements Function<HttpResponse, Boolean> {
|
||||
|
||||
|
|
|
@ -36,7 +36,6 @@ import com.google.inject.Inject;
|
|||
* Handles Retryable responses with error codes in the 4xx range
|
||||
*
|
||||
* @see Error codes section at <a href="https://www.synaptic.att.com/assets/us/en/home/Atmos_Programmers_Guide_1.3.4A.pdf" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public class AtmosClientErrorRetryHandler implements HttpRetryHandler {
|
||||
private final AtmosUtils utils;
|
||||
|
|
|
@ -36,7 +36,6 @@ import com.google.inject.Inject;
|
|||
* Handles Retryable responses with error codes in the 5xx range
|
||||
*
|
||||
* @see Error codes section at <a href="https://www.synaptic.att.com/assets/us/en/home/Atmos_Programmers_Guide_1.3.4A.pdf" />
|
||||
* @author Andrew Gaul
|
||||
*/
|
||||
public class AtmosServerErrorRetryHandler implements HttpRetryHandler {
|
||||
private final AtmosUtils utils;
|
||||
|
|
|
@ -45,8 +45,6 @@ import org.jclouds.util.Strings2;
|
|||
* This will parse and set an appropriate exception on the command object.
|
||||
*
|
||||
* @see AtmosError
|
||||
* @author Adrian Cole
|
||||
*
|
||||
*/
|
||||
@Singleton
|
||||
public class ParseAtmosErrorFromXmlContent implements HttpErrorHandler {
|
||||
|
|
|
@ -23,8 +23,6 @@ import org.jclouds.http.options.BaseHttpRequestOptions;
|
|||
|
||||
/**
|
||||
* Options used to control paginated results (aka list commands).
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public class ListOptions extends BaseHttpRequestOptions {
|
||||
public static final ListOptions NONE = new ListOptions();
|
||||
|
|
|
@ -33,9 +33,6 @@ import org.jclouds.http.options.BaseHttpRequestOptions;
|
|||
* AtmosClient connection = // get connection
|
||||
* connection.createDirectory("directory", publicRead());
|
||||
* <code>
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*
|
||||
*/
|
||||
public class PutOptions extends BaseHttpRequestOptions {
|
||||
public static final PutOptions NONE = new PutOptions();
|
||||
|
|
|
@ -20,8 +20,6 @@ package org.jclouds.atmos.reference;
|
|||
* Query parameters common to Atmos apis.
|
||||
*
|
||||
* @see <a href="https://community.emc.com/community/labs/atmos_online" />
|
||||
* @author Adrian Cole
|
||||
*
|
||||
*/
|
||||
public interface AtmosHeaders {
|
||||
|
||||
|
|
|
@ -45,8 +45,6 @@ import com.google.common.base.Predicate;
|
|||
/**
|
||||
* Encryption, Hashing, and IO Utilities needed to sign and verify Atmos Storage requests and
|
||||
* responses.
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public class AtmosUtils {
|
||||
|
||||
|
|
|
@ -21,8 +21,6 @@ import org.jclouds.http.functions.ParseSax;
|
|||
|
||||
/**
|
||||
* Parses the error from the Atmos Online Storage REST API.
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public class ErrorHandler extends ParseSax.HandlerWithResult<AtmosError> {
|
||||
|
||||
|
|
|
@ -29,7 +29,6 @@ import com.google.common.collect.Sets;
|
|||
* <p/>
|
||||
*
|
||||
* @see <a href="https://community.emc.com/community/labs/atmos_online" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public class ListDirectoryResponseHandler extends ParseSax.HandlerWithResult<Set<DirectoryEntry>> {
|
||||
|
||||
|
|
|
@ -19,10 +19,6 @@ package org.jclouds.atmos;
|
|||
import org.jclouds.blobstore.internal.BaseBlobStoreApiMetadataTest;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Test(groups = "unit", testName = "AtmosApiMetadataTest")
|
||||
public class AtmosApiMetadataTest extends BaseBlobStoreApiMetadataTest {
|
||||
|
||||
|
|
|
@ -58,8 +58,6 @@ import com.google.common.reflect.Invokable;
|
|||
import com.google.inject.Module;
|
||||
/**
|
||||
* Tests behavior of {@code AtmosAsyncClient}
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
// NOTE:without testName, this will not call @Before* and fail w/NPE during surefire
|
||||
@Test(groups = "unit", testName = "AtmosAsyncClientTest")
|
||||
|
|
|
@ -55,8 +55,6 @@ import com.google.common.hash.Hashing;
|
|||
|
||||
/**
|
||||
* Tests behavior of {@code AtmosClient}
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Test(groups = "live", singleThreaded = true)
|
||||
public class AtmosClientLiveTest extends BaseBlobStoreIntegrationTest {
|
||||
|
|
|
@ -31,8 +31,6 @@ import com.google.inject.Injector;
|
|||
|
||||
/**
|
||||
* Tests behavior of {@code BindMetadataToHeaders}
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Test(groups = "unit")
|
||||
public class BindMetadataToHeadersTest {
|
||||
|
|
|
@ -29,8 +29,6 @@ import com.google.inject.Injector;
|
|||
|
||||
/**
|
||||
* Tests behavior of {@code BindUserMetadataToHeaders}
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Test(groups = "unit")
|
||||
public class BindUserMetadataToHeadersTest {
|
||||
|
|
|
@ -41,8 +41,6 @@ import com.google.inject.Module;
|
|||
|
||||
/**
|
||||
* Tests behavior of {@code AtmosBlobRequestSigner}
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
// NOTE:without testName, this will not call @Before* and fail w/NPE during surefire
|
||||
@Test(groups = "unit", testName = "AtmosBlobRequestSignerTest")
|
||||
|
|
|
@ -22,9 +22,6 @@ import org.jclouds.blobstore.options.ListContainerOptions;
|
|||
|
||||
import com.google.common.base.Function;
|
||||
|
||||
/**
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Singleton
|
||||
public class ListOptionsToBlobStoreListOptions implements
|
||||
Function<org.jclouds.atmos.options.ListOptions[], ListContainerOptions> {
|
||||
|
|
|
@ -28,9 +28,6 @@ import org.jclouds.blobstore.domain.StorageType;
|
|||
import com.google.common.base.Function;
|
||||
import com.google.common.collect.Iterables;
|
||||
|
||||
/**
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Singleton
|
||||
public class ResourceMetadataListToDirectoryEntryList
|
||||
implements
|
||||
|
|
|
@ -19,10 +19,6 @@ package org.jclouds.atmos.blobstore.integration;
|
|||
import org.jclouds.blobstore.integration.internal.BaseBlobSignerLiveTest;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Test(groups = { "live" })
|
||||
public class AtmosBlobSignerLiveTest extends BaseBlobSignerLiveTest {
|
||||
public AtmosBlobSignerLiveTest() {
|
||||
|
|
|
@ -24,9 +24,6 @@ import org.jclouds.blobstore.domain.BlobMetadata;
|
|||
import org.jclouds.blobstore.integration.internal.BaseContainerIntegrationTest;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
/**
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Test(groups = "live")
|
||||
public class AtmosContainerIntegrationLiveTest extends BaseContainerIntegrationTest {
|
||||
public AtmosContainerIntegrationLiveTest() {
|
||||
|
|
|
@ -19,9 +19,6 @@ package org.jclouds.atmos.blobstore.integration;
|
|||
import org.jclouds.blobstore.integration.internal.BaseContainerLiveTest;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
/**
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Test(groups = { "live" })
|
||||
public class AtmosContainerLiveTest extends BaseContainerLiveTest {
|
||||
public AtmosContainerLiveTest() {
|
||||
|
|
|
@ -28,10 +28,6 @@ import org.testng.SkipException;
|
|||
import org.testng.annotations.DataProvider;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Test(groups = { "integration", "live" })
|
||||
public class AtmosIntegrationLiveTest extends BaseBlobIntegrationTest {
|
||||
public AtmosIntegrationLiveTest() {
|
||||
|
|
|
@ -21,10 +21,6 @@ import static org.testng.Assert.assertEquals;
|
|||
import org.jclouds.blobstore.integration.internal.BaseBlobLiveTest;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Test(groups = { "live" })
|
||||
public class AtmosLiveTest extends BaseBlobLiveTest {
|
||||
public AtmosLiveTest() {
|
||||
|
|
|
@ -19,9 +19,6 @@ package org.jclouds.atmos.blobstore.integration;
|
|||
import org.jclouds.blobstore.integration.internal.BaseServiceIntegrationTest;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
/**
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Test(groups = "live")
|
||||
public class AtmosServiceIntegrationLiveTest extends BaseServiceIntegrationTest {
|
||||
public AtmosServiceIntegrationLiveTest() {
|
||||
|
|
|
@ -25,10 +25,6 @@ import java.net.URI;
|
|||
import org.jclouds.blobstore.KeyAlreadyExistsException;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Test(groups = "unit")
|
||||
public class EndpointIfAlreadyExistsTest {
|
||||
|
||||
|
|
|
@ -45,10 +45,6 @@ import com.google.common.net.HttpHeaders;
|
|||
import com.google.inject.Injector;
|
||||
import com.google.inject.Module;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Test(groups = "unit")
|
||||
public class SignRequestTest {
|
||||
|
||||
|
|
|
@ -28,10 +28,6 @@ import org.testng.annotations.Test;
|
|||
|
||||
import com.google.inject.Guice;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Test(groups = "unit")
|
||||
public class AtmosObjectNameTest {
|
||||
AtmosObjectName fn = new AtmosObjectName();
|
||||
|
|
|
@ -36,8 +36,6 @@ import com.google.common.collect.ImmutableSet.Builder;
|
|||
|
||||
/**
|
||||
* Tests behavior of {@code ParseDirectoryListFromContentAndHeaders}
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
//NOTE:without testName, this will not call @Before* and fail w/NPE during surefire
|
||||
@Test(groups = "unit", testName = "ParseDirectoryListFromContentAndHeadersTest")
|
||||
|
|
|
@ -28,8 +28,6 @@ import com.google.inject.Guice;
|
|||
|
||||
/**
|
||||
* Tests behavior of {@code ParseObjectFromHeadersAndHttpContent}
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Test(groups = "unit", testName = "ParseObjectFromHeadersAndHttpContentTest")
|
||||
public class ParseObjectFromHeadersAndHttpContentTest {
|
||||
|
|
|
@ -29,8 +29,6 @@ import com.google.inject.Guice;
|
|||
|
||||
/**
|
||||
* Tests behavior of {@code ParseSystemMetadataFromHeaders}
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Test(groups = "unit")
|
||||
public class ParseSystemMetadataFromHeadersTest {
|
||||
|
|
|
@ -27,8 +27,6 @@ import com.google.inject.Guice;
|
|||
|
||||
/**
|
||||
* Tests behavior of {@code ParseUserMetadataFromHeaders}
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Test(groups = "unit")
|
||||
public class ParseUserMetadataFromHeadersTest {
|
||||
|
|
|
@ -32,8 +32,6 @@ import org.testng.annotations.Test;
|
|||
|
||||
/**
|
||||
* Tests behavior of {@code AtmosServerErrorRetryHandler}
|
||||
*
|
||||
* @author Andrew Gaul
|
||||
*/
|
||||
@Test(groups = "unit")
|
||||
public class AtmosServerErrorRetryHandlerTest {
|
||||
|
|
|
@ -56,8 +56,6 @@ import com.google.common.util.concurrent.ListeningExecutorService;
|
|||
|
||||
/**
|
||||
* Implementation of {@link AtmosAsyncClient} which keeps all data in a local Map object.
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public class StubAtmosAsyncClient implements AtmosAsyncClient {
|
||||
private final HttpGetOptionsListToGetOptions httpGetOptionsConverter;
|
||||
|
|
|
@ -24,8 +24,6 @@ import com.google.common.collect.ImmutableList;
|
|||
|
||||
/**
|
||||
* Tests behavior of {@code ListOptions}
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Test(groups = "unit")
|
||||
public class ListOptionsTest {
|
||||
|
|
|
@ -27,8 +27,6 @@ import org.testng.annotations.Test;
|
|||
|
||||
/**
|
||||
* Tests behavior of {@code ErrorHandler}
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
// NOTE:without testName, this will not call @Before* and fail w/NPE during surefire
|
||||
@Test(groups = "unit", testName = "ErrorHandlerTest")
|
||||
|
|
|
@ -31,8 +31,6 @@ import com.google.common.collect.Sets;
|
|||
|
||||
/**
|
||||
* Tests behavior of {@code ListDirectoryResponseHandler}
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
//NOTE:without testName, this will not call @Before* and fail w/NPE during surefire
|
||||
@Test(groups = "unit", testName = "ListDirectoryResponseHandlerTest")
|
||||
|
|
|
@ -34,8 +34,6 @@ import com.google.inject.Module;
|
|||
*
|
||||
* This class is not setup to allow a subclasses to override the type of api,
|
||||
* asyncapi, or context. This is an optimization for s.
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public class BYONApiMetadata extends BaseApiMetadata {
|
||||
|
||||
|
|
|
@ -26,10 +26,6 @@ import com.google.common.collect.ImmutableSet;
|
|||
import com.google.common.collect.Maps;
|
||||
import com.google.common.collect.Sets;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public class Node {
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
|
|
|
@ -33,10 +33,6 @@ import com.google.common.base.Function;
|
|||
import com.google.common.io.ByteSource;
|
||||
import com.google.inject.TypeLiteral;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@SingleThreaded
|
||||
public class BYONComputeServiceContextModule extends JCloudsNativeComputeServiceAdapterContextModule {
|
||||
|
||||
|
|
|
@ -32,10 +32,6 @@ import com.google.common.cache.LoadingCache;
|
|||
import com.google.inject.AbstractModule;
|
||||
import com.google.inject.TypeLiteral;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@ConfiguresNodeStore
|
||||
@Beta
|
||||
public class CacheNodeStoreModule extends AbstractModule {
|
||||
|
|
|
@ -26,9 +26,6 @@ import com.google.common.annotations.Beta;
|
|||
|
||||
/**
|
||||
* designates the module configures a {@code LoadingCache<String, Node>}
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*
|
||||
*/
|
||||
@Beta
|
||||
@Retention(RUNTIME)
|
||||
|
|
|
@ -41,10 +41,6 @@ import com.google.inject.Provides;
|
|||
import com.google.inject.TypeLiteral;
|
||||
import com.google.inject.name.Names;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@ConfiguresNodeStore
|
||||
@Beta
|
||||
public class YamlNodeStoreModule extends AbstractModule {
|
||||
|
|
|
@ -65,9 +65,6 @@ import com.google.common.io.ByteSource;
|
|||
* credential_url: password_or_rsa_file ex. resource:///id_rsa will get the classpath /id_rsa; file://path/to/id_rsa
|
||||
* sudo_password: password
|
||||
* </pre>
|
||||
*
|
||||
* @author Kelvin Kakugawa
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public class YamlNode {
|
||||
public String id;
|
||||
|
|
|
@ -51,9 +51,6 @@ import com.google.common.base.Supplier;
|
|||
import com.google.common.collect.ImmutableSet;
|
||||
import com.google.common.collect.Iterables;
|
||||
|
||||
/**
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Singleton
|
||||
public class NodeToNodeMetadata implements Function<Node, NodeMetadata> {
|
||||
@Resource
|
||||
|
|
|
@ -66,9 +66,6 @@ import com.google.common.io.Closeables;
|
|||
* credential_url: password_or_rsa_file ex. resource:///id_rsa will get the classpath /id_rsa; file://path/to/id_rsa
|
||||
* sudo_password: password
|
||||
* </pre>
|
||||
*
|
||||
* @author Kelvin Kakugawa
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Singleton
|
||||
public class NodesFromYamlStream implements Function<ByteSource, LoadingCache<String, Node>> {
|
||||
|
|
|
@ -47,10 +47,6 @@ import com.google.common.cache.LoadingCache;
|
|||
import com.google.common.collect.ImmutableSet;
|
||||
import com.google.common.collect.ImmutableSet.Builder;
|
||||
import com.google.common.util.concurrent.UncheckedExecutionException;
|
||||
/**
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Singleton
|
||||
public class BYONComputeServiceAdapter implements JCloudsNativeComputeServiceAdapter {
|
||||
private final Supplier<LoadingCache<String, Node>> nodes;
|
||||
|
|
|
@ -32,10 +32,6 @@ import com.google.common.base.Supplier;
|
|||
import com.google.common.cache.LoadingCache;
|
||||
import com.google.common.io.ByteSource;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Singleton
|
||||
public class NodesParsedFromSupplier implements Supplier<LoadingCache<String, Node>> {
|
||||
@Resource
|
||||
|
|
|
@ -37,9 +37,6 @@ import com.google.common.io.ByteSource;
|
|||
import com.google.inject.Inject;
|
||||
import com.google.inject.name.Named;
|
||||
|
||||
/**
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public class SupplyFromProviderURIOrNodesProperty extends ByteSource implements Function<URI, InputStream> {
|
||||
@Resource
|
||||
protected Logger logger = Logger.NULL;
|
||||
|
|
|
@ -19,10 +19,6 @@ package org.jclouds.byon;
|
|||
import org.jclouds.compute.internal.BaseComputeServiceApiMetadataTest;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Test(groups = "unit", testName = "BYONApiMetadataTest")
|
||||
public class BYONApiMetadataTest extends BaseComputeServiceApiMetadataTest {
|
||||
|
||||
|
|
|
@ -40,10 +40,6 @@ import com.google.common.base.Predicates;
|
|||
import com.google.common.collect.ImmutableSet;
|
||||
import com.google.inject.Module;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Test(groups = "live")
|
||||
public class BYONComputeServiceLiveTest {
|
||||
|
||||
|
|
|
@ -40,10 +40,6 @@ import com.google.inject.Key;
|
|||
import com.google.inject.Module;
|
||||
import com.google.inject.TypeLiteral;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Test(singleThreaded = true, testName = "BYONComputeServiceTest")
|
||||
public class BYONComputeServiceTest {
|
||||
|
||||
|
|
|
@ -41,10 +41,6 @@ import com.google.inject.Key;
|
|||
import com.google.inject.TypeLiteral;
|
||||
import com.google.inject.util.Providers;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Test(groups = "unit", singleThreaded = true, testName = "CacheNodeStoreModuleTest")
|
||||
public class CacheNodeStoreModuleTest {
|
||||
|
||||
|
|
|
@ -41,10 +41,6 @@ import com.google.inject.TypeLiteral;
|
|||
import com.google.inject.name.Names;
|
||||
import com.google.inject.util.Providers;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Test(groups = "unit", singleThreaded = true)
|
||||
public class YamlNodeStoreModuleTest {
|
||||
Yaml yaml = createInjector().getInstance(Yaml.class);
|
||||
|
|
|
@ -40,10 +40,6 @@ import com.google.common.collect.ImmutableMap;
|
|||
import com.google.common.collect.ImmutableSet;
|
||||
import com.google.common.collect.Maps;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Test(singleThreaded = true, testName = "NodeToNodeMetadataTest")
|
||||
public class NodeToNodeMetadataTest {
|
||||
public static Location expectedProviderLocationFromResource(String resource) {
|
||||
|
|
|
@ -26,10 +26,6 @@ import com.google.common.collect.ImmutableMap;
|
|||
import com.google.common.io.ByteSource;
|
||||
import com.google.common.io.Resources;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public class NodesFromYamlTest {
|
||||
public static final String key = new StringBuilder().append("-----BEGIN RSA PRIVATE KEY-----\n")
|
||||
.append("MIIEowIBAAKCAQEAuzaE6azgUxwESX1rCGdJ5xpdrc1XC311bOGZBCE8NA+CpFh2\n")
|
||||
|
|
|
@ -22,10 +22,6 @@ import org.testng.annotations.Test;
|
|||
import com.google.common.base.Charsets;
|
||||
import com.google.common.io.ByteSource;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public class NodesParsedFromSupplierTest {
|
||||
|
||||
@Test(expectedExceptions = IllegalStateException.class)
|
||||
|
|
|
@ -25,10 +25,6 @@ import com.google.common.base.Charsets;
|
|||
import org.jclouds.util.Strings2;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public class SupplyFromProviderURIOrNodesPropertyTest {
|
||||
|
||||
@Test
|
||||
|
|
|
@ -27,8 +27,6 @@ import javax.inject.Qualifier;
|
|||
* Represents a component related to Rackspace Cloud Files Content delivery network.
|
||||
*
|
||||
* @see <a href="http://www.rackspacecloud.com/cf-devguide-20090311.pdf" />
|
||||
* @author Adrian Cole
|
||||
*
|
||||
*/
|
||||
@Retention(value = RetentionPolicy.RUNTIME)
|
||||
@Target(value = { ElementType.TYPE, ElementType.FIELD, ElementType.PARAMETER, ElementType.METHOD })
|
||||
|
|
|
@ -34,8 +34,6 @@ import com.google.inject.TypeLiteral;
|
|||
|
||||
/**
|
||||
* Implementation of {@link ApiMetadata} for Rackspace Cloud Files API
|
||||
*
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public class CloudFilesApiMetadata extends SwiftApiMetadata {
|
||||
|
||||
|
|
|
@ -60,7 +60,6 @@ import com.google.common.util.concurrent.ListenableFuture;
|
|||
*
|
||||
* @see CloudFilesClient
|
||||
* @see <a href="http://www.rackspacecloud.com/cf-devguide-20090812.pdf" />
|
||||
* @author Adrian Cole
|
||||
* @deprecated please use {@code org.jclouds.ContextBuilder#buildApi(CloudFilesClient.class)} as
|
||||
* {@link CloudFilesAsyncClient} interface will be removed in jclouds 1.7.
|
||||
*/
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue