Package edu.uiuc.ncsa.security.util.cli
Class TestCommands
- java.lang.Object
-
- edu.uiuc.ncsa.security.util.cli.AbstractCommandsImpl
-
- edu.uiuc.ncsa.security.util.cli.CommonCommands2
-
- edu.uiuc.ncsa.security.util.cli.TestCommands
-
- All Implemented Interfaces:
Logable,Commands,Serializable
public class TestCommands extends CommonCommands2
A set of commands for debugging theCLIDriveronly.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class edu.uiuc.ncsa.security.util.cli.CommonCommands2
placeHolder
-
Fields inherited from class edu.uiuc.ncsa.security.util.cli.AbstractCommandsImpl
CL_INPUT_FILE_FLAG, CL_OUTPUT_FILE_FLAG, DEFAULT_NULL_VALUE_PLACEHOLDER, defaultIndent, INDENT, LOGO, logoName, NO_HEADER, NO_LOGO, showHeader, showLogo, SILENT
-
-
Constructor Summary
Constructors Constructor Description TestCommands(CLIDriver driver)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidabout(boolean showBanner, boolean showHeader)This will show the boot up logos, header (additional info) etc.CLIDrivergetDriver()Back reference to the driver that manages this instance.StringgetName()StringgetPrompt()The prompt displayed to the user.voidinitialize()Finish initializing this implementation.voidload(InputLine inputLine)Load resources before showing logos etc.static voidmain(String[] args)voidsetDriver(CLIDriver cliDriver)voidsize(InputLine inputLine)voidtime(InputLine inputLine)-
Methods inherited from class edu.uiuc.ncsa.security.util.cli.CommonCommands2
getIOInterface, getPlaceHolder, getValue, isEmpty, isThrowExceptions, isVerbose, print_help, say2, sayii, set_output_on, set_verbose_on, setOutputOnHelp, setPlaceHolder, setThrowExceptions, setVerboseHelp, version, versionHelp
-
Methods inherited from class edu.uiuc.ncsa.security.util.cli.AbstractCommandsImpl
bootstrap, bootstrap, clear_env, clearEnvHelp, configureCommands, debug, error, error, get_env, getHelpUtil, getInput, getLogoName, getPropertyHelp, gracefulExit, hasLogger, indentWidth, info, initHelp, isDebugOn, isOk, isShowHeader, isShowLogo, print_env, printEnvHelp, printGetEnvHelp, printReadEnvHelp, printSaveEnvHelp, printSetEnvHelp, read_env, readJSON, readline, readline, save_env, say, say, sayi, sayv, set_env, setDebugOn, setLogoName, setShowHeader, setShowLogo, showHelp, warn
-
-
-
-
Constructor Detail
-
TestCommands
public TestCommands(CLIDriver driver)
-
-
Method Detail
-
getPrompt
public String getPrompt()
Description copied from interface:CommandsThe prompt displayed to the user. This allows it to change based on context.- Returns:
- java.lang.String
-
getDriver
public CLIDriver getDriver()
Description copied from interface:CommandsBack reference to the driver that manages this instance.- Specified by:
getDriverin interfaceCommands- Overrides:
getDriverin classAbstractCommandsImpl- Returns:
-
setDriver
public void setDriver(CLIDriver cliDriver)
- Specified by:
setDriverin interfaceCommands- Overrides:
setDriverin classAbstractCommandsImpl
-
getName
public String getName()
-
about
public void about(boolean showBanner, boolean showHeader)Description copied from class:AbstractCommandsImplThis will show the boot up logos, header (additional info) etc. if any- Specified by:
aboutin classAbstractCommandsImpl
-
initialize
public void initialize() throws ThrowableDescription copied from class:AbstractCommandsImplFinish initializing this implementation.- Specified by:
initializein classAbstractCommandsImpl- Throws:
Throwable
-
load
public void load(InputLine inputLine) throws Throwable
Description copied from class:AbstractCommandsImplLoad resources before showing logos etc. This is typically called on your behalf inAbstractCommandsImpl.bootstrap(InputLine)amd should load resources needed. Note that an exception in this does not stop booting. This allows you to start a system with a missing configuration file (for instnace) and prompt for it.
SeeAbstractCommandsImpl.initialize()which is called after this and is charged with actually starting- Specified by:
loadin classAbstractCommandsImpl- Throws:
Throwable
-
main
public static void main(String[] args)
-
-