Package org.infinispan.server.test.core
Class TestClient
- java.lang.Object
-
- org.infinispan.server.test.core.TestClient
-
public class TestClient extends Object
Holds the client part of the testing utilities- Since:
- 11
- Author:
- Katia Aresti
-
-
Field Summary
Fields Modifier and Type Field Description protected InfinispanServerTestConfigurationconfigurationprotected List<Closeable>resourcesprotected TestServertestServer
-
Constructor Summary
Constructors Constructor Description TestClient(TestServer testServer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaddScript(org.infinispan.client.hotrod.RemoteCacheManager remoteCacheManager, String script)voidclearResources()org.infinispan.counter.api.CounterManagergetCounterManager()net.spy.memcached.MemcachedClientgetMemcachedClient()StringgetMethodName()StringgetMethodName(String qualifier)<K,V>
org.infinispan.client.hotrod.multimap.MultimapCacheManager<K,V>getRemoteMultimapCacheManager()InfinispanServerDrivergetServerDriver()HotRodTestClientDriverhotrod()voidinitResources()org.infinispan.client.rest.RestClientnewRestClient(org.infinispan.client.rest.configuration.RestClientConfigurationBuilder restClientConfigurationBuilder)<T extends Closeable>
TregisterResource(T resource)RestTestClientDriverrest()voidsetMethodName(String methodName)
-
-
-
Field Detail
-
configuration
protected InfinispanServerTestConfiguration configuration
-
testServer
protected TestServer testServer
-
-
Constructor Detail
-
TestClient
public TestClient(TestServer testServer)
-
-
Method Detail
-
registerResource
public <T extends Closeable> T registerResource(T resource)
-
getServerDriver
public InfinispanServerDriver getServerDriver()
-
hotrod
public HotRodTestClientDriver hotrod()
-
rest
public RestTestClientDriver rest()
-
getCounterManager
public org.infinispan.counter.api.CounterManager getCounterManager()
-
getRemoteMultimapCacheManager
public <K,V> org.infinispan.client.hotrod.multimap.MultimapCacheManager<K,V> getRemoteMultimapCacheManager()
-
setMethodName
public void setMethodName(String methodName)
-
clearResources
public void clearResources()
-
initResources
public void initResources()
-
addScript
public String addScript(org.infinispan.client.hotrod.RemoteCacheManager remoteCacheManager, String script)
-
getMethodName
public String getMethodName()
-
newRestClient
public org.infinispan.client.rest.RestClient newRestClient(org.infinispan.client.rest.configuration.RestClientConfigurationBuilder restClientConfigurationBuilder)
-
getMemcachedClient
public net.spy.memcached.MemcachedClient getMemcachedClient()
-
-