Class RestTestClientDriver

java.lang.Object
org.infinispan.server.test.api.RestTestClientDriver
All Implemented Interfaces:
org.infinispan.commons.configuration.Self<RestTestClientDriver>

public class RestTestClientDriver extends Object
REST operations for the testing framework
Since:
10
Author:
Tristan Tarrant
  • Field Details

    • TIMEOUT

      public static final int TIMEOUT
    • serverConfiguration

      protected org.infinispan.commons.configuration.BasicConfiguration serverConfiguration
    • flags

      protected EnumSet<org.infinispan.commons.api.CacheContainerAdmin.AdminFlag> flags
    • mode

      protected String mode
    • qualifier

      protected String qualifier
  • Constructor Details

  • 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 RestTestClientDriver instance with the rest client configuration override
    • withPort

      public RestTestClientDriver withPort(int port)
    • 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 RestClient instance
    • self

      public RestTestClientDriver self()
    • withServerConfiguration

      public RestTestClientDriver withServerConfiguration(org.infinispan.commons.configuration.BasicConfiguration serverConfiguration)
    • withServerConfiguration

      public RestTestClientDriver withServerConfiguration(org.infinispan.commons.configuration.StringConfiguration configuration)
    • withCacheMode

      public RestTestClientDriver withCacheMode(Enum<?> mode)
    • withCacheMode

      public RestTestClientDriver withCacheMode(String mode)
    • withQualifier

      public RestTestClientDriver withQualifier(String qualifier)
    • makeVolatile

      public RestTestClientDriver makeVolatile()