Distributed SHell & JXTA

DSH is used to run an application or a command on a cluster of nodes.
It is very useful when deploying JXTA nodes for simulations.
JXTA nodes need to bypass the graphical configuration window.

This can be achieved by writing a small Configurator class that handles configuring the JXTA platform at peer startup-time. One such example can be found in this file ConfigurePlatform.java

When the JXTA platform starts it creates a local .jxta directory. So in order to avoid overwriting this directory for every starting peers, a unique directory needs to be created for every peer to store the local configuration and runtime information. A short script such as this one can be used.

The original dsh binaries do not permit starting nodes sequentially with a delay, I have modified the binaries to enable such a delay, a copy of the binaries can be found here. Use the option -d to specify the number of seconds to delay every node starting.

Once peers have started the JXTA nodes will start interacting according to the programmed behaviour.