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.CommonCommands2placeHolder
 - 
Fields inherited from class edu.uiuc.ncsa.security.util.cli.AbstractCommandsImplCL_INPUT_FILE_FLAG, CL_OUTPUT_FILE_FLAG, DEFAULT_NULL_VALUE_PLACEHOLDER, defaultIndent, INDENT, LOGO, logoName, NO_HEADER, NO_LOGO, showHeader, showLogo, SILENT
 
- 
 - 
Constructor SummaryConstructors Constructor Description TestCommands(CLIDriver driver)
 - 
Method SummaryAll 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.CommonCommands2getIOInterface, 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.AbstractCommandsImplbootstrap, 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- 
TestCommandspublic TestCommands(CLIDriver driver) 
 
- 
 - 
Method Detail- 
getPromptpublic String getPrompt() Description copied from interface:CommandsThe prompt displayed to the user. This allows it to change based on context.- Returns:
- java.lang.String
 
 - 
getDriverpublic CLIDriver getDriver() Description copied from interface:CommandsBack reference to the driver that manages this instance.- Specified by:
- getDriverin interface- Commands
- Overrides:
- getDriverin class- AbstractCommandsImpl
- Returns:
 
 - 
setDriverpublic void setDriver(CLIDriver cliDriver) - Specified by:
- setDriverin interface- Commands
- Overrides:
- setDriverin class- AbstractCommandsImpl
 
 - 
getNamepublic String getName() 
 - 
aboutpublic 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 class- AbstractCommandsImpl
 
 - 
initializepublic void initialize() throws ThrowableDescription copied from class:AbstractCommandsImplFinish initializing this implementation.- Specified by:
- initializein class- AbstractCommandsImpl
- Throws:
- Throwable
 
 - 
loadpublic 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 class- AbstractCommandsImpl
- Throws:
- Throwable
 
 - 
mainpublic static void main(String[] args) 
 
- 
 
-