mirror of https://github.com/apache/jclouds.git
tuned performance tests
git-svn-id: http://jclouds.googlecode.com/svn/trunk@2014 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
parent
6336fa1823
commit
16e3526430
|
@ -83,7 +83,7 @@ public abstract class BaseJCloudsPerformanceLiveTest extends BasePerformanceLive
|
||||||
S3Object object = newObject(key);
|
S3Object object = newObject(key);
|
||||||
object.getMetadata().setContentType(contentType);
|
object.getMetadata().setContentType(contentType);
|
||||||
object.setData(data);
|
object.setData(data);
|
||||||
object.getMetadata().setSize(new Long(data.available()));
|
object.setContentLength(new Long(data.available()));
|
||||||
return context.getApi().putObject(bucket, object).get(120, TimeUnit.SECONDS) != null;
|
return context.getApi().putObject(bucket, object).get(120, TimeUnit.SECONDS) != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,10 @@ import org.testng.annotations.Test;
|
||||||
* @author Adrian Cole
|
* @author Adrian Cole
|
||||||
*/
|
*/
|
||||||
public abstract class BasePerformanceLiveTest extends BaseBlobStoreIntegrationTest<S3Client> {
|
public abstract class BasePerformanceLiveTest extends BaseBlobStoreIntegrationTest<S3Client> {
|
||||||
protected int timeoutSeconds = 10;
|
static {
|
||||||
|
containerCount = 1;
|
||||||
|
}
|
||||||
|
protected int timeoutSeconds = 15;
|
||||||
protected int loopCount = 100;
|
protected int loopCount = 100;
|
||||||
protected ExecutorService exec;
|
protected ExecutorService exec;
|
||||||
protected CompletionService<Boolean> completer;
|
protected CompletionService<Boolean> completer;
|
||||||
|
|
Loading…
Reference in New Issue