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 container, String cache) describeConfiguration(String container, String configuration) 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)
-
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
-
getAvailableContainers
Collection<String> getAvailableContainers() -
getAvailableCounters
- Throws:
IOException
-
getAvailableCacheConfigurations
-
getAvailableSchemas
- Throws:
IOException
-
getAvailableServers
- Throws:
IOException
-
getAvailableSites
- Throws:
IOException
-
getAvailableTasks
- Throws:
IOException
-
getCacheKeys
- Throws:
IOException
-
getCacheKeys
Iterable<Map<String,String>> getCacheKeys(String container, String cache, int limit) throws IOException - Throws:
IOException
-
getCacheEntries
Iterable<Map<String,String>> getCacheEntries(String container, 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
-