private void doStoreTestNow() throws HoneycombTestException {
    TestCase self = createTestCase("setupStore", "filesize=" + getFilesize());
    self.addTag(Tag.SMOKE);
    self.addTag(Tag.REGRESSION);
    self.addTag(Tag.POSITIVE);
    self.addTag(Tag.SMOKE);
    self.addTag(HoneycombTag.STOREDATA);
    self.addTag(HoneycombTag.JAVA_API);
    self.addTag(HoneycombTag.EMULATOR);

    if (self.excludeCase()) return;

    storeResult = store(getFilesize());

    // successful result will only be posted if we didn't throw
    self.testPassed(
        "Stored file of size "
            + getFilesize()
            + " as oid "
            + storeResult.mdoid
            + " @ "
            + (storeResult.filesize * 1000 / storeResult.time)
            + " bytes/sec");
    setupOK = true;
  }
  /** Diagnostics */
  public void printPeriodicStatusMsg(ByteBuffer b) {
    if (_totalcalls % METRIC_INCREMENT == 0 && _tc != null) {
      _tc.postMetricGroup(getCurrentMetrics());
    }

    if (_totalcalls % LOG_INCREMENT == 0) {
      LOG.info(_functionName + " called on " + toString() + ", buf is " + b);

      // Check if buffer is too small
      if (b.limit() > _bufsize) {
        LOG.info(
            "Maybe we should increase bufsize; remaining is "
                + b.remaining()
                + "; bufsize is "
                + _bufsize);
      }
    } else if (true == REALLY_CHATTY) {
      LOG.fine(_functionName + " called on " + toString() + ", buf is " + b);
    }
  }
 public void printFinalDataMoveMsg(long b) {
   LOG.fine("last " + _action + ": " + _action + " only " + b + "; " + toString());
   if (_tc != null) {
     _tc.postMetricGroup(getCurrentMetrics());
   }
 }