|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.admin.cli.CLIUtil
public class CLIUtil
CLI Utility class
| Field Summary | |
|---|---|
private static int |
MAX_COMMANDS_TO_DISPLAY
|
private static LocalStringsImpl |
strings
|
| Constructor Summary | |
|---|---|
CLIUtil()
|
|
| Method Summary | |
|---|---|
static void |
displayClosestMatch(java.lang.String commandName,
java.lang.String[] commands,
java.lang.String msg,
java.util.logging.Logger logger)
Display the commands from the list that are the closest match to the specified command. |
static java.lang.String[] |
getAllCommands(org.jvnet.hk2.component.Habitat habitat,
ProgramOptions po,
Environment env)
Return all commands, local and remote. |
private static java.io.File |
getDebugLogfile()
|
static java.lang.String[] |
getLocalCommands(org.jvnet.hk2.component.Habitat habitat)
Get all the known local commands. |
private static java.lang.String[] |
getMatchedCommands(java.lang.String pattern,
java.lang.String[] commands)
Return all the commands that include pattern (just a literal string, not really a pattern) as a substring. |
static java.lang.String[] |
getRemoteCommands(org.jvnet.hk2.component.Habitat habitat,
ProgramOptions po,
Environment env)
Get the list of commands from the remote server. |
static java.util.Map<java.lang.String,java.lang.String> |
readPasswordFileOptions(java.lang.String passwordFileName,
boolean withPrefix)
Read passwords from the password file and save them in a java.util.Map. |
static void |
writeCommandToDebugLog(java.lang.String[] args,
int exit)
Log the command, for debugging. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final int MAX_COMMANDS_TO_DISPLAY
private static final LocalStringsImpl strings
| Constructor Detail |
|---|
public CLIUtil()
| Method Detail |
|---|
public static java.util.Map<java.lang.String,java.lang.String> readPasswordFileOptions(java.lang.String passwordFileName,
boolean withPrefix)
throws CommandException
passwordFileName - password file namewithPrefix - decides whether prefix should be taken into account
CommandException
public static void displayClosestMatch(java.lang.String commandName,
java.lang.String[] commands,
java.lang.String msg,
java.util.logging.Logger logger)
throws InvalidCommandException
InvalidCommandException
private static java.lang.String[] getMatchedCommands(java.lang.String pattern,
java.lang.String[] commands)
public static java.lang.String[] getAllCommands(org.jvnet.hk2.component.Habitat habitat,
ProgramOptions po,
Environment env)
public static java.lang.String[] getLocalCommands(org.jvnet.hk2.component.Habitat habitat)
public static java.lang.String[] getRemoteCommands(org.jvnet.hk2.component.Habitat habitat,
ProgramOptions po,
Environment env)
throws CommandException,
CommandValidationException
CommandException
CommandValidationException
public static void writeCommandToDebugLog(java.lang.String[] args,
int exit)
private static java.io.File getDebugLogfile()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||