Interface RestClientService
public interface RestClientService
Creates a
Retrofit
coupled with a RestClientAuthenticator
to login on Octoperf.- Author:
- jerome
-
Field Summary
Modifier and TypeFieldDescriptionstatic final RestClientService
SingletonRestClientService
instance. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.commons.lang3.tuple.Pair<RestApiFactory,
RestClientAuthenticator> create
(String apiUrl, PrintStream logger) Creates aRetrofit
ready to login on octoperf cloud load testing platform.
-
Field Details
-
CLIENTS
SingletonRestClientService
instance.
-
-
Method Details
-
create
org.apache.commons.lang3.tuple.Pair<RestApiFactory,RestClientAuthenticator> create(String apiUrl, PrintStream logger) Creates aRetrofit
ready to login on octoperf cloud load testing platform.- Parameters:
apiUrl
- Example: https://api.octoperf.comlogger
-- Returns:
- pair of adapter and authenticator
-