/** * {@inheritDoc} */ @Override public void testEnded() { if (isConcurrentDwn()) { ResourcesDownloader.getInstance().shrink(); } }
/** * {@inheritDoc} */ @Override public void configure(TestElement element) { super.configure(element); final HTTPSamplerBase samplerBase = (HTTPSamplerBase) element; urlConfigGui.configure(element); retrieveEmbeddedResources.setSelected(samplerBase.isImageParser()); concurrentDwn.setSelected(samplerBase.isConcurrentDwn()); concurrentPool.setText(samplerBase.getConcurrentPool()); useMD5.setSelected(samplerBase.useMD5()); embeddedRE.setText(samplerBase.getEmbeddedUrlRE()); if (!isAJP) { sourceIpAddr.setText(samplerBase.getIpSource()); sourceIpType.setSelectedIndex(samplerBase.getIpSourceType()); proxyHost.setText(samplerBase.getPropertyAsString(HTTPSamplerBase.PROXYHOST)); proxyPort.setText(samplerBase.getPropertyAsString(HTTPSamplerBase.PROXYPORT)); proxyUser.setText(samplerBase.getPropertyAsString(HTTPSamplerBase.PROXYUSER)); proxyPass.setText(samplerBase.getPropertyAsString(HTTPSamplerBase.PROXYPASS)); httpImplementation.setSelectedItem(samplerBase.getPropertyAsString(HTTPSamplerBase.IMPLEMENTATION)); connectTimeOut.setText(samplerBase.getPropertyAsString(HTTPSamplerBase.CONNECT_TIMEOUT)); responseTimeOut.setText(samplerBase.getPropertyAsString(HTTPSamplerBase.RESPONSE_TIMEOUT)); } }
clientContext.setAttribute(CONTEXT_ATTRIBUTE_CLIENT_KEY, key); CloseableHttpClient httpClient = null; boolean concurrentDwn = this.testElement.isConcurrentDwn(); if(concurrentDwn) { httpClient = (CloseableHttpClient) JMeterContextService.getContext().getSamplerContext().get(CONTEXT_ATTRIBUTE_HTTPCLIENT_TOKEN);
boolean isConcurrentDwn = isConcurrentDwn(); if (isConcurrentDwn) { try {