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
|
* 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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -83,7 +83,7 @@ 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()));
|
||||||
|
|
|
@ -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/>
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue