public void startProxy() throws IOException { try { initKeyStore(); } catch (GeneralSecurityException e) { log.error("Could not initialise key store", e); throw new IOException("Could not create keystore", e); } catch (IOException e) { // make sure we log the error log.error("Could not initialise key store", e); throw e; } notifyTestListenersOfStart(); try { server = new Daemon(getPort(), this); if (getProxyPauseHTTPSample().isEmpty()) { sampleGap = JMeterUtils.getPropDefault("proxy.pause", 5000); } else { sampleGap = Long.parseLong(getProxyPauseHTTPSample().trim()); } server.start(); if (GuiPackage.getInstance() != null) { GuiPackage.getInstance().register(server); } } catch (IOException e) { log.error("Could not create HTTP(S) Test Script Recorder Proxy daemon", e); throw e; } }
public void startHttpMirror() { server = new HttpMirrorServer(getPort(), getMaxPoolSize(), getMaxQueueSize()); server.start(); GuiPackage instance = GuiPackage.getInstance(); if (instance != null) { instance.register(server); } }
public void startHttpSimpleTable() throws IOException { log.info("Creating HTTP Simple Table Server..."); log.info("Port=" + getPort()); log.info("Dataset directory=" + getDataDir()); log.info("Timestamp=" + getTimestamp()); log.info("STS Version=" + HttpSimpleTableServer.STS_VERSION); server = new HttpSimpleTableServer(getPort(), getTimestamp(), getDataDir()); server.start(); GuiPackage instance = GuiPackage.getInstance(); if (instance != null) { instance.register(server); } }
public void startHttpSimpleTable() throws IOException { log.info("Creating HTTP Simple Table Server..."); log.info("Port=" + getPort()); log.info("Dataset directory=" + getDataDir()); log.info("Timestamp=" + getTimestamp()); log.info("STS Version=" + HttpSimpleTableServer.STS_VERSION); server = new HttpSimpleTableServer(getPort(), getTimestamp(), getDataDir()); server.start(); GuiPackage instance = GuiPackage.getInstance(); if (instance != null) { instance.register(server); } }