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