fixed bad naming convention on constant

This commit is contained in:
Adrian Cole 2010-03-15 10:42:46 -07:00
parent dc512e8bae
commit 3be3966f45
8 changed files with 9 additions and 9 deletions

View File

@ -66,7 +66,7 @@ public class FindMD5InUserMetadata implements ContainsValueInListStrategy {
* maximum duration of an blob Request * maximum duration of an blob Request
*/ */
@Inject(optional = true) @Inject(optional = true)
@Named(Constants.PROPERTY_HTTP_REQUEST_TIMEOUT) @Named(Constants.PROPERTY_REQUEST_TIMEOUT)
protected Long maxTime; protected Long maxTime;
@Inject @Inject

View File

@ -66,7 +66,7 @@ public class DeleteAllKeysInList implements ClearListStrategy, ClearContainerStr
* maximum duration of an blob Request * maximum duration of an blob Request
*/ */
@Inject(optional = true) @Inject(optional = true)
@Named(Constants.PROPERTY_HTTP_REQUEST_TIMEOUT) @Named(Constants.PROPERTY_REQUEST_TIMEOUT)
protected Long maxTime; protected Long maxTime;
@Inject @Inject

View File

@ -68,7 +68,7 @@ public class GetAllBlobsInListAndRetryOnFailure implements GetBlobsInListStrateg
* maximum duration of an blob Request * maximum duration of an blob Request
*/ */
@Inject(optional = true) @Inject(optional = true)
@Named(Constants.PROPERTY_HTTP_REQUEST_TIMEOUT) @Named(Constants.PROPERTY_REQUEST_TIMEOUT)
protected Long maxTime; protected Long maxTime;
@Inject @Inject

View File

@ -74,7 +74,7 @@ public class MarkersDeleteDirectoryStrategy implements DeleteDirectoryStrategy {
* maximum duration of an blob Request * maximum duration of an blob Request
*/ */
@Inject(optional = true) @Inject(optional = true)
@Named(Constants.PROPERTY_HTTP_REQUEST_TIMEOUT) @Named(Constants.PROPERTY_REQUEST_TIMEOUT)
protected Long maxTime; protected Long maxTime;
@Inject @Inject

View File

@ -55,7 +55,7 @@ public class PutBlobsStrategyImpl implements PutBlobsStrategy {
* maximum duration of an blob Request * maximum duration of an blob Request
*/ */
@Inject(optional = true) @Inject(optional = true)
@Named(Constants.PROPERTY_HTTP_REQUEST_TIMEOUT) @Named(Constants.PROPERTY_REQUEST_TIMEOUT)
protected Long maxTime; protected Long maxTime;
@Inject @Inject

View File

@ -83,8 +83,8 @@ public class BaseContainerIntegrationTest extends BaseBlobStoreIntegrationTest {
PageSet<? extends StorageMetadata> container = context.getBlobStore().list(containerName, PageSet<? extends StorageMetadata> container = context.getBlobStore().list(containerName,
maxResults(1).withDetails()); maxResults(1).withDetails());
BlobMetadata metadata = (BlobMetadata) Iterables.getOnlyElement(container); BlobMetadata metadata = BlobMetadata.class.cast(Iterables.get(container, 0));
assert metadata.getContentType().startsWith("text/plain") : metadata.getContentType(); assert metadata.getContentType().startsWith("text/plain") : metadata.getContentType();
assertEquals(metadata.getSize(), new Long(TEST_STRING.length())); assertEquals(metadata.getSize(), new Long(TEST_STRING.length()));
assertEquals(metadata.getUserMetadata().get("adrian"), "powderpuff"); assertEquals(metadata.getUserMetadata().get("adrian"), "powderpuff");

View File

@ -105,7 +105,7 @@ public interface Constants {
* <p/> * <p/>
* longest time a single request can take before throwing an exception. * longest time a single request can take before throwing an exception.
*/ */
public static final String PROPERTY_HTTP_REQUEST_TIMEOUT = "jclouds.request_timeout"; public static final String PROPERTY_REQUEST_TIMEOUT = "jclouds.request_timeout";
/** /**
* Boolean property. * Boolean property.
* <p/> * <p/>

View File

@ -56,7 +56,7 @@ public class AsyncRestClientProxy<T> implements InvocationHandler {
* maximum duration of an unwrapped http Request * maximum duration of an unwrapped http Request
*/ */
@Inject(optional = true) @Inject(optional = true)
@Named(Constants.PROPERTY_HTTP_REQUEST_TIMEOUT) @Named(Constants.PROPERTY_REQUEST_TIMEOUT)
protected long requestTimeoutMilliseconds = 30000; protected long requestTimeoutMilliseconds = 30000;
@Resource @Resource