Package org.infinispan.server.test.api
Class RestTestClientDriver
java.lang.Object
org.infinispan.server.test.api.RestTestClientDriver
- All Implemented Interfaces:
org.infinispan.commons.configuration.Self<RestTestClientDriver>
REST operations for the testing framework
- Since:
- 10
- Author:
- Tristan Tarrant
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.infinispan.client.rest.RestClientcreate()Create a new REST client and create a cache whose name will be the test name where this method is called from.org.infinispan.client.rest.RestClientget()Create and get a REST client.org.infinispan.client.rest.RestClientget(int n) Create and get a REST client that is connected to the Nth server of the cluster.self()withCacheMode(Enum<?> mode) withCacheMode(String mode) withClientConfiguration(org.infinispan.client.rest.configuration.RestClientConfigurationBuilder clientConfiguration) Provide a custom client configuration to connect to the server via RESTwithPort(int port) withQualifier(String qualifier) withServerConfiguration(org.infinispan.commons.configuration.BasicConfiguration serverConfiguration) withServerConfiguration(org.infinispan.commons.configuration.StringConfiguration configuration)
-
Field Details
-
TIMEOUT
public static final int TIMEOUT -
serverConfiguration
protected org.infinispan.commons.configuration.BasicConfiguration serverConfiguration -
flags
-
mode
-
qualifier
-
-
Constructor Details
-
RestTestClientDriver
-
-
Method Details
-
withClientConfiguration
public RestTestClientDriver withClientConfiguration(org.infinispan.client.rest.configuration.RestClientConfigurationBuilder clientConfiguration) Provide a custom client configuration to connect to the server via REST- Parameters:
clientConfiguration-- Returns:
- the current
RestTestClientDriverinstance with the rest client configuration override
-
withPort
-
get
public org.infinispan.client.rest.RestClient get()Create and get a REST client.- Returns:
- a new instance of the
RestClient
-
get
public org.infinispan.client.rest.RestClient get(int n) Create and get a REST client that is connected to the Nth server of the cluster.- Returns:
- a new instance of the
RestClient
-
create
public org.infinispan.client.rest.RestClient create()Create a new REST client and create a cache whose name will be the test name where this method is called from.- Returns:
- new
RestClientinstance
-
self
-
withServerConfiguration
public RestTestClientDriver withServerConfiguration(org.infinispan.commons.configuration.BasicConfiguration serverConfiguration) -
withServerConfiguration
public RestTestClientDriver withServerConfiguration(org.infinispan.commons.configuration.StringConfiguration configuration) -
withCacheMode
-
withCacheMode
-
withQualifier
-
makeVolatile
-