コード例 #1
0
  @Override
  public void prepare(Generator generator) {
    this._generator = generator;
    HBaseGenerator hbaseGenerator = (HBaseGenerator) generator;

    this._hbaseClient = hbaseGenerator.getHBaseTransport();

    LoadProfile currentLoadProfile = generator.getLatestLoadProfile();
    if (currentLoadProfile != null) this.setGeneratedDuringProfile(currentLoadProfile);

    this._tableName = hbaseGenerator._tableName;
    this._columnFamilyName = hbaseGenerator._columnFamilyName;
  }
コード例 #2
0
  @Override
  public void prepare(Generator generator) {
    this._generator = generator;
    OlioGenerator olioGenerator = (OlioGenerator) generator;

    LoadProfile currentLoadProfile = generator.getLatestLoadProfile();
    if (currentLoadProfile != null) this.setGeneratedDuringProfile(currentLoadProfile);

    // TODO: Should these values be cloned instead of assigned? (e.g. asynchronous operations)
    this._http = olioGenerator.getHttpTransport();
    this._random = olioGenerator.getOlioRandomUtil();

    // Refresh the cache to simulate real-world browsing.
    this.refreshCache();

    this._cachedURLs = olioGenerator.getCachedURLs();
    this._isLoggedOn = olioGenerator.isLoggedOn();
    this._logger = olioGenerator.getLogger();
  }
コード例 #3
0
 @Override
 public void prepare(Generator generator) {
   this._generator = generator;
   LoadProfile currentLoadProfile = generator.getLatestLoadProfile();
   if (currentLoadProfile != null) this.setGeneratedDuringProfile(currentLoadProfile);
 }