Package org.infinispan.cli.connection
Interface Connection
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
RestConnection
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidconnect()voiddescribeCache(String cache) describeConfiguration(String configuration) 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)
-
Method Details
-
connect
- Throws:
IOException
-
connect
- Throws:
IOException
-
getURI
String getURI() -
execute
String execute(BiFunction<org.infinispan.client.rest.RestClient, Resource, throws IOExceptionCompletionStage<org.infinispan.client.rest.RestResponse>> op, Connection.ResponseMode responseMode) - Throws:
IOException
-
getActiveResource
Resource getActiveResource() -
setActiveResource
-
getActiveContainer
Resource getActiveContainer() -
getAvailableCaches
Collection<String> getAvailableCaches() -
getAvailableContainers
Collection<String> getAvailableContainers() -
getAvailableCounters
- Throws:
IOException
-
getAvailableCacheConfigurations
Collection<String> getAvailableCacheConfigurations() -
getAvailableSchemas
- Throws:
IOException
-
getAvailableServers
- Throws:
IOException
-
getAvailableSites
- Throws:
IOException
-
getAvailableTasks
- Throws:
IOException
-
getCacheKeys
- Throws:
IOException
-
getCacheKeys
- Throws:
IOException
-
getCacheEntries
Iterable<Map<String,String>> getCacheEntries(String cache, int limit, boolean metadata) throws IOException - Throws:
IOException
-
getCounterValue
- Throws:
IOException
-
isConnected
boolean isConnected() -
describeContainer
- Throws:
IOException
-
describeCache
- Throws:
IOException
-
describeKey
- Throws:
IOException
-
describeConfiguration
- Throws:
IOException
-
describeCounter
- Throws:
IOException
-
describeTask
- Throws:
IOException
-
getConnectionInfo
String getConnectionInfo() -
getServerVersion
String getServerVersion() -
getClusterNodes
Collection<String> getClusterNodes() -
getAvailableLogAppenders
- Throws:
IOException
-
getAvailableLoggers
- Throws:
IOException
-
getBackupNames
- Throws:
IOException
-
getSitesView
Collection<String> getSitesView() -
getLocalSiteName
String getLocalSiteName() -
isRelayNode
boolean isRelayNode() -
getRelayNodes
Collection<String> getRelayNodes() -
getConnectorNames
- Throws:
IOException
-
getEncoding
org.infinispan.commons.dataconversion.MediaType getEncoding() -
setEncoding
void setEncoding(org.infinispan.commons.dataconversion.MediaType encoding) -
refreshServerInfo
- Throws:
IOException
-
getDataSourceNames
- Throws:
IOException
-
getCacheConfigurationAttributes
-
getUsername
String getUsername() -
getRoles
- Throws:
IOException
-