gnu.app
Class Zion
java.lang.Object
gnu.app.Application
gnu.app.Zion
public class Zion
- extends Application
The last mainframe on earth.
Allow execute multiple JVM processors in a single VM, hence acting as
"the last mainframe" (from the movie Matrix). This can be helpful for
frequent invocations of Java applications during development, especially
when (my IBM 1.3) JVM is horribly slow for startup. It also helps if you
run a destop-full of Java programs, which will otherwise drain all your
system resources. This program is inspired by the full-blown "free
multiprocess system in Java", Echidna, by Luke Gorrie.
At the zion>
prompt, simply type in the classname
optionally with its command-line arguments, Zion will run it as a
sub-thread. Exit Zion with the command "exit"
. For example,
to (1) display the help of gnu.x11.test.Hello
, (2) run it,
and (3) run gnu.app.displayhack.Munch
all concurrently in the
same JVM session.
Because of the way Java loads and caches classes, Zion provides
another command "reset"
, such that, for instance, old
versions of development classes can be discarded and then new versions
can be executed without exiting and re-entering Zion. A shortcut command
to reset and execute a class is prepended the command with
"="
. For example, to reset and load
gnu.x11.test.Hello
, do zion>
=gnu.x11.test.Hello
.
- See Also:
-
sample output,
help output
Constructor Summary |
Zion(java.lang.String[] args)
|
Method Summary |
void |
exec()
|
void |
exit()
|
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Zion
public Zion(java.lang.String[] args)
exec
public void exec()
throws java.io.IOException,
java.lang.ClassNotFoundException
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
exit
public void exit()
main
public static void main(java.lang.String[] args)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Throws:
java.io.IOException
java.lang.ClassNotFoundException