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 container, String cache) describeConfiguration(String container, String counter) describeContainer(String container) describeCounter(String container, String counter) describeKey(String container, String cache, String key) describeTask(String container, String taskName) execute(BiFunction<org.infinispan.client.rest.RestClient, Resource, CompletionStage<org.infinispan.client.rest.RestResponse>> op, Connection.ResponseMode responseMode) getAvailableCacheConfigurations(String container) getAvailableCaches(String container) getAvailableCounters(String container) getAvailableSchemas(String container) getAvailableServers(String container) getAvailableSites(String container, String cache) getAvailableTasks(String container) getBackupNames(String container) getCacheEntries(String container, String cache, int limit, boolean metadata) getCacheKeys(String container, String cache) getCacheKeys(String container, String cache, int limit) getCounterValue(String container, 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
public Iterable<Map<String,String>> getCacheKeys(String container, String cache, int limit) throws IOException - Specified by:
getCacheKeysin interfaceConnection- Throws:
IOException
-
getCacheEntries
public Iterable<Map<String,String>> getCacheEntries(String container, 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
-