Package org.infinispan.cli.connection
Interface Connection
-
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
RestConnection
public interface Connection extends Closeable
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classConnection.ResponseMode
-
Method Summary
-
-
-
Method Detail
-
connect
void connect() throws IOException- Throws:
IOException
-
connect
void connect(String username, String password) throws IOException
- Throws:
IOException
-
getURI
String getURI()
-
execute
String execute(BiFunction<org.infinispan.client.rest.RestClient,Resource,CompletionStage<org.infinispan.client.rest.RestResponse>> op, Connection.ResponseMode responseMode) throws IOException
- Throws:
IOException
-
getActiveResource
Resource getActiveResource()
-
setActiveResource
void setActiveResource(Resource resource)
-
getActiveContainer
Resource getActiveContainer()
-
getAvailableCaches
Collection<String> getAvailableCaches(String container)
-
getAvailableContainers
Collection<String> getAvailableContainers()
-
getAvailableCounters
Collection<String> getAvailableCounters(String container) throws IOException
- Throws:
IOException
-
getAvailableCacheConfigurations
Collection<String> getAvailableCacheConfigurations(String container)
-
getAvailableSchemas
Collection<String> getAvailableSchemas(String container) throws IOException
- Throws:
IOException
-
getAvailableServers
Collection<String> getAvailableServers(String container) throws IOException
- Throws:
IOException
-
getAvailableSites
Collection<String> getAvailableSites(String container, String cache) throws IOException
- Throws:
IOException
-
getAvailableTasks
Collection<String> getAvailableTasks(String container) throws IOException
- Throws:
IOException
-
getCacheKeys
Iterable<Map<String,String>> getCacheKeys(String container, String cache) throws IOException
- 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
Iterable<String> getCounterValue(String container, String counter) throws IOException
- Throws:
IOException
-
isConnected
boolean isConnected()
-
describeContainer
String describeContainer(String container) throws IOException
- Throws:
IOException
-
describeCache
String describeCache(String container, String cache) throws IOException
- Throws:
IOException
-
describeKey
String describeKey(String container, String cache, String key) throws IOException
- Throws:
IOException
-
describeConfiguration
String describeConfiguration(String container, String configuration) throws IOException
- Throws:
IOException
-
describeCounter
String describeCounter(String container, String counter) throws IOException
- Throws:
IOException
-
describeTask
String describeTask(String container, String taskName) throws IOException
- Throws:
IOException
-
getConnectionInfo
String getConnectionInfo()
-
getServerVersion
String getServerVersion()
-
getClusterNodes
Collection<String> getClusterNodes()
-
getAvailableLogAppenders
Collection<String> getAvailableLogAppenders() throws IOException
- Throws:
IOException
-
getAvailableLoggers
Collection<String> getAvailableLoggers() throws IOException
- Throws:
IOException
-
getBackupNames
Collection<String> getBackupNames(String container) throws IOException
- Throws:
IOException
-
getSitesView
Collection<String> getSitesView()
-
getLocalSiteName
String getLocalSiteName()
-
isRelayNode
boolean isRelayNode()
-
getRelayNodes
Collection<String> getRelayNodes()
-
getConnectorNames
Collection<String> getConnectorNames() throws IOException
- Throws:
IOException
-
getEncoding
org.infinispan.commons.dataconversion.MediaType getEncoding()
-
setEncoding
void setEncoding(org.infinispan.commons.dataconversion.MediaType encoding)
-
refreshServerInfo
void refreshServerInfo() throws IOException- Throws:
IOException
-
getDataSourceNames
Collection<String> getDataSourceNames() throws IOException
- Throws:
IOException
-
getCacheConfigurationAttributes
Collection<String> getCacheConfigurationAttributes(String name)
-
getUsername
String getUsername()
-
getRoles
Collection<String> getRoles() throws IOException
- Throws:
IOException
-
-