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.AeshContextContext.- Since:
- 5.2
- Author:
- Tristan Tarrant
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classContext.Property
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.aesh.command.CommandResultchangeResource(Class<? extends Resource> fromResource, String resourceType, String name)Connectionconnect(org.aesh.command.shell.Shell shell, String connectionString)Connects to a serverConnectionconnect(org.aesh.command.shell.Shell shell, String connectionString, String username, String password)Connect to a server using the supplied username and passwordvoiddisconnect()Disconnects from the serverPathgetConfigPath()ConnectiongetConnection()Returns the currentConnectionorg.infinispan.commons.dataconversion.MediaTypegetEncoding()PropertiesgetProperties()StringgetProperty(String key)StringgetProperty(Context.Property property)org.aesh.command.registry.CommandRegistry<? extends org.aesh.command.invocation.CommandInvocation>getRegistry()booleanisConnected()voidrefreshPrompt()voidresetProperties()voidsaveProperties()voidsetConsole(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)
-
-
-
Method Detail
-
getConfigPath
Path getConfigPath()
-
isConnected
boolean isConnected()
-
getProperty
String getProperty(Context.Property property)
-
getProperties
Properties getProperties()
-
resetProperties
void resetProperties()
-
saveProperties
void saveProperties()
-
setSslContext
void setSslContext(SSLContextSettings sslContext)
-
connect
Connection connect(org.aesh.command.shell.Shell shell, String connectionString)
Connects to a server- Parameters:
shell-connectionString-- Returns:
-
connect
Connection 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-- Returns:
-
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()
-
-