Beispiel #1
0
 public ExperimentContainer(string instanceId, ExperimentRequest request, IExperimentFactory experimentFactory)
 {
     this.ExperimentRequest = request;
     this.testDataSource = new RandomBlobData(request.MinDataSize);
     InstanceId = instanceId;
     for (int i = 0; i < request.NumberOfThreads; i++)
     {
         this.experiments.Add(experimentFactory.CreateExperiment(request));
     }
 }
 public Experiment CreateExperiment(ExperimentRequest request)
 {
     Type experiment = this.experiments[request.ExperimentName];
     return new UploadBlobsExperiment("", this.benchmarkAccount.CreateCloudBlobClient(), request, GetBlobDatasource(request.MinDataSize));
 }
 public Experiment CreateExperiment(ExperimentRequest request)
 {
     Type experiment = this.experiments[request.ExperimentName];
     return new MockExperiment(this.tracker, request.ExperimentName, request.RequestedIterations, this.instanceId, this.iteration);
 }
 public void UpdateRequestState(Guid experimentId, ExperimentRequest.State state)
 {
     AssertId(experimentId);
     this.experiments[0].CurrentState = state;
 }
 public UploadBlobsExperiment(string instanceId, CloudBlobClient client, ExperimentRequest request, RandomBlobData blobDatasource)
     : base(request.ExperimentId, client, "Upload blobs", request.RequestedIterations, instanceId)
 {
     this.container = this.client.GetContainerReference(Path.GetFileNameWithoutExtension(Path.GetRandomFileName()).ToLowerInvariant());
     this.blobDatasource = blobDatasource;
 }