|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjhomenet.shell.Shell
jhomenet.shell.test.TestShell
public class TestShell
| Field Summary | |
|---|---|
static java.lang.String |
SHELL_NAME
Define the shell name. |
static java.lang.String |
SHELL_VERSION
Shell version. |
| Fields inherited from class jhomenet.shell.Shell |
|---|
environment |
| Method Summary | |
|---|---|
void |
enableLocalConsole(boolean enableConsole)
(non-Javadoc) |
void |
execute(java.lang.Object[] commandLine,
SystemInputStream in,
SystemPrintStream out,
SystemPrintStream err,
java.util.HashMap env)
(non-Javadoc) |
java.util.HashMap |
getCurrentEnvironment()
(non-Javadoc) |
java.lang.String |
getFromCurrentEnvironment(java.lang.String key)
(non-Javadoc) |
static TestShell |
getInstance()
|
java.lang.String |
getName()
(non-Javadoc) |
java.lang.String |
getVersion()
(non-Javadoc) |
protected void |
initializeShellCommands()
Initialize the shell commands. |
int |
login(java.lang.String userName,
java.lang.String password)
(non-Javadoc) |
void |
logout(java.lang.Object info)
(non-Javadoc) |
void |
startServers()
|
| Methods inherited from class jhomenet.shell.Shell |
|---|
getSystemEnvironment |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.String SHELL_VERSION
public static java.lang.String SHELL_NAME
| Method Detail |
|---|
public static TestShell getInstance()
protected void initializeShellCommands()
initializeShellCommands in class Shellpublic void enableLocalConsole(boolean enableConsole)
enableLocalConsole in class ShellShell.enableLocalConsole(boolean)
public int login(java.lang.String userName,
java.lang.String password)
login in class ShelluserName - the user location of the user logging inpassword - the password for this user
Shell.login(java.lang.String, java.lang.String)public void logout(java.lang.Object info)
logout in class Shellinfo - any extra information needed in the logout processShell.logout(java.lang.Object)public java.lang.String getName()
getName in class ShellShell.getName()public java.lang.String getVersion()
getVersion in class ShellShell.getVersion()public java.util.HashMap getCurrentEnvironment()
getCurrentEnvironment in class ShellShell.getCurrentEnvironment()public java.lang.String getFromCurrentEnvironment(java.lang.String key)
getFromCurrentEnvironment in class Shellkey - the key to lookup in the current properties
null if the key
is not set in the current propertiesShell.getFromCurrentEnvironment(java.lang.String)
public void execute(java.lang.Object[] commandLine,
SystemInputStream in,
SystemPrintStream out,
SystemPrintStream err,
java.util.HashMap env)
throws java.lang.Exception
execute in class ShellcommandLine - an Object array containing the command in the first element,
followed by any parameters need for that command in a String[] in the second elementin - the stream the command will use to get inputout - the stream used to report non-critical messageserr - the stream used to report critical messagesenv - a windDirectionTable of properties variables
java.lang.Exception - any exception raised by the commandShell.execute(java.lang.Object[], jhomenet.shell.server.SystemInputStream, jhomenet.shell.server.SystemPrintStream, jhomenet.shell.server.SystemPrintStream, java.util.HashMap)public void startServers()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||