/** * Processed by the RMI server code; acts as testStarted(). * * @return this * @throws ObjectStreamException * never */ private Object readResolve() throws ObjectStreamException{ if (isClientConfigured()) { stripAlsoOnError = clientConfiguredStripAlsoOnError; } else { stripAlsoOnError = SERVER_CONFIGURED_STRIP_ALSO_ON_ERROR; } log.info("Using DataStrippingSampleSender for this run with stripAlsoOnError: {}", stripAlsoOnError); return this; } }
@Override public void sampleOccurred(SampleEvent event) { //Strip the response data before writing, but only for a successful request. SampleResult result = event.getResult(); if(stripAlsoOnError || result.isSuccessful()) { // Compute bytes before stripping stripResponse(result); // see Bug 57449 for (SampleResult subResult : result.getSubResults()) { stripResponse(subResult); } } if(decoratedSender == null) { try { listener.sampleOccurred(event); } catch (RemoteException e) { log.error("Error sending sample result over network", e); } } else { decoratedSender.sampleOccurred(event); } }
s = new BatchSampleSender(listener); } else if (type.equalsIgnoreCase(MODE_STRIPPED_BATCH)) { s = new DataStrippingSampleSender(new BatchSampleSender(listener)); } else if (type.equalsIgnoreCase(MODE_STATISTICAL)) { s = new StatisticalSampleSender(listener); s = new StandardSampleSender(listener); } else if (type.equalsIgnoreCase(MODE_STRIPPED)) { s = new DataStrippingSampleSender(listener); } else if (type.equalsIgnoreCase(MODE_ASYNCH)) { s = new AsynchSampleSender(listener); } else if (type.equalsIgnoreCase(MODE_STRIPPED_ASYNCH)) { s = new DataStrippingSampleSender(new AsynchSampleSender(listener)); } else if (type.equalsIgnoreCase(MODE_DISKSTORE)) { s = new DiskStoreSampleSender(listener); } else if (type.equalsIgnoreCase(MODE_STRIPPED_DISKSTORE)) { s = new DataStrippingSampleSender(new DiskStoreSampleSender(listener)); } else {