mirror of https://github.com/apache/jclouds.git
fixed bad naming convention on constant
This commit is contained in:
parent
dc512e8bae
commit
3be3966f45
|
@ -66,7 +66,7 @@ public class FindMD5InUserMetadata implements ContainsValueInListStrategy {
|
|||
* maximum duration of an blob Request
|
||||
*/
|
||||
@Inject(optional = true)
|
||||
@Named(Constants.PROPERTY_HTTP_REQUEST_TIMEOUT)
|
||||
@Named(Constants.PROPERTY_REQUEST_TIMEOUT)
|
||||
protected Long maxTime;
|
||||
|
||||
@Inject
|
||||
|
|
|
@ -66,7 +66,7 @@ public class DeleteAllKeysInList implements ClearListStrategy, ClearContainerStr
|
|||
* maximum duration of an blob Request
|
||||
*/
|
||||
@Inject(optional = true)
|
||||
@Named(Constants.PROPERTY_HTTP_REQUEST_TIMEOUT)
|
||||
@Named(Constants.PROPERTY_REQUEST_TIMEOUT)
|
||||
protected Long maxTime;
|
||||
|
||||
@Inject
|
||||
|
|
|
@ -68,7 +68,7 @@ public class GetAllBlobsInListAndRetryOnFailure implements GetBlobsInListStrateg
|
|||
* maximum duration of an blob Request
|
||||
*/
|
||||
@Inject(optional = true)
|
||||
@Named(Constants.PROPERTY_HTTP_REQUEST_TIMEOUT)
|
||||
@Named(Constants.PROPERTY_REQUEST_TIMEOUT)
|
||||
protected Long maxTime;
|
||||
|
||||
@Inject
|
||||
|
|
|
@ -74,7 +74,7 @@ public class MarkersDeleteDirectoryStrategy implements DeleteDirectoryStrategy {
|
|||
* maximum duration of an blob Request
|
||||
*/
|
||||
@Inject(optional = true)
|
||||
@Named(Constants.PROPERTY_HTTP_REQUEST_TIMEOUT)
|
||||
@Named(Constants.PROPERTY_REQUEST_TIMEOUT)
|
||||
protected Long maxTime;
|
||||
|
||||
@Inject
|
||||
|
|
|
@ -55,7 +55,7 @@ public class PutBlobsStrategyImpl implements PutBlobsStrategy {
|
|||
* maximum duration of an blob Request
|
||||
*/
|
||||
@Inject(optional = true)
|
||||
@Named(Constants.PROPERTY_HTTP_REQUEST_TIMEOUT)
|
||||
@Named(Constants.PROPERTY_REQUEST_TIMEOUT)
|
||||
protected Long maxTime;
|
||||
|
||||
@Inject
|
||||
|
|
|
@ -83,8 +83,8 @@ public class BaseContainerIntegrationTest extends BaseBlobStoreIntegrationTest {
|
|||
PageSet<? extends StorageMetadata> container = context.getBlobStore().list(containerName,
|
||||
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();
|
||||
assertEquals(metadata.getSize(), new Long(TEST_STRING.length()));
|
||||
assertEquals(metadata.getUserMetadata().get("adrian"), "powderpuff");
|
||||
|
|
|
@ -105,7 +105,7 @@ public interface Constants {
|
|||
* <p/>
|
||||
* 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.
|
||||
* <p/>
|
||||
|
|
|
@ -56,7 +56,7 @@ public class AsyncRestClientProxy<T> implements InvocationHandler {
|
|||
* maximum duration of an unwrapped http Request
|
||||
*/
|
||||
@Inject(optional = true)
|
||||
@Named(Constants.PROPERTY_HTTP_REQUEST_TIMEOUT)
|
||||
@Named(Constants.PROPERTY_REQUEST_TIMEOUT)
|
||||
protected long requestTimeoutMilliseconds = 30000;
|
||||
|
||||
@Resource
|
||||
|
|
Loading…
Reference in New Issue