Package example
This package provides code used to run the examples.
See:
Description
Interface Summary |
Example |
Interface that should be implemented by test classes in the
$HOTSWAP_HOME/examples directory. |
Class Summary |
Main |
Main starts a Thread that periodically
wakes up and calls Example e =
(Example)proxy.hotswap() on a Proxy instance
that is constructed from the classname you specify. |
Package example Description
This package provides code used to run the examples. The main class
is RunExample
(paths are relative to the main
installation directory):
|
# Path where JDK1.2 or JDK1.3 is installed
export JAVA_HOME=/usr/java/jdk1.3
# Path where HotSwap is installed
export HOTSWAP_HOME=/usr/share/java/inxar/hotswap-x_y_z
# Command line invocation
java \
-classpath $HOTSWAP_HOME/hotswap.jar:$JAVA_HOME/lib/tools.jar \
-Dorg.inxar.hotswap.properties=$HOTSWAP_HOME/examples/examples.properties \
example.RunExample \
HelloWorld
|
|
You can substitute HelloWorld
for an Example
implementation of your choice. Although shown here, the
tools.jar
is optional. There is a
helloworld.sh
script in the ./bin
directory
that runs exactly what is shown above. There is also a
helloworld.bat
file for DOS platforms.