@Component @UserDocumentation(title="Commands for Session Management", description="Opening the lens CLI shell is equivalent to open a session with lens server.This section provides all the commands available for in shell which are applicable for the full session.") public class LensConnectionCommands extends BaseLensCommand
DATE_FMT, DATE_PARSER
Constructor and Description |
---|
LensConnectionCommands() |
Modifier and Type | Method and Description |
---|---|
String |
addFile(String path)
Adds the file.
|
String |
addJar(String path)
Adds the jar.
|
void |
debug(boolean enable)
Enables to show all class level logs on cli
|
String |
getParam(String param)
Gets the param.
|
String |
getSessionHandle()
Get the current session handle
|
String |
listResources(String type)
List resources.
|
org.springframework.shell.core.ExitShellRequest |
quitShell()
Quit shell.
|
String |
removeFile(String path)
Removes the file.
|
String |
removeJar(String path)
Removes the jar.
|
String |
setParam(String keyval)
Sets the param.
|
String |
showParameters()
Show parameters.
|
void |
verbose(boolean enable)
Enables to show only cliLogger(verbose) logs on cli
|
afterReturningInvocation, afterThrowingInvocation, beforeInvocation, formatDate, formatJson, getClient, getClientWrapper, getOrDefaultQueryHandleString, getValidPath, removePrefixBeforeURI, setClient
@CliCommand(value="set", help="Assignto session parameter specified with on lens server") public String setParam(@CliOption(key="",mandatory=true,help=" = ") String keyval)
keyval
- the keyval@CliCommand(value="get", help="Fetches and prints session parameter specified with namefrom lens server") public String getParam(@CliOption(key={"","key"},mandatory=true,help=" ") String param)
param
- the param@CliCommand(value="show params", help="Fetches and prints all session parameter from lens server") public String showParameters()
@CliCommand(value="add jar", help="Adds jar resource to the session") public String addJar(@CliOption(key={"","path"},mandatory=true,help="")@NonNull String path)
path
- the path@CliCommand(value="remove jar", help="Removes a jar resource from session") public String removeJar(@CliOption(key={"","path"},mandatory=true,help="")@NonNull String path)
path
- the path@CliCommand(value="add file", help="Adds a file resource to session") public String addFile(@CliOption(key={"","path"},mandatory=true,help="")@NonNull String path)
path
- the path@CliCommand(value="remove file", help="removes a file resource from session") public String removeFile(@CliOption(key={"","path"},mandatory=true,help="")@NonNull String path)
path
- the path@CliCommand(value="list resources", help="list all resources from session. If type is provided, lists resources of type. Valid values for type are jar and file.") public String listResources(@CliOption(key={"","type"},mandatory=false,help=" ") String type)
@CliCommand(value="session", help="Print the current session handle") public String getSessionHandle()
@CliCommand(value="debug", help="prints all class level logs and verbose logs on cli for debugging purpose. \'debug false\' to turn off all class level logging and verbose level logging ") public void debug(@CliOption(key={"","enable"},mandatory=false,unspecifiedDefaultValue="true") boolean enable)
enable
- @CliCommand(value="verbose", help="Show cliLogger logs on cli. \'verbose false\' turns off the cliLogger logs on console") public void verbose(@CliOption(key={"","enable"},mandatory=false,unspecifiedDefaultValue="true") boolean enable)
enable
- @CliCommand(value={"close","bye"}, help="Releases all resources of the server session and exits the shell") public org.springframework.shell.core.ExitShellRequest quitShell()
Copyright © 2014–2016 Apache Software Foundation. All rights reserved.