Class RestConnection
java.lang.Object
org.infinispan.cli.connection.rest.RestConnection
- All Implemented Interfaces:
Closeable,AutoCloseable,Connection
- Since:
- 10.0
- Author:
- Tristan Tarrant <tristan@infinispan.org>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.infinispan.cli.connection.Connection
Connection.ResponseMode -
Constructor Summary
ConstructorsConstructorDescriptionRestConnection(org.infinispan.client.rest.configuration.RestClientConfigurationBuilder builder) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidconnect()voiddescribeCache(String cache) describeConfiguration(String counter) describeCounter(String counter) describeKey(String cache, String key) describeTask(String taskName) execute(BiFunction<org.infinispan.client.rest.RestClient, Resource, CompletionStage<org.infinispan.client.rest.RestResponse>> op, Connection.ResponseMode responseMode) getAvailableSites(String cache) getCacheEntries(String cache, int limit, boolean metadata) getCacheKeys(String cache) getCacheKeys(String cache, int limit) getCounterValue(String counter) org.infinispan.commons.dataconversion.MediaTypegetRoles()getURI()booleanbooleanvoidvoidsetActiveResource(Resource resource) voidsetEncoding(org.infinispan.commons.dataconversion.MediaType encoding) toString()
-
Constructor Details
-
RestConnection
public RestConnection(org.infinispan.client.rest.configuration.RestClientConfigurationBuilder builder)
-
-
Method Details
-
getURI
- Specified by:
getURIin interfaceConnection
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
connect
- Specified by:
connectin interfaceConnection- Throws:
IOException
-
connect
- Specified by:
connectin interfaceConnection- Throws:
IOException
-
getEncoding
public org.infinispan.commons.dataconversion.MediaType getEncoding()- Specified by:
getEncodingin interfaceConnection
-
setEncoding
public void setEncoding(org.infinispan.commons.dataconversion.MediaType encoding) - Specified by:
setEncodingin interfaceConnection
-
execute
public String execute(BiFunction<org.infinispan.client.rest.RestClient, Resource, throws IOExceptionCompletionStage<org.infinispan.client.rest.RestResponse>> op, Connection.ResponseMode responseMode) - Specified by:
executein interfaceConnection- Throws:
IOException
-
getActiveResource
- Specified by:
getActiveResourcein interfaceConnection
-
setActiveResource
- Specified by:
setActiveResourcein interfaceConnection
-
getActiveContainer
- Specified by:
getActiveContainerin interfaceConnection
-
getAvailableCaches
- Specified by:
getAvailableCachesin interfaceConnection
-
getAvailableContainers
- Specified by:
getAvailableContainersin interfaceConnection
-
getAvailableCounters
- Specified by:
getAvailableCountersin interfaceConnection- Throws:
IOException
-
getAvailableCacheConfigurations
- Specified by:
getAvailableCacheConfigurationsin interfaceConnection
-
getAvailableSchemas
- Specified by:
getAvailableSchemasin interfaceConnection- Throws:
IOException
-
getAvailableServers
- Specified by:
getAvailableServersin interfaceConnection- Throws:
IOException
-
getAvailableTasks
- Specified by:
getAvailableTasksin interfaceConnection- Throws:
IOException
-
getAvailableSites
- Specified by:
getAvailableSitesin interfaceConnection- Throws:
IOException
-
getCacheKeys
- Specified by:
getCacheKeysin interfaceConnection- Throws:
IOException
-
getCacheKeys
- Specified by:
getCacheKeysin interfaceConnection- Throws:
IOException
-
getCacheEntries
public Iterable<Map<String,String>> getCacheEntries(String cache, int limit, boolean metadata) throws IOException - Specified by:
getCacheEntriesin interfaceConnection- Throws:
IOException
-
getCounterValue
- Specified by:
getCounterValuein interfaceConnection- Throws:
IOException
-
getRoles
- Specified by:
getRolesin interfaceConnection- Throws:
IOException
-
isConnected
public boolean isConnected()- Specified by:
isConnectedin interfaceConnection
-
describeContainer
- Specified by:
describeContainerin interfaceConnection- Throws:
IOException
-
describeCache
- Specified by:
describeCachein interfaceConnection- Throws:
IOException
-
describeKey
- Specified by:
describeKeyin interfaceConnection- Throws:
IOException
-
describeConfiguration
- Specified by:
describeConfigurationin interfaceConnection
-
describeCounter
- Specified by:
describeCounterin interfaceConnection- Throws:
IOException
-
describeTask
- Specified by:
describeTaskin interfaceConnection- Throws:
IOException
-
getAvailableLogAppenders
- Specified by:
getAvailableLogAppendersin interfaceConnection- Throws:
IOException
-
getAvailableLoggers
- Specified by:
getAvailableLoggersin interfaceConnection- Throws:
IOException
-
getClusterNodes
- Specified by:
getClusterNodesin interfaceConnection
-
getConnectionInfo
- Specified by:
getConnectionInfoin interfaceConnection
-
getServerVersion
- Specified by:
getServerVersionin interfaceConnection
-
getBackupNames
- Specified by:
getBackupNamesin interfaceConnection- Throws:
IOException
-
getSitesView
- Specified by:
getSitesViewin interfaceConnection
-
getLocalSiteName
- Specified by:
getLocalSiteNamein interfaceConnection
-
isRelayNode
public boolean isRelayNode()- Specified by:
isRelayNodein interfaceConnection
-
getRelayNodes
- Specified by:
getRelayNodesin interfaceConnection
-
getConnectorNames
- Specified by:
getConnectorNamesin interfaceConnection- Throws:
IOException
-
getDataSourceNames
- Specified by:
getDataSourceNamesin interfaceConnection- Throws:
IOException
-
getCacheConfigurationAttributes
- Specified by:
getCacheConfigurationAttributesin interfaceConnection
-
refreshServerInfo
- Specified by:
refreshServerInfoin interfaceConnection- Throws:
IOException
-
getUsername
- Specified by:
getUsernamein interfaceConnection
-
toString
-