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 theCLIDriver
only.- 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 void
about(boolean showBanner, boolean showHeader)
This will show the boot up logos, header (additional info) etc.CLIDriver
getDriver()
Back reference to the driver that manages this instance.String
getName()
String
getPrompt()
The prompt displayed to the user.void
initialize()
Finish initializing this implementation.void
load(InputLine inputLine)
Load resources before showing logos etc.static void
main(String[] args)
void
setDriver(CLIDriver cliDriver)
void
size(InputLine inputLine)
void
time(InputLine inputLine)
-
Methods inherited from class edu.uiuc.ncsa.security.util.cli.CommonCommands2
getIOInterface, getPlaceHolder, getValue, isEmpty, isVerbose, print_help, say2, sayii, set_output_on, set_verbose_on, setOutputOnHelp, setPlaceHolder, setVerboseHelp, version, versionHelp
-
Methods inherited from class edu.uiuc.ncsa.security.util.cli.AbstractCommandsImpl
bootstrap, bootstrap, clear_env, clearEnvHelp, 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:Commands
The 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:Commands
Back reference to the driver that manages this instance.- Specified by:
getDriver
in interfaceCommands
- Overrides:
getDriver
in classAbstractCommandsImpl
- Returns:
-
setDriver
public void setDriver(CLIDriver cliDriver)
- Specified by:
setDriver
in interfaceCommands
- Overrides:
setDriver
in classAbstractCommandsImpl
-
getName
public String getName()
-
about
public void about(boolean showBanner, boolean showHeader)
Description copied from class:AbstractCommandsImpl
This will show the boot up logos, header (additional info) etc. if any- Specified by:
about
in classAbstractCommandsImpl
-
initialize
public void initialize() throws Throwable
Description copied from class:AbstractCommandsImpl
Finish initializing this implementation.- Specified by:
initialize
in classAbstractCommandsImpl
- Throws:
Throwable
-
load
public void load(InputLine inputLine) throws Throwable
Description copied from class:AbstractCommandsImpl
Load 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:
load
in classAbstractCommandsImpl
- Throws:
Throwable
-
main
public static void main(String[] args)
-
-