Mercurial > stress-tester
changeset 655:b8426b876edf
Client interface
author | Devel 2 |
---|---|
date | Thu, 09 Nov 2017 14:37:35 +0100 |
parents | de5d297a3822 |
children | 3f78fb8409fb |
files | stress-tester/src/main/java/com/passus/st/client/Client.java stress-tester/src/main/java/com/passus/st/client/http/HttpClient.java |
diffstat | 2 files changed, 14 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/stress-tester/src/main/java/com/passus/st/client/Client.java Thu Nov 09 14:37:35 2017 +0100 @@ -0,0 +1,12 @@ +package com.passus.st.client; + +import com.passus.commons.service.Service; +import com.passus.st.metric.MetricSource; + +/** + * + * @author Mirosław Hawrot + */ +public interface Client extends EventHandler, MetricSource, Service { + +}
--- a/stress-tester/src/main/java/com/passus/st/client/http/HttpClient.java Thu Nov 09 14:37:01 2017 +0100 +++ b/stress-tester/src/main/java/com/passus/st/client/http/HttpClient.java Thu Nov 09 14:37:35 2017 +0100 @@ -1,14 +1,12 @@ package com.passus.st.client.http; import com.passus.commons.Assert; -import com.passus.commons.service.Service; import com.passus.commons.service.ServiceException; +import com.passus.st.client.Client; import com.passus.st.client.Event; -import com.passus.st.client.EventHandler; import com.passus.st.client.http.filter.HttpFilter; import com.passus.st.client.http.filter.HttpFilterChain; import com.passus.st.emitter.Emitter; -import com.passus.st.metric.MetricSource; import com.passus.st.metric.MetricsContainer; import java.util.ArrayList; import java.util.List; @@ -19,7 +17,7 @@ * * @author Mirosław Hawrot */ -public class HttpClient implements EventHandler, MetricSource, Service { +public class HttpClient implements Client { private static final Logger LOGGER = LogManager.getLogger(HttpClient.class);