Class 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 Detail

      • 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 org.infinispan.configuration.cache.CacheMode mode
      • qualifier

        protected String qualifier
    • Constructor Detail

      • RestTestClientDriver

        public RestTestClientDriver​(TestServer testServer,
                                    TestClient testClient)
    • Method Detail

      • 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
      • 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
      • withServerConfiguration

        public S withServerConfiguration​(org.infinispan.configuration.cache.ConfigurationBuilder serverConfiguration)
      • withServerConfiguration

        public S withServerConfiguration​(org.infinispan.commons.configuration.XMLStringConfiguration xmlConfiguration)
      • withCacheMode

        public S withCacheMode​(org.infinispan.configuration.cache.CacheMode mode)
      • withQualifier

        public S withQualifier​(String qualifier)
      • makeVolatile

        public S makeVolatile()