

CommandHandlerIfc.
This class has capability of handling set of basic commands from user such as: 'gc' for System.gc(), 'mem' for Runtime.totalMemory() and Runtime.freeMemory(), 'get', 'set' for property handling (not implemented yet). I am not sure what kind of more commands I could put here. if you have any ideas please feel free to send suggestions to me.
Created: Fri Jan 11 10:42:14 2002
Definition at line 45 of file CommandHandlerImpl.java.
Public Methods | |
| CommandHandlerImpl () | |
Creates a new CommandHandlerImpl instance and do nothing more. | |
| String | handleCommand (String command) |
handleCommand method handles set of basic remotecons commands. | |
| String | help () |
help method returns information about provided commands. | |
| String | help (String command) |
help method should return detailed info about given command. | |
| CommandHandlerIfc | getInstance () |
getInstance method returns instance of this command handler. | |
Protected Methods | |
| String | externalCommand (String comm) |
externalCommand method performs action for running external (system) commands from remote console. | |
Protected Attributes | |
| String | last_command = null |
Variable last_command remembers one previous command received from user. | |
|
|
Creates a new
Definition at line 64 of file CommandHandlerImpl.java. |
|
|
In other words it calls
Definition at line 162 of file CommandHandlerImpl.java. |
|
|
For more details see CommandHandlerIfc description.
Implements CommandHandlerIfc. Definition at line 209 of file CommandHandlerImpl.java. |
|
|
Please see
Implements CommandHandlerIfc. Definition at line 79 of file CommandHandlerImpl.java. |
|
|
But at the time it is not supported yet. I am going to add it in next version.
Implements CommandHandlerIfc. Definition at line 146 of file CommandHandlerImpl.java. |
|
|
Only small set of basic commands suppoerted at the moment.
Implements CommandHandlerIfc. Definition at line 122 of file CommandHandlerImpl.java. |
|
|
Variable At the moment it is used for ensuring that user really wants to exit from JVM. I can see more advantages of remembering last command. I am going to extend command shell with more featuser like: command history, shortcut for repeatig last command, command history searching and so on. I wish to create shell as efficient as bash interpreter. :-) Definition at line 58 of file CommandHandlerImpl.java. |
1.3-rc2