Package org.infinispan.client.rest
Interface RestClient
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
RestClientOkHttp
@Experimental("This is not a supported API. Are you here for a perilous journey?")
public interface RestClient
extends Closeable
An experimental client for interacting with an Infinispan REST server.
- Since:
- 10.0
- Author:
- Tristan Tarrant <tristan@infinispan.org>
-
Method Summary
Modifier and TypeMethodDescriptionOperations on the specified cachecacheManager(String name) Operations on the specified cache managerReturns a list of available cache manager namescaches()Returns a list of available cachesvoidclose()cluster()Interact with the whole clusterOperations on the server's ContainerOperations on the specified countercounters()Returns a list of available countersstatic RestClientforConfiguration(RestClientConfiguration configuration) Creates aRestClientinstance based on the supplied configurationReturns the configuration of thisRestClientmetrics()Server metricsraw()Raw HTTP operationsschemas()Protobuf schemassecurity()Server securityserver()Interact with the single servertasks()Operations on tasks
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
server
RestServerClient server()Interact with the single server -
cluster
RestClusterClient cluster()Interact with the whole cluster -
cacheManagers
CompletionStage<RestResponse> cacheManagers()Returns a list of available cache manager names -
cacheManager
Operations on the specified cache manager -
container
RestContainerClient container()Operations on the server's Container -
caches
CompletionStage<RestResponse> caches()Returns a list of available caches -
cache
Operations on the specified cache -
counters
CompletionStage<RestResponse> counters()Returns a list of available counters -
counter
Operations on the specified counter -
tasks
RestTaskClient tasks()Operations on tasks -
raw
RestRawClient raw()Raw HTTP operations -
metrics
RestMetricsClient metrics()Server metrics -
schemas
RestSchemaClient schemas()Protobuf schemas -
getConfiguration
RestClientConfiguration getConfiguration()Returns the configuration of thisRestClient -
forConfiguration
Creates aRestClientinstance based on the supplied configuration- Parameters:
configuration- aRestClientConfiguration- Returns:
- a
RestClientinstance
-
security
RestSecurityClient security()Server security
-