configuredColumns.add(CSVSaveService.CSV_BYTES); if (saveConfig.saveSentBytes()) { configuredColumns.add(CSVSaveService.CSV_SENT_BYTES);
if (saveConfig.saveSentBytes()) { field = CSV_SENT_BYTES; text = parts[i++];
appendFields(saveConfig.saveAssertionResultsFailureMessage(), text, delim, FAILURE_MESSAGE); appendFields(saveConfig.saveBytes(), text, delim, CSV_BYTES); appendFields(saveConfig.saveSentBytes(), text, delim, CSV_SENT_BYTES); appendFields(saveConfig.saveThreadCounts(), text, delim, CSV_THREAD_COUNT1, CSV_THREAD_COUNT2); appendFields(saveConfig.saveUrl(), text, delim, CSV_URL);
writer.addAttribute(ATT_BYTES, String.valueOf(res.getBytesAsLong())); if (save.saveSentBytes()) { writer.addAttribute(ATT_SENT_BYTES, String.valueOf(res.getSentBytes()));
/** {@inheritDoc} */ @Override public void marshal(Object obj, HierarchicalStreamWriter writer, MarshallingContext context) { super.marshal(obj, writer, context); // Save most things SampleSaveConfiguration prop = (SampleSaveConfiguration) obj; // Save the new fields - but only if they are true // This list MUST agree with the list in MyWrapper#shouldSerializeMember() createNode(writer,prop.saveBytes(),NODE_BYTES); createNode(writer,prop.saveSentBytes(),NODE_SENT_BYTES); createNode(writer,prop.saveUrl(),NODE_URL); createNode(writer,prop.saveFileName(),NODE_FILENAME); createNode(writer,prop.saveHostname(),NODE_HOSTNAME); createNode(writer,prop.saveThreadCounts(),NODE_THREAD_COUNT); createNode(writer,prop.saveSampleCount(),NODE_SAMPLE_COUNT); createNode(writer,prop.saveIdleTime(),NODE_IDLE_TIME); createNode(writer, prop.saveConnectTime(), NODE_CONNECT_TIME); }
if (saveConfig.saveSentBytes()) { text.append(sample.getSentBytes());