Package org.infinispan.cli
Interface Context
- All Superinterfaces:
org.aesh.readline.AeshContext
- All Known Implementing Classes:
ContextImpl,KubernetesContext
public interface Context
extends org.aesh.readline.AeshContext
Context.
- Since:
- 5.2
- Author:
- Tristan Tarrant
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionorg.aesh.command.CommandResultchangeResource(Class<? extends Resource> fromResource, String resourceType, String name) voidConnects to a servervoidconnect(org.aesh.command.shell.Shell shell, String connectionString, String username, String password) Connect to a server using the supplied username and passwordvoidDisconnects from the serverReturns the currentConnectionorg.infinispan.commons.dataconversion.MediaTypegetProperty(String key) getProperty(Context.Property property) org.aesh.command.registry.CommandRegistry<? extends org.aesh.command.invocation.CommandInvocation> booleanvoidvoidvoidvoidsetConsole(org.aesh.readline.ReadlineConsole console) voidsetEncoding(org.infinispan.commons.dataconversion.MediaType encoding) voidsetProperty(String key, String value) voidsetRegistry(org.aesh.command.registry.CommandRegistry<? extends org.aesh.command.invocation.CommandInvocation> registry) voidsetSslContext(SSLContextSettings sslContext) Methods inherited from interface org.aesh.readline.AeshContext
exportedVariable, exportedVariableNames, getCurrentWorkingDirectory, setCurrentWorkingDirectory
-
Method Details
-
getConfigPath
Path getConfigPath() -
isConnected
boolean isConnected() -
setProperty
-
getProperty
-
getProperty
-
getProperties
Properties getProperties() -
resetProperties
void resetProperties() -
saveProperties
void saveProperties() -
setSslContext
-
connect
Connects to a server- Parameters:
shell-connectionString-
-
connect
void connect(org.aesh.command.shell.Shell shell, String connectionString, String username, String password) Connect to a server using the supplied username and password- Parameters:
shell-connectionString-username-password-
-
setRegistry
void setRegistry(org.aesh.command.registry.CommandRegistry<? extends org.aesh.command.invocation.CommandInvocation> registry) -
getConnection
Connection getConnection()Returns the currentConnection- Returns:
-
disconnect
void disconnect()Disconnects from the server -
setConsole
void setConsole(org.aesh.readline.ReadlineConsole console) -
getRegistry
org.aesh.command.registry.CommandRegistry<? extends org.aesh.command.invocation.CommandInvocation> getRegistry() -
getEncoding
org.infinispan.commons.dataconversion.MediaType getEncoding() -
setEncoding
void setEncoding(org.infinispan.commons.dataconversion.MediaType encoding) -
refreshPrompt
void refreshPrompt() -
changeResource
org.aesh.command.CommandResult changeResource(Class<? extends Resource> fromResource, String resourceType, String name) throws org.aesh.command.CommandException - Throws:
org.aesh.command.CommandException
-