/** * Processed by the RMI server code; acts as testStarted(). * * @return this * @throws ObjectStreamException * never */ private Object readResolve() throws ObjectStreamException{ if (isClientConfigured()) { numSamplesThreshold = clientConfiguredNumSamplesThreshold; timeThresholdMs = clientConfiguredTimeThresholdMs; } else { numSamplesThreshold = NUM_SAMPLES_THRESHOLD; timeThresholdMs = TIME_THRESHOLD_MS; } log.info("Using batching for this run. Thresholds: num={}, time={}", numSamplesThreshold, timeThresholdMs); return this; } }
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);
/** * Constructor * * @param listener * that the List of sample events will be sent to. */ // protected added: Bug 50008 - allow BatchSampleSender to be subclassed protected BatchSampleSender(RemoteSampleListener listener) { this.listener = listener; if (isClientConfigured()) { log.info("Using batching (client settings) for this run. Thresholds: num={}, time={}", clientConfiguredNumSamplesThreshold, clientConfiguredTimeThresholdMs); } else { log.info("Using batching (server settings) for this run."); } }