|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectautohit.server.invoker.SimTextCommand
Text command processor for SimVM. It'll create the command atoms and return them.
compile(name) - force compile a script dump(name) - dump an compiled object run(name) { vm } -spawn a script into an automat ps - process list by PID kill(PID) - kill processes exit - exit props - list properties set - set a property name = { value }
Only handles VMExecutable compiles now. Compiles to cache space.
EPG - Initial - 25Apr03
Field Summary | |
static java.lang.String |
COMMAND_COMPILE
|
static int |
COMMAND_COMPILE_TOKEN
|
static java.lang.String |
COMMAND_DUMP
|
static int |
COMMAND_DUMP_TOKEN
|
static java.lang.String |
COMMAND_EXIT
|
static java.lang.String |
COMMAND_KILL
|
static int |
COMMAND_KILL_TOKEN
|
static java.lang.String |
COMMAND_LOADPROPS
|
static int |
COMMAND_LOADPROPS_TOKEN
|
static java.lang.String |
COMMAND_PROPS
|
static int |
COMMAND_PROPS_TOKEN
|
static java.lang.String |
COMMAND_PS
|
static int |
COMMAND_PS_TOKEN
|
static java.lang.String |
COMMAND_RUN
|
static int |
COMMAND_RUN_TOKEN
|
static java.lang.String |
COMMAND_SAVEPROPS
|
static int |
COMMAND_SAVEPROPS_TOKEN
|
static java.lang.String |
COMMAND_SET
|
static int |
COMMAND_SET_TOKEN
|
protected CommandServer |
cServer
|
protected SystemContext |
sc
|
static int |
TOKEN_COMMAND_BAD
Command dictionary. |
static int |
TOKEN_COMMAND_CORRUPT
|
Constructor Summary | |
SimTextCommand()
Default constructor |
Method Summary | |
CommandAtom |
create(java.lang.String command)
This will create a command atom based on the command passed |
protected void |
finalize()
finalizer Clear anything we don't need |
void |
init(SystemContext c)
Initialize with defaults. |
void |
init(SystemContext c,
Injector control,
Injector client)
Initialize. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int TOKEN_COMMAND_BAD
public static final java.lang.String COMMAND_COMPILE
public static final int COMMAND_COMPILE_TOKEN
public static final java.lang.String COMMAND_DUMP
public static final int COMMAND_DUMP_TOKEN
public static final java.lang.String COMMAND_RUN
public static final int COMMAND_RUN_TOKEN
public static final java.lang.String COMMAND_PS
public static final int COMMAND_PS_TOKEN
public static final java.lang.String COMMAND_KILL
public static final int COMMAND_KILL_TOKEN
public static final java.lang.String COMMAND_PROPS
public static final int COMMAND_PROPS_TOKEN
public static final java.lang.String COMMAND_SET
public static final int COMMAND_SET_TOKEN
public static final java.lang.String COMMAND_LOADPROPS
public static final int COMMAND_LOADPROPS_TOKEN
public static final java.lang.String COMMAND_SAVEPROPS
public static final int COMMAND_SAVEPROPS_TOKEN
public static final java.lang.String COMMAND_EXIT
public static final int TOKEN_COMMAND_CORRUPT
protected SystemContext sc
protected CommandServer cServer
Constructor Detail |
public SimTextCommand()
Method Detail |
public void init(SystemContext c) throws java.lang.Exception
c
- the SystemContext
java.lang.Exception
public void init(SystemContext c, Injector control, Injector client) throws java.lang.Exception
control
- Control injectorclient
- Client injectorc
- the SystemContext
java.lang.Exception
public CommandAtom create(java.lang.String command) throws ServerException
command
- textual command
ServerException.
- It will throw a AutohitErrorCodes.CODE_SERVER_DONE if given
the exit command.
ServerException
protected void finalize() throws java.lang.Throwable
java.lang.Throwable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |